Language: C++

#define _GLIBCXX_DEBUG
#define rep(i,n) for(int i=0;i<n;i++)
#include <bits/stdc++.h>
#include <numeric>
using namespace std;
typedef long long ll;
const int mod= 1e+9+7;

int main() {
    int N; cin>>N;
    vector<int>a(N);
      bitset<8>b;
      int cnt=0;
    rep(i,N){
        cin>>a[i];
        if(a[i]>=3200){
            cnt++;
            continue;
        }
        b.set(a[i]/400);
    }
    int bb =b.count();
    cout<<bb<" ";
    if(bb+cnt>=8)cout<<8<<endl;
    else cout<<bb+cnt<<endl;
    }
 



Compiler output:
a.cc: In function 'int main()':
a.cc:23:13: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'const char [2]')
   23 |     cout<<bb<" ";
      |     ~~~~~~~~^~~~
      |         |    |
      |         |    const char [2]
      |         std::basic_ostream<char>
In file included from /usr/include/c++/14/regex:68,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
                 from a.cc:3:
/usr/include/c++/14/bits/regex.h:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
 1143 |     operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1143:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
   23 |     cout<<bb<" ";
      |              ^~~
/usr/include/c++/14/bits/regex.h:1224:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
 1224 |     operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1224:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
   23 |     cout<<bb<" ";
      |              ^~~
/usr/include/c++/14/bits/regex.h:1317:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
 1317 |     operator<(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1317:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
   23 |     cout<<bb<" ";
      |              ^~~
/usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
 1391 |     operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1391:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [2]'
   23 |     cout<<bb<" ";
      |              ^~~
/usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
 1485 |     operator<(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1485:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
   23 |     cout<<bb<" ";
      |              ^~~
/usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
 1560 |     operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1560:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [2]'
   23 |     cout<<bb<" ";
      |              ^~~
/usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
 1660 |     operator<(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1660:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
   23 |     cout<<bb<" ";
      |              ^~~
In file included from /usr/include/c++/14/vector:76,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53:
/usr/include/c++/14/debug/vector:892:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::__debug::operator<(const vector<_Tp, _Alloc>&, const vector<_Tp, _Alloc>&)'
  892 |     operator<(const vector<_Tp, _Alloc>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/debug/vector:892:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   'std::basic_ostream<char>' is not derived from 'const std::__debug::vector<_Tp, _Alloc>'
   23 |     cout<<bb<" ";
      |              ^~~
In file included from /usr/include/c++/14/deque:77,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:139:
/usr/include/c++/14/debug/deque:690:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::__debug::operator<(const deque<_Tp, _Allocator>&, const deque<_Tp, _Allocator>&)'
  690 |     operator<(const deque<_Tp, _Alloc>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/debug/deque:690:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   'std::basic_ostream<char>' is not derived from 'const std::__debug::deque<_Tp, _Allocator>'
   23 |     cout<<bb<" ";
      |              ^~~
In file included from /usr/include/c++/14/list:69,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:150:
/usr/include/c++/14/debug/list:943:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::__debug::operator<(const list<_Tp, _Allocator>&, const list<_Tp, _Allocator>&)'
  943 |     operator<(const list<_Tp, _Alloc>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/debug/list:943:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   'std::basic_ostream<char>' is not derived from 'const std::__debug::list<_Tp, _Allocator>'
   23 |     cout<<bb<" ";
      |              ^~~
In file included from /usr/include/c++/14/debug/map:43,
                 from /usr/include/c++/14/map:69,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152:
/usr/include/c++/14/debug/map.h:769:5: note: candidate: 'template<class _Key, class _Tp, class _Compare, class _Allocator> bool std::__debug::operator<(const map<_Key, _Tp, _Compare, _Allocator>&, const map<_Key, _Tp, _Compare, _Allocator>&)'
  769 |     operator<(const map<_Key, _Tp, _Compare, _Allocator>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/debug/map.h:769:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   'std::basic_ostream<char>' is not derived from 'const std::__debug::map<_Key, _Tp, _Compare, _Allocator>'
   23 |     cout<<bb<" ";
      |              ^~~
In file included from /usr/include/c++/14/debug/map:44:
/usr/include/c++/14/debug/multimap.h:651:5: note: candidate: 'template<class _Key, class _Tp, class _Compare, class _Allocator> bool std::__debug::operator<(const multimap<_Key, _Tp, _Compare, _Allocator>&, const multimap<_Key, _Tp, _Compare, _Allocator>&)'
  651 |     operator<(const multimap<_Key, _Tp, _Compare, _Allocator>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/debug/multimap.h:651:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   'std::basic_ostream<char>' is not derived from 'const std::__debug::multimap<_Key, _Tp, _Compare, _Allocator>'
   23 |     cout<<bb<" ";
      |              ^~~
In file included from /usr/include/c++/14/debug/set:41,
                 from /usr/include/c++/14/set:69,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:158:
/usr/include/c++/14/debug/set.h:630:5: note: candidate: 'template<class _Key, class _Compare, class _Allocator> bool std::__debug::operator<(const set<_Key, _Compare, _Allocator>&, const set<_Key, _Compare, _Allocator>&)'
  630 |     operator<(const set<_Key, _Compare, _Allocator>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/debug/set.h:630:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   'std::basic_ostream<char>' is not derived from 'const std::__debug::set<_Key, _Compare, _Allocator>'
   23 |     cout<<bb<" ";
      |              ^~~
In file included from /usr/include/c++/14/debug/set:42:
/usr/include/c++/14/debug/multiset.h:620:5: note: candidate: 'template<class _Key, class _Compare, class _Allocator> bool std::__debug::operator<(const multiset<_Key, _Compare, _Allocator>&, const multiset<_Key, _Compare, _Allocator>&)'
  620 |     operator<(const multiset<_Key, _Compare, _Allocator>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/debug/multiset.h:620:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   'std::basic_ostream<char>' is not derived from 'const std::__debug::multiset<_Key, _Compare, _Allocator>'
   23 |     cout<<bb<" ";
      |              ^~~
In file included from /usr/include/c++/14/forward_list:45,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:175:
/usr/include/c++/14/debug/forward_list:878:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::__debug::operator<(const forward_list<_Tp, _Allocator>&, const forward_list<_Tp, _Allocator>&)'
  878 |     operator<(const forward_list<_Tp, _Alloc>& __lx,
      |     ^~~~~~~~
/usr/include/c++/14/debug/forward_list:878:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   'std::basic_ostream<char>' is not derived from 'const std::__debug::forward_list<_Tp, _Allocator>'
   23 |     cout<<bb<" ";
      |              ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexp