Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  int ans;
  cout<<min({(abs(753-N/10000000+N/10000000000*1000)),
             (abs(753-N/1000000+N/1000000000*1000)),
             (abs(753-N/100000+N/100000000*1000)),
             (abs(753-N/10000+N/10000000*1000)),
             (abs(753-N/1000+N/1000000*1000)),
             (abs(753-N/100+N/100000*1000)),
             (abs(753-N/10+N/10000*1000)),
             (abs(753-N/1+N/1000*1000))})<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
    7 |   cout<<min({(abs(753-N/10000000+N/10000000000*1000)),
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    8 |              (abs(753-N/1000000+N/1000000000*1000)),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    9 |              (abs(753-N/100000+N/100000000*1000)),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   10 |              (abs(753-N/10000+N/10000000*1000)),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   11 |              (abs(753-N/1000+N/1000000*1000)),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   12 |              (abs(753-N/100+N/100000*1000)),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   13 |              (abs(753-N/10+N/10000*1000)),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   14 |              (abs(753-N/1+N/1000*1000))})<<endl;
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   template argument deduction/substitution failed:
a.cc:7:12: note:   deduced conflicting types for parameter '_Tp' ('long int' and 'int')
    7 |   cout<<min({(abs(753-N/10000000+N/10000000000*1000)),
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    8 |              (abs(753-N/1000000+N/1000000000*1000)),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    9 |              (abs(753-N/100000+N/100000000*1000)),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   10 |              (abs(753-N/10000+N/10000000*1000)),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   11 |              (abs(753-N/1000+N/1000000*1000)),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   12 |              (abs(753-N/100+N/100000*1000)),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   13 |              (abs(753-N/10+N/10000*1000)),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   14 |              (abs(753-N/1+N/1000*1000))})<<endl;
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   candidate expects 2 arguments, 1 provided