criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <iostream>
#include <algorithm>

using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)

int main() {
  int N;
  cin >> N;

  int count[9];
  REP(i, 9)
    count[i] = 0;

  REP(i, N) {
    int a;
    cin >> a;
    ++count[min(a / 400, 8)];
  }

  int min_val = 0, max_val = 0;
  if (count[8] == N) {
    min_val = 1;
    max_val = min(count[8], 8);
  } else {
    REP(i, 8) {
      if (count[i] != 0)
        ++min_val;
    }
    max_val = min(8, min_val + count[8]);
  }

  cout << min_val << " " << max_val << endl;
  return 0;
}


3200以上がいる・いない
色数が8色・それ以外

Compiler output:
a.cc:40:1: error: expected unqualified-id before numeric constant
   40 | 3200以上がいる・いない
      | ^~~~~~~~~~~~~~~~~~~~~~
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] colors = new int[9];
        
        while (n-- > 0) {
            int rate = sc.nextInt();
            int colorNumber = getColor(rate);
            colors[colorNumber]++;
        }
        
        int min = 0;
        int max = 0;
        for (int i = 0; i < 8; i++) {
            if (colors[i] > 0) min++;
        }
        
        max = Math.min(8, min + colors[8]);
        if (min == 0) {
            min == 1;
        }
        
        System.out.println(min + " " + max);
    }
    
    public static int getColor(int rate) {
        if (rate < 400) {
            return 0;
        } else if (rate < 800) {
            return 1;
        } else if (rate < 1200) {
            return 2;
        } else if (rate < 1600) {
            return 3;
        } else if (rate < 2000) {
            return 4;
        } else if (rate < 2400) {
            return 5;
        } else if (rate < 2800) {
            return 6;
        } else if (rate < 3200) {
            return 7;
        }
        return 8;
    }
}


Compiler output:
Main.java:24: error: not a statement
            min == 1;
                ^
1 error
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] colors = new int[9];
        
        while (n-- > 0) {
            int rate = sc.nextInt();
            int colorNumber = getColor(rate);
            colors[colorNumber]++;
        }
        
        int min = 0;
        int max = 0;
        for (int i = 0; i < 8; i++) {
            if (colors[i] > 0) min++;
        }
        if (min == 0) {
            min = 1;
            max = Math.min(8, colors[8]);
            }
        } else {
            max = Math.min(8, min + colors[8]);
        }
        
        System.out.println(min + " " + max);
    }
    
    public static int getColor(int rate) {
        if (rate < 400) {
            return 0;
        } else if (rate < 800) {
            return 1;
        } else if (rate < 1200) {
            return 2;
        } else if (rate < 1600) {
            return 3;
        } else if (rate < 2000) {
            return 4;
        } else if (rate < 2400) {
            return 5;
        } else if (rate < 2800) {
            return 6;
        } else if (rate < 3200) {
            return 7;
        }
        return 8;
    }
}


Compiler output:
Main.java:25: error: illegal start of type
        } else {
          ^
Main.java:29: error: <identifier> expected
        System.out.println(min + " " + max);
                          ^
Main.java:29: error: <identifier> expected
        System.out.println(min + " " + max);
                              ^
Main.java:32: error: unnamed classes are a preview feature and are disabled by default.
    public static int getColor(int rate) {
                  ^
  (use --enable-preview to enable unnamed classes)
Main.java:52: error: class, interface, enum, or record expected
}
^
5 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  bool col[8]=true;
  int mas=0;
  int g=0;
  for(int i=0;i<N;i++){
    int a;
    cin >> a;
    if(a<400 && col[0]){
      mas++;
      col[0]=false;
    }
    else if(a<800 && col[1]){
      mas++;
      col[1]=false;
    }
    else if(a<1200 && col[2]){
      mas++;
      col[2]=false;
    }
    else if(a<1600 && col[3]){
      mas++;
      col[3]=false;
    }
    else if(a<2000 && col[4]){
      mas++;
      col[4]=false;
    }
    else if(a<2400 && col[5]){
      mas++;
      col[5]=false;
    }
    else if(a<2800 && col[6]){
      mas++;
      col[6]=false;
    }
    else {
      g++;
    }
    cout << min(mas,g) << ' ' << mas+g;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: array must be initialized with a brace-enclosed initializer
    7 |   bool col[8]=true;
      |               ^~~~
a.cc:45:4: error: expected '}' at end of input
   45 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>

int num_to_color(int n) {
    if (n >= 1 && n <= 399) {
        return 1;
    }
    else if (n >= 400 && n <= 799) {
        return 2;
    }
    else if (n >= 800 && n <= 1199) {
        return 3;
    }
    else if (n >= 1200 && n <= 1599) {
        return 4;
    }
    else if (n >= 1600 && n <= 1999) {
        return 5;
    }
    else if (n >= 2000 && n <= 2399) {
        return 6;
    }
    else if (n >= 2400 && n <= 2799) {
        return 7;
    }
    else if (n >= 2800 && n <= 3199) {
        return 8;
    }
    else {
        return -1;
    }
}


std::vector<int> vec, colors;
int n, a;


int main() {
    int rainbow = 0;
    std::cin >> n;
    vec.assign(n, 0);
    colors.assign(n+1, 0);
    for (int i = 0; i < n; i++) {
        std::cin >> a;
        vec.push_back(num_to_color(a));
    }
    for (int j = 0; j < n; j++) {
        if (vec[j] == -1) {
            rainbow++;
        }
        else {
            colors[vec[j]]++;
        }
    }
    int max_num = 0;
    int min_num = 0;
    for (int r = 1; r <= 8; r++) {
        if (color[r] >= 1) {
            min_num++;
        }
    }
    if (min_num == 0) {
        min_num = 1;
        max_num = std::min(rainbow, 8);
    else {
        max_num = std::min(min_num+rainbow, 8);
    }
    std::cout << min_num << " " << max_num << std::endl;
    
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:58:13: error: 'color' was not declared in this scope; did you mean 'colors'?
   58 |         if (color[r] >= 1) {
      |             ^~~~~
      |             colors
a.cc:65:5: error: expected '}' before 'else'
   65 |     else {
      |     ^~~~
a.cc:62:23: note: to match this '{'
   62 |     if (min_num == 0) {
      |                       ^
Language: C++

#include <bits/stdc++.h>
#include<algorithm>
#include<math.h>
using namespace std;
 
template <class T> using V = vector<T>;
 
using ll = long long;
using db = double;
using st = string;
using ch = char;
using vll = V<ll>;
using vpll =V<pair<ll,ll>>;
using vst = V<st>;
using vdb = V<db>;
using vch = V<ch>;
 
 
#define FOR(i,a,b) for(ll i=(a);i<(ll)(b);i++)
#define rFOR(i,a,b) for(ll i=(a);i>(ll)(b);i--)
#define oFOR(i,a,b) for(ll i=(a);i<(ll)(b);i+=2)
#define bgn begin()
#define en end()
#define SORT(a) sort((a).bgn,(a).en)
#define REV(a) reverse((a).bgn,(a).en)
#define M(a,b) max(a,b)
#define rM(a,b) min(a,b)
#define fi first
#define se second
#define sz size()
#define gcd(a,b) __gcd(a,b)
#define co(a) cout<<a<<endl;
#define ci(a) cin>>a;
 
 
ll sum(ll n) {
  ll m=0;
  FOR(i,0,20){
    m+=n%10;
    n/=10;
    if(n==0){
      break;
    }
  }
  return m;
}
 
 
ll combi(ll n,ll m) {
  ll ans=1;
  rFOR(i,n,n-m){
    ans*=i;
  }
  FOR(i,1,m+1){
    ans/=i;
  }
  return ans;
}
 
 
ll lcm(ll a,ll b){
  ll n;
  n=a/gcd(a,b)*b;
  return n;
}
 
 
/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/
 
 
signed main() {
  ll n;
  	ci(n);
  vll A(9);
  FOR(i,0,n){
    ll a;
    	ci(a);
    A[a/400]++;
  }
  
  ll mini=0;
  ll maxi=0
  ll e=8;
  FOR(i,0,e){
    if(A[i]!=0) mini++;   
  }
  if(mini==0) cout<<1<<" ";
  else cout<<mini<<" ";
  
  if(mini+A[8]<=9) co(mini+A[8])
  else co(9)
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:87:3: error: expected ',' or ';' before 'll'
   87 |   ll e=8;
      |   ^~
a.cc:88:11: error: 'e' was not declared in this scope
   88 |   FOR(i,0,e){
      |           ^
a.cc:19:40: note: in definition of macro 'FOR'
   19 | #define FOR(i,a,b) for(ll i=(a);i<(ll)(b);i++)
      |                                        ^
Language: C++

#include <bits/stdc++.h>
#include<algorithm>
#include<math.h>
using namespace std;
 
template <class T> using V = vector<T>;
 
using ll = long long;
using db = double;
using st = string;
using ch = char;
using vll = V<ll>;
using vpll =V<pair<ll,ll>>;
using vst = V<st>;
using vdb = V<db>;
using vch = V<ch>;
 
 
#define FOR(i,a,b) for(ll i=(a);i<(ll)(b);i++)
#define rFOR(i,a,b) for(ll i=(a);i>(ll)(b);i--)
#define oFOR(i,a,b) for(ll i=(a);i<(ll)(b);i+=2)
#define bgn begin()
#define en end()
#define SORT(a) sort((a).bgn,(a).en)
#define REV(a) reverse((a).bgn,(a).en)
#define M(a,b) max(a,b)
#define rM(a,b) min(a,b)
#define fi first
#define se second
#define sz size()
#define gcd(a,b) __gcd(a,b)
#define co(a) cout<<a<<endl;
#define ci(a) cin>>a;
 
 
ll sum(ll n) {
  ll m=0;
  FOR(i,0,20){
    m+=n%10;
    n/=10;
    if(n==0){
      break;
    }
  }
  return m;
}
 
 
ll combi(ll n,ll m) {
  ll ans=1;
  rFOR(i,n,n-m){
    ans*=i;
  }
  FOR(i,1,m+1){
    ans/=i;
  }
  return ans;
}
 
 
ll lcm(ll a,ll b){
  ll n;
  n=a/gcd(a,b)*b;
  return n;
}
 
 
/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/
 
 
signed main() {
  ll n;
  	ci(n);
  vll A(9);
  FOR(i,0,n){
    ll a;
    	ci(a);
    A[a/400]++;
  }
  
  ll mini=0;
  ll maxi=0
  FOR(i,0,8){
    if(A[i]!=0) mini++;   
  }
  if(mini==0) cout<<1<<" ";
  else cout<<mini<<" ";
  
  if(mini+A[8]<=9) co(mini+A[8])
  else co(9)
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: expected ',' or ';' before 'for'
   19 | #define FOR(i,a,b) for(ll i=(a);i<(ll)(b);i++)
      |                    ^~~
a.cc:87:3: note: in expansion of macro 'FOR'
   87 |   FOR(i,0,8){
      |   ^~~
a.cc:87:7: error: 'i' was not declared in this scope
   87 |   FOR(i,0,8){
      |       ^
a.cc:19:33: note: in definition of macro 'FOR'
   19 | #define FOR(i,a,b) for(ll i=(a);i<(ll)(b);i++)
      |                                 ^
Language: C++

#include"bits/stdc++.h"
using namespace std;
#define LL long long

LL N,M,ans,r,a,col[8];

pair<LL, LL>bc;
vector<pair<LL, LL>>BC;
int main() {
	vector<LL> A;
	cin >> N;


	for (int i = 0; i < N; i++) {
		cin >> a;
		if(a<3200)col[a / 400]++;
		else r++;
		}
	for (int i = 0; i < 8; i++) {
		if (col[i] > 0)ans++;
	}

		cout<<ans<<" "<<min(ans + r, long long(8))<<endl;


	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:46: error: expected primary-expression before 'long'
   23 |                 cout<<ans<<" "<<min(ans + r, long long(8))<<endl;
      |                                              ^~~~
Language: C++

#include"bits/stdc++.h"
using namespace std;
#define LL long long

LL N,M,ans,r,a,col[8];

pair<LL, LL>bc;
vector<pair<LL, LL>>BC;
int main() {
	vector<LL> A;
	cin >> N;


	for (int i = 0; i < N; i++) {
		cin >> a;
		if(a<3200)col[a / 400]++;
		else r++;
		}
	for (int i = 0; i < 8; i++) {
		if (col[i] > 0)ans++;
	}

		cout<<ans<<" "<<min(ans + r, LL(8))<<endl;


	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:12: error: expected primary-expression before 'long'
    3 | #define LL long long
      |            ^~~~
a.cc:23:46: note: in expansion of macro 'LL'
   23 |                 cout<<ans<<" "<<min(ans + r, LL(8))<<endl;
      |                                              ^~
Language: C++

#ifdef _DEBUG
#include "MyLib.h"
#else
#define main_C main
#include "bits/stdc++.h"
#include <regex>
#define _USE_MATH_DEFINES
#include <math.h>
#define FOR(i,s,e) for (int i = int(s); i < int(e); ++i)
#define REP(i,e) FOR(i,0,e)
//#define INF (INT_MAX/2)
#define EPS (1.0e-8)
//#define LINF (LLONG_MAX/2)
const int MGN = 8;
const int ARY_SZ_MAX = 10000000;
using namespace std;
using ll = long long; using ull = unsigned long long;
using vi = vector<int>; using vvi = vector<vi>; using vvvi = vector<vvi>;
using vb = vector<bool>; using vvb = vector<vb>; using vvvb = vector<vvb>;
using vl = vector<ll>; using vvl = vector<vl>;
using vd = vector<double>; using vs = vector<string>;
using pii = pair<int, int>; using pll = pair<ll, ll>;
using psi = pair<string, int>;
// functions
template<ll MOD>

#endif


int main_C() {
    std::cin.tie(0);
    ios::sync_with_stdio(false);

    int N; cin >> N;
    vi A(N); REP(i, N) cin >> A[i];

    map<string, int> mp;
    REP(i,N){
        if (1<=A[i] && A[i]<=399) {
            mp["gray"]++;
        } else if (400 <= A[i] && A[i] <= 799) {
            mp["brown"]++;
        } else if (800 <= A[i] && A[i] <= 1199) {
            mp["green"]++;
        } else if (1200 <= A[i] && A[i] <= 1599) {
            mp["light_blue"]++;
        } else if (1600 <= A[i] && A[i] <= 1999) {
            mp["blue"]++;
        } else if (2000 <= A[i] && A[i] <= 2399) {
            mp["yellow"]++;
        } else if (2400 <= A[i] && A[i] <= 2799) {
            mp["orange"]++;
        } else if (2800 <= A[i] && A[i] <= 3199) {
            mp["red"]++;
        } else if (3200 <= A[i]) {
            mp["super"]++;
        }
    }

    int lo = 0; int hi;
    for(auto p : mp) {
        lo++;
    }
    if (mp.count("super")>0) {
        lo--;
        hi = lo + mp["super"];
    } else {
        hi = lo;
    }

    cout << lo << " " << hi << endl;

    return 0;
}

Compiler output:
a.cc:4:16: error: cannot declare '::main' to be a template
    4 | #define main_C main
      |                ^~~~
a.cc:30:5: note: in expansion of macro 'main_C'
   30 | int main_C() {
      |     ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,count;cin>>N;
  vector<int> a(9);
  for(int i=0;i<N;i++){
    cin>>p;
    if(p<=399)a.at(0)++;
    else if(p<=799)a.at(1)++;
    else if(p<=1199)a.at(2)++;
    else if(p<=1599)a.at(3)++;
    else if(p<=1999)a.at(4)++;
    else if(p<=2399)a.at(5)++;
    else if(p<=2799)a.at(6)++;
    else if(p<=3199)a.at(7)++;
    else a.at(8)++;
  }
  for(int i=0;i<9;i++)
    if(a.at(i)!=0)count++;
  cout<<count<<" "<<count+a.at(8)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'p' was not declared in this scope
    7 |     cin>>p;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
struct Fast { Fast() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20);} } fast;

int main() {
    int n, a, c = 0, gra = 0, br = 0, gre = 0, cy = 0, bl = 0, ye = 0, o = 0, re = 0, sp = 0;
    cin >> n;
    for (int i = 0; i < n; i++){
        cin >> a;
        if (0 < a && a < 400 && gra < 1){
            c++;
            gra++;
        }
        if (400 < a && a < 800 && br < 1){
            c++;
            br++;
        }
        if (800 < a && a < 1200 && gre < 1){
            c++;
            gre++;
        }
        if (1200 < a && a < 1600 && cy < 1){
            c++;
            cy++;
        }
        if (1600 < a && a < 2000 && bl < 1){
            c++;
            bl++;
        }
        if (2000 < a && a < 2400 && ye < 1){
            c++;
            ye++;
        }
        if (2400 < a && a < 2800 && o < 1){
            c++;
            o++;
        }
        if (2800 < a && a < 3200 && re < 1){
            c++;
            re++;
        }
        if (a > 3199){
            sp++;
        }
        if (sp + c > 8){
            cout << c << ' ' << 8 << endl;
        }else{
            cout << c << ' ' << c + sp << endl;
        }
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:50:6: error: expected '}' at end of input
   50 |     }
      |      ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int N,a[100],rank[8]={0,0,0,0,0,0,0,0};
  cin >> N; 
  int count=0;
  for(int i=0;i<N;i++){
    cin >> a[i];
    for(int j=0;j<8;j++){
      if(400*i<=a[i]&&a[i]<400*(i+1)) rank[j]=1
    }
    if(a[i]>3200)count++;
  }
  int ans1=0,ans2;
  for(int i=0;i<8;i++) ans1+=rank[i];
  ans2=min(ans1+count,8);
  cout <<ans1 <<" "<<ans2<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:48: error: expected ';' before '}' token
   11 |       if(400*i<=a[i]&&a[i]<400*(i+1)) rank[j]=1
      |                                                ^
      |                                                ;
   12 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
	map<int,int> mapa;
	int l=1,r=399;
	int n,sz=0,rat;
	cin >> n;
	for(int i = 0;i<n;i++){
		l = 1,r=399;
		bool f = 0;
		cin >> rat;
		for(int j = 1;j<=8;j++){
			
			if(rat>=l and rat <=r){
				f = 1;
				mapa[j]=1;
				
				break;
			}
			l = 400*j;
			r =l+399;
		}

		if(!f)
			sz++;
	
	}
	
	cout<<max(1,mapa.size())<<" "<<min(8,(int)mapa.size()+sz);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:18: error: no matching function for call to 'max(int, std::map<int, int>::size_type)'
   30 |         cout<<max(1,mapa.size())<<" "<<min(8,(int)mapa.size()+sz);
      |               ~~~^~~~~~~~~~~~~~~
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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:30:18: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'std::map<int, int>::size_type' {aka 'long unsigned int'})
   30 |         cout<<max(1,mapa.size())<<" "<<min(8,(int)mapa.size()+sz);
      |               ~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:30:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   30 |         cout<<max(1,mapa.size())<<" "<<min(8,(int)mapa.size()+sz);
      |               ~~~^~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;

typedef long long llt;

const int MaxN = 100000 + 5, MaxM = 100000 + 5;

int main(){
    int n, rate, max;
  	int ncount;
    cin >> n;
    vector<int> a(9);

    for(int i=0;i<n;i++)
    {   
        cin >> rate;
        rate = rate/400;
        if(rate > 7) rate = 8;
        a[rate] += 1;
    }
	for (int i=0;i<8;i++) {
      if(a[i] > 0) ncount++;
    }
    ncount = max(1,ncount);
  	max = ncount+a[8];
  	max = min(max, 8);
    cout << ncount << ' ' << max << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: error: 'max' cannot be used as a function
   25 |     ncount = max(1,ncount);
      |              ~~~^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

typedef long long llt;

const int MaxN = 100000 + 5, MaxM = 100000 + 5;
const llt INF = 0x7F7F7F7F7F7F7F7F;


int main(){
    int n
    llt rate;
  	int ncount=0;
    cin >> n;
    vector<int> a(8);

    for(int i=0;i<n;i++)
    {   
        cin >> rate;
        rate = rate/400;
        if(rate > 7) rate = 8;
        //cout << rate << endl;
        a[rate] += 1;
    }
	for (int i=0;i<9;i++) if(a[i] != 0) ncount++;
	if (ncount > a[8]) ncount = a[8]/ncount+(7-ncount);
    cout << ncount << ' ' << ncount+a[8] << endl;
    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected initializer before 'llt'
   12 |     llt rate;
      |     ^~~
a.cc:14:12: error: 'n' was not declared in this scope; did you mean 'yn'?
   14 |     cin >> n;
      |            ^
      |            yn
a.cc:19:16: error: 'rate' was not declared in this scope
   19 |         cin >> rate;
      |                ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

#define lint long long
#define P pair<int, int>

signed main() {
    int N;
    cin >> N;

    int a[N];
    int lis[9] = {};
    for(int i = 0; i < N; ++i){
        cin >> a[i];
        int tmp = a[i] / 400;
        if(tmp <= 7){
            lis[tmp]++;
        } else {
            lis[8]++;
        }
    }

    int cnt= 0;
    for(int i = 0; i < 8; ++i){
        if(lis[i] > 0){
            cnt++;
        }
    }

    cout << max(1, cnt) << " " << cnt + lis[8] << endl;
}#include <bits/stdc++.h>
using namespace std;

#define lint long long
#define P pair<int, int>

signed main() {
    int N;
    cin >> N;

    int a[N];
    int lis[9] = {};
    for(int i = 0; i < N; ++i){
        cin >> a[i];
        int tmp = a[i] / 400;
        if(tmp <= 7){
            lis[tmp]++;
        } else {
            lis[8]++;
        }
    }

    int cnt= 0;
    for(int i = 0; i < 8; ++i){
        if(lis[i] > 0){
            cnt++;
        }
    }

    cout << max(1, cnt) << " " << cnt + lis[8] << endl;
}

Compiler output:
a.cc:31:2: error: stray '#' in program
   31 | }#include <bits/stdc++.h>
      |  ^
a.cc:31:3: error: 'include' does not name a type
   31 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:37:8: error: redefinition of 'int main()'
   37 | signed main() {
      |        ^~~~
a.cc:7:8: note: 'int main()' previously defined here
    7 | signed main() {
      |        ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int N,c=0,a=0;
  vector<int> vec(8);
  cin>>N;
  
  vector<int> R(N);
  
  for(int i=0;i<N;i++){
    cin >> R.at(i);
  }
  
  for(int i=0;i<N;i++){
    if(0<R.at(i)&&R.at(i)<400){
      vec.at(0)=1;
    }else if(R.at(i)<800){
      vec.at(1)=1;
    }else if(R.at(i)<1200){
      vec.at(2)=1;
    }else if(R.at(i)<1600){
      vec.at(3)=1;
    }else if(R.at(i)<2000){
      vec.at(4)=1;
    }else if(R.at(i)<2400){
      vec.at(5)=1;
    }else if(R.at(i)<2800){
      vec.at(6)=1;
    }else if(R.at(i)<3200){
      vec.at(7)=1;
    }else{
      a=2;
  }
    
    for(int i=0;i<8;i++){
      if(vec.at(i)==1)
         c++;
    }
    
    cout << c <<" "<<c+a<<endl;
    return 0;
  }
      

Compiler output:
a.cc: In function 'int main()':
a.cc:43:4: error: expected '}' at end of input
   43 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int N,c=0;
  vector<int> vec(8)
  cin>>N;
  
  vector<int> R(N);
  
  for(int i=0;i<N;i++){
    cin >> R.at(i);
  }
  
  for(int i=0;i<N;i++){
    if(0<R.at(i)&&R.at(i)<400){
      vec.at(0)=1;
    }else if(R.at(i)<800){
      vec.at(1)=1;
    }else if(R.at(i)<1200){
      vec.at(2)=1;
    }else if(R.at(i)<1600){
      vec.at(3)=1;
    }else if(R.at(i)<2000){
      vec.at(4)=1;
    }else if(R.at(i)<2400){
      vec.at(5)=1;
    }else if(R.at(i)<2800){
      vec.at(6)=1;
    }else{
      vec.at(7)=1;
    }
  }
    
    for(int i=0;i<8;i++){
      if(vec.at(i)==1)
         c++;
    }
    
    cout << c <<c+2 <<endl;
    return 0;
  }
      

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'cin'
    7 |   cin>>N;
      |   ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int N,c=0;
  vector<int> vec(8)
  cin >> N;
  
  vector<int> R(N);
  
  for(int i=0;i<N;i++){
    cin >> R.at(i);
  }
  
  for(int i=0;i<N;i++){
    if(0<R.at(i)&&R.at(i)<400){
      vec.at(0)=1;
    }else if(R.at(i)<800){
      vec.at(1)=1;
    }else if(R.at(i)<1200){
      vec.at(2)=1;
    }else if(R.at(i)<1600){
      vec.at(3)=1;
    }else if(R.at(i)<2000){
      vec.at(4)=1;
    }else if(R.at(i)<2400){
      vec.at(5)=1;
    }else if(R.at(i)<2800){
      vec.at(6)=1;
    }else{
      vec.at(7)=1;
    }
  }
    
    for(int i=0;i<8;i++){
      if(vec.at(i)==1)
         c++;
    }
    
    cout << c <<c+2 <<endl;
    return 0;
  }
      

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'cin'
    7 |   cin >> N;
      |   ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int N,c=0;
  vector<int> vec(8)
  cin >> N;
  
  vector<int> R(N);
  
  for(int i=0;i<N;i++){
    cin >> R.at(i);
  }
  
  for(int i=0;i<N;i++){
    if(0<R.at(i)&&R.at(i)<400){
      vec.at(0)=1;
    }else if(R.at(i)<800){
      vec.at(1)=1;
    }else if(R.at(i)<1200){
      vec.at(2)=1;
    }else if(R.at(i)<1600){
      vec.at(3)=1;
    }else if(R.at(i)<2000){
      vec.at(4)=1;
    }else if(R.at(i)<2400){
      vec.at(5)=1;
    }else if(R.at(i)<2800){
      vec.at(6)=1;
    }else{
      vec.at(7)=1;
    }
    
    for(int i=0;i<8;i++){
      if(vec.at(i)==1)
         c++;
    }
    
    cout << c <<c+2 <<endl;
    return 0;
  }
      

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'cin'
    7 |   cin >> N;
      |   ^~~
a.cc:41:4: error: expected '}' at end of input
   41 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int N,c=0;
  vecter<int> vec(8)
  cin >> N;
  
  vector<int> R(N);
  
  for(int i=0;i<N;i++){
    cin >> R.at(i);
  }
  
  for(int i=0;i<N;i++){
    if(0<R.at(i)&&R.at(i)<400){
      vec.at(0)=1;
    }else if(R.at(i)<800){
      vec.at(1)=1;
    }else if(R.at(i)<1200){
      vec.at(2)=1;
    }else if(R.at(i)<1600){
      vec.at(3)=1;
    }else if(R.at(i)<2000){
      vec.at(4)=1;
    }else if(R.at(i)<2400){
      vec.at(5)=1;
    }else if(R.at(i)<2800){
      vec.at(6)=1;
    }else{
      vec.at(7)=1;
    }
    
    for(int i=0;i<8;i++){
      if(vec.at(i)==1)
         c++;
    }
    
    cout << c <<c+2 <<endl;
    return 0;
  }
      

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vecter' was not declared in this scope
    6 |   vecter<int> vec(8)
      |   ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vecter<int> vec(8)
      |          ^~~
a.cc:17:7: error: 'vec' was not declared in this scope
   17 |       vec.at(0)=1;
      |       ^~~
a.cc:19:7: error: 'vec' was not declared in this scope
   19 |       vec.at(1)=1;
      |       ^~~
a.cc:21:7: error: 'vec' was not declared in this scope
   21 |       vec.at(2)=1;
      |       ^~~
a.cc:23:7: error: 'vec' was not declared in this scope
   23 |       vec.at(3)=1;
      |       ^~~
a.cc:25:7: error: 'vec' was not declared in this scope
   25 |       vec.at(4)=1;
      |       ^~~
a.cc:27:7: error: 'vec' was not declared in this scope
   27 |       vec.at(5)=1;
      |       ^~~
a.cc:29:7: error: 'vec' was not declared in this scope
   29 |       vec.at(6)=1;
      |       ^~~
a.cc:31:7: error: 'vec' was not declared in this scope
   31 |       vec.at(7)=1;
      |       ^~~
a.cc:35:10: error: 'vec' was not declared in this scope
   35 |       if(vec.at(i)==1)
      |          ^~~
a.cc:41:4: error: expected '}' at end of input
   41 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define repb(i, n) for (int i = (int)n; i >= 0; i--)
#define reps(i, m, n) for (int i = (int)m; i < (int)n; i++)
#define repsb(i, m, n) for (int i = (int)m; i >= (int)n; i--)
#define SORT(v, n) sort(v, v + n);
#define VSORT(v) sort(v.begin(), v.end());
#define pb(a) push_back(a)
#define INF 999999999999999999
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
using namespace std;
int main(int argc, char const *argv[])
{
    int n, t = 0, c = 0;
    cin >> n;
    vector<int> v(n, 0);
    rep(i, n)
    {
        cin >> v[i];
    }
    vector<int> cnt(8, 0);
    rep(i, v.size())
    {
        rep(j, cnt.size())
        {
            if (v[i] < (j + 1) * 400)
            {
                cnt[j]++;
                break;
            }
        }
        if (v[i] >= 3200)
            cnt++;
    }
    rep(i, num.size())
    {
        if (num[i] > 0)
            c++;
    }
    if (c != 0)
        cout << c << " " << c + t << endl;
    else
        cout << 1 << " " << t << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:34:16: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   34 |             cnt++;
      |             ~~~^~
a.cc:36:12: error: 'num' was not declared in this scope; did you mean 'enum'?
   36 |     rep(i, num.size())
      |            ^~~
a.cc:2:44: note: in definition of macro 'rep'
    2 | #define rep(i, n) for (int i = 0; i < (int)n; i++)
      |                                            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N;
  cin >> N;
  int R;
  int C[9]={};
  for (int i=0;i<N;i++){
    cin >> R;
    C[R>=3200?8:R/400]++;
  }
  int ans=0;
  for (int i=0;i<8;inti++){
    ans+=C[i]>0?1:0;
  }
  cout << ans << " " << ans+c[8] << endl; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: 'inti' was not declared in this scope; did you mean 'int'?
   14 |   for (int i=0;i<8;inti++){
      |                    ^~~~
      |                    int
a.cc:17:29: error: 'c' was not declared in this scope
   17 |   cout << ans << " " << ans+c[8] << endl;
      |                             ^
Language: C++

#include <vector>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <string>
#include <cstring>
#include <algorithm>
#include <numeric>
#include <cstdlib>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define REP(i,n) for(int i=0;i<n;i++)
#define SORT(c) sort((c).begin(),(c).end())
#define ALL(a) (a).begin(),(a).end()

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);

  int n;
  cin >> n;
  int freedom = 0;
  bool colors[8];
  REP(i, 8) {
    colors[i] = false;
  }
  bool hai = false;
  bool cha = false;
  bool midori = false;
  bool mizu = false;
  bool ao = false;
  bool ki = false;
  bool dai = false;
  bool aka = false;

  REP(i, n) {
    int tmp;
    cin >> tmp;
    if(tmp <= 399) {
      colors[0] = true;
    } else if(tmp <= 799) {
      colors[1] = true;
    } else if(tmp <= 1199) {
      colors[2] = true;
    } else if(tmp <= 1599) {
      colors[3] = true;
    } else if(tmp <= 1999) {
      colors[4] = true;
    } else if(tmp <= 2399) {
      colors[5] = true;
    } else if(tmp <= 2799) {
      colors[6] = true;
    } else if(tmp <= 3199) {
      colors[7] = true;
    } else {
      freedom++;
    }
  }

  int colorsCount = 0;
  REP(i, 8) {
    if(colors[i]) {
      colorsCount++;
    }
  }

  int maxAns = colorsCount + freedom;
  if(maxAns > 8) {
    maxAns = 8;
  }
  cout << colorsCountm << " " << axAns << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:73:11: error: 'colorsCountm' was not declared in this scope; did you mean 'colorsCount'?
   73 |   cout << colorsCountm << " " << axAns << endl;
      |           ^~~~~~~~~~~~
      |           colorsCount
a.cc:73:34: error: 'axAns' was not declared in this scope; did you mean 'maxAns'?
   73 |   cout << colorsCountm << " " << axAns << endl;
      |                                  ^~~~~
      |                                  maxAns
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<cmath>
#include<map>
#include<iomanip>
#include<queue>
#include<stack>
#include<time.h>
//もう二度とつかわん//
//    ↓ ↓　↓　　 //
#define ll long long
//    ↑　↑　↑    //
//フェルマー方程式の恨み//
#define rep(i,n) for(int i=0;i<n;i++)
#define ggr getchar(); getchar();return 0;
using namespace std;
ll n;
ll a[114];
ll cnt[9];
signed main() {
	ll p = 0, c = 0;
	cin >> n;
	rep(i, n)cin >> a[i];
	rep(i, n) {
		cnt[a[i] / 400]++;
		if (a[i] >= 3200)c++;
	}
	rep(i, 8) {
		if (cnt[i])p++;
	}
	if (c == n)cout << 1 << " " << < n << endl;
	else cout << p << " " << p + c << endl;
	ggr
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:40: error: expected primary-expression before '<' token
   33 |         if (c == n)cout << 1 << " " << < n << endl;
      |                                        ^
a.cc:33:44: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<'
   33 |         if (c == n)cout << 1 << " " << < n << endl;
      |                                          ~~^~~~~~~
Language: C++

# include<bits/stdc++.h>
using namespace std;

int main(){
int N;
int cnt = 0; 
int d[9] = {0,0,0,0,0,0,0,0,0};  
  cin >> N;
int a[N];
  for(int i = 0;i < N;i++){
  cin >> a[i];
  }
  
  for(int i = 0;i < N;i++){
  if((a[i] <= 399) && (a[i] >= 1)) d[0]++;
    else if((a[i] <= 799) && (a[i] >= 400)) d[1]++;
    else if((a[i] <= 1199) && (a[i] >= 800)) d[2]++;
    else if((a[i] <= 1599) && (a[i] >= 1200)) d[3]++;
    else if((a[i] <= 1999) && (a[i] >= 1600)) d[4]++;
    else if((a[i] <= 2399) && (a[i] >= 2000)) d[5]++;
    else if((a[i] <= 2799) && (a[i] >= 2400)) d[6]++;
    else if((a[i] <= 3199) && (a[i] >= 2800)) d[7]++;
    else if((a[i] >= 3200) && (a[i] <= 4800)) d[8]++;
  }
  
  for(int i = 0;i < 8;i++){
  if(d[i] > 0) cnt++;
  }
  
  if(d[8] > 0) && (d[8] + cnt <= 9){
  cout << cnt << " " << cnt + d[8];
  } 
  
 if(d[8] > 0) && (d[8] + cnt >= 10){
  cout << cnt << " " << 9;
  } 
  
  else{
  cout << cnt << " " << cnt;
  }
  
  return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:19: error: expected identifier before '(' token
   30 |   if(d[8] > 0) && (d[8] + cnt <= 9){
      |                   ^
a.cc:34:18: error: expected identifier before '(' token
   34 |  if(d[8] > 0) && (d[8] + cnt >= 10){
      |                  ^
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<sstream>
#include<iomanip>
#include<limits>
#include<deque>
#include<map>
#include<list>
#include<set>
#include <unordered_set>
#include<vector>
#include<cmath>
#include<cstdio>
#include<memory>
#include<bitset>

using namespace std;

#define MOD 1000000007
#define INF 1050000000

int main() {
	int n; cin >> n;
	int a;
	int ans[9];
	memset(ans, 0, sizeof(ans));

	for (int i = 0; i < n; i++) {
		cin >> a;
		if (a >= 3200) { ans[8]++; }
		else { ans[a / 400]++; }
	}

	int x = 0;

	for (int i = 0; i < 8; i++) {
		if (ans[i] > 0) { x++; }
	}

	cout << x << " " << min(x + ans[8], 8) << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:9: error: 'memset' was not declared in this scope
   27 |         memset(ans, 0, sizeof(ans));
      |         ^~~~~~
a.cc:17:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
   16 | #include<bitset>
  +++ |+#include <cstring>
   17 |
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,c,r=0;
  cin>>n;
  map<int,int> m;
  for(int i=0;i<n;++i){
    cin>>c;
    if((c/=400)>=8)r++;
    else m[c]++;
  }
  cout<<max(m.size(),1)<<" "<<m.size()+r<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: no matching function for call to 'max(std::map<int, int>::size_type, int)'
   12 |   cout<<max(m.size(),1)<<" "<<m.size()+r<<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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:12:12: note:   deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'int')
   12 |   cout<<max(m.size(),1)<<" "<<m.size()+r<<endl;
      |         ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:12:12: note:   mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int'
   12 |   cout<<max(m.size(),1)<<" "<<m.size()+r<<endl;
      |         ~~~^~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const double EPS = 1e-9;
const int INF = 1e9;
const int MOD = 1e9+7;
const ll LINF = 1e18;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef vector<vector<ll>> vll;
typedef pair<int, int> pi;
typedef pair<ll, ll> pll;
typedef map<int, int> mi;
typedef set<int> si;
#define VV(T) vector<vector< T > >
#define dump(x)  cout << #x << " = " << (x) << endl
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define POSSIBLE(n) cout << ((n) ? "POSSIBLE" : "IMPOSSIBLE"  ) << endl
#define Possible(n) cout << ((n) ? "Possible" : "Impossible"  ) << endl

#define rep(i, n) REP(i, 0, n)                              // 0, 1, ..., n-1
#define REP(i, x, n) for(int i = x; i < n; i++)             // x, x + 1, ..., n-1
#define FOREACH(x,a) for(auto& (x) : (a) )
#define SORT(x) sort(x.begin(), x.end())

#define ALL(v) (v).begin() , (v).end()
#define RALL(v) (v).rbegin(), (v).rend()

#define pb push_back
#define pu push
#define mp make_pair
#define fi first
#define sc second

#define COUT(x) cout << (x) << endl
#define VECCIN(x) for(auto&youso_: (x) )cin>>youso_
#define VECCOUT(x) for(auto&youso_: (x) )cout<<youso_<<" ";cout<<endl

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }


int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    int N; cin >> N;
    int flg = 0;
    int cnt = 0;
    rep(i, N) {
        int a; cin >> a;
        if (a >= 3200) cnt++;
        else if (a >= 2800) flg |= (1<<1);
        else if (a >= 2400) flg |= (1<<2);
        else if (a >= 2000) flg |= (1<<3);
        else if (a >= 1600) flg |= (1<<4);
        else if (a >= 1200) flg |= (1<<5);
        else if (a >= 800)  flg |= (1<<6);
        else if (a >= 400)  flg |= (1<<7);
        else                flg |= (1<<8); 
    }
    int temp = 0;
    rep(i, 8) {
        if(flg & (1<<i)) temp++;
    }
    if(temp == 0) {
        m = 1;
    }
    cout << temp << " " << temp + cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:68:9: error: 'm' was not declared in this scope
   68 |         m = 1;
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int n;
  cin>>n;
  vector<int> a(n);
  for(int i=0; i<n; i++)cin>>a.at(i);

  set<int> fl;
  int free=0;
  for(int i=0; i<n; i++){
    if(a.at(i)<400)fl.insert(0);
    else if(a.at(i)<800)fl.insert(1);
    else if(a.at(i)<1200)fl.insert(2);
    else if(a.at(i)<1600)fl.insert(3);
    else if(a.at(i)<2000)fl.insert(4);
    else if(a.at(i)<2400)fl.insert(5);
    else if(a.at(i)<2800)fl.insert(6);
    else if(a.at(i)<3200)fl.insert(7);
    else free++;
  }

  cout<<max(fl.size(), 1)<<" "<<fl.size()+free<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:12: error: no matching function for call to 'max(std::set<int>::size_type, int)'
   24 |   cout<<max(fl.size(), 1)<<" "<<fl.size()+free<<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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:24:12: note:   deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'int')
   24 |   cout<<max(fl.size(), 1)<<" "<<fl.size()+free<<endl;
      |         ~~~^~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:24:12: note:   mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int'
   24 |   cout<<max(fl.size(), 1)<<" "<<fl.size()+free<<endl;
      |         ~~~^~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <numeric>

using namespace std;
int cnt[8];

int main(){
   int n;
   cin>>n;
   vector<int> a(n);
   int r=0;
   for(int i=0;i<n;i++){
      cin>>a[i];
      if(a[i]<3200)cnt[a[i]/400]=1;
      else r++;
   }
   int ans=0;
   for(int i=0;i<8;i++){
      ans+=cnt[i];
   }
   if(ans==0){
      cout<<1<<" "<<r<<endl;
      return 0;
   }
   cout<<ans<<" "<<ans+r<<endl;

}#include <iostream>
#include <string>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <numeric>

using namespace std;
int cnt[8];

int main(){
   int n;
   cin>>n;
   vector<int> a(n);
   int r=0;
   for(int i=0;i<n;i++){
      cin>>a[i];
      if(a[i]<3200)cnt[a[i]/400]=1;
      else r++;
   }
   int ans=0;
   for(int i=0;i<8;i++){
      ans+=cnt[i];
   }
   if(ans==0){
      cout<<1<<" "<<r<<endl;
      return 0;
   }
   cout<<ans<<" "<<ans+r<<endl;

}

Compiler output:
a.cc:35:2: error: stray '#' in program
   35 | }#include <iostream>
      |  ^
a.cc:35:3: error: 'include' does not name a type
   35 | }#include <iostream>
      |   ^~~~~~~
a.cc:47:5: error: redefinition of 'int cnt [8]'
   47 | int cnt[8];
      |     ^~~
a.cc:13:5: note: 'int cnt [8]' previously declared here
   13 | int cnt[8];
      |     ^~~
a.cc:49:5: error: redefinition of 'int main()'
   49 | int main(){
      |     ^~~~
a.cc:15:5: note: 'int main()' previously defined here
   15 | int main(){
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define int long long
#define ll long long
#define rep(i,n) for(int i=0;i<n;i++)
#define INF LLONG_MAX
#define eps LDBL_EPSILON
#define moder 1000000007
#define pie 3.141592653589793238462643383279
#define P std::pair<int,int>
#define prique priority_queue
using namespace std;
int n,a;
set<int> st;
signed main(){
	cin>>n;
	int ans=0;
	rep(i,n){
		cin>>a;
		if(a>=3200)ans++;
		else st.insert(a/400);
	}
	cout<<max(1,(int)st.size())<<" "<<st.size()+ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: no matching function for call to 'max(int, long long int)'
   22 |         cout<<max(1,(int)st.size())<<" "<<st.size()+ans<<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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:22:18: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   22 |         cout<<max(1,(int)st.size())<<" "<<st.size()+ans<<endl;
      |               ~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:22:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   22 |         cout<<max(1,(int)st.size())<<" "<<st.size()+ans<<endl;
      |               ~~~^~~~~~~~~~~~~~~~~~