Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define rep2(i, a, n) for(ll i = a; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(c) (c).begin(), (c).end()
#define pb push_back
#define hina cout << ' '
#define in(n) cin >> n
#define in2(n, m) cin >> n >> m
#define in3(n, m, l) cin >> n >> m >> l
#define out(n) cout << n
const ll mei = (ll)1e9 + 7;

int main(){
  ll a, b, c, d, e, f, g, h, n, k, m;
  a = 0;
  b = 0;
  c = 0;
  d = 0;
  e = 0;
  f = 0;
  g = 0;
  h = 0;
  k = 0;
  in(n);
  rep(i, n){
    in(m);
    if(m < 400)
      a = 1;
    else if(m < 800)
      b = 1;
    else if(m < 1200)
      c = 1;
    else if(m < 1600)
      d = 1;
    else if(m < 2000)
      e = 1;
    else if(m < 2400)
      f = 1;
    else if(m < 2800)
      g = 1;
    else if(m < 3200)
      h = 1;
    else
      k = 1;
  }
  if(k >= 1){
    out(min(a + b + c + d + e + f + g + h + k));
    hina;
    out(max(1ll, a + b + c + d + e + f + g + h));
    memi;
  }
  else{
    out(a + b + c + d + e + f + g + h);
    hina;
    out(a + b + c + d + e + f + g + h);
    memi;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:51:12: error: no matching function for call to 'min(ll)'
   51 |     out(min(a + b + c + d + e + f + g + h + k));
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:14:24: note: in definition of macro 'out'
   14 | #define out(n) cout << n
      |                        ^
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:51:12: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   51 |     out(min(a + b + c + d + e + f + g + h + k));
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:14:24: note: in definition of macro 'out'
   14 | #define out(n) cout << n
      |                        ^
/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