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

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <string>
#include <vector>



int main(){
	
	
	string line;
	vector<string> wordsblue;
	vector<string> wordsred;
	int N,M,i,j,k;
	int count,countdef;	
	
	countdef=1;
	scanf("%d",&N);
	
	for(i=0;i<N;i++){
		cin >> line;
		wordsblue.push_back(line);		
	}
	
	scanf("%d",&M);
	
	for(i=0;i<M;i++){
		cin >> line;
		wordsred.push_back(line);
	}
	
	for(i=0;i<N;i++){
		count=1;
		for(j=0;j<N;j++){
			if(wordsred[i]==wordsred[j]){
				count+=1;
			}
		}	
		for(k=0;k<M;k++){
			if(wordsred[i]==wordsblue[k]){
				count-=1;
			}
		}
		if (count>countdef){
			countdef=count;
		}	
	}	
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'string' was not declared in this scope
   13 |         string line;
      |         ^~~~~~
a.cc:13:9: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from a.cc:5:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:14:9: error: 'vector' was not declared in this scope
   14 |         vector<string> wordsblue;
      |         ^~~~~~
a.cc:14:9: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:6:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:14:24: error: 'wordsblue' was not declared in this scope
   14 |         vector<string> wordsblue;
      |                        ^~~~~~~~~
a.cc:15:24: error: 'wordsred' was not declared in this scope
   15 |         vector<string> wordsred;
      |                        ^~~~~~~~
a.cc:23:17: error: 'cin' was not declared in this scope; did you mean 'sin'?
   23 |                 cin >> line;
      |                 ^~~
      |                 sin
a.cc:23:24: error: 'line' was not declared in this scope
   23 |                 cin >> line;
      |                        ^~~~
a.cc:30:17: error: 'cin' was not declared in this scope; did you mean 'sin'?
   30 |                 cin >> line;
      |                 ^~~
      |                 sin
a.cc:30:24: error: 'line' was not declared in this scope
   30 |                 cin >> line;
      |                        ^~~~
Language: C++

#include <cstdio>
#include <string>
using namespace std;

int main(){
    int N,M,y,max;


    scanf("%d",&N);
    char* s[N] = new char[10];

    for(int i=1;i<=N;i++){
        scanf("%s",&s[i]);
    }
    scanf("%d",&M);
    char* t[M] = new char[10];

    for(int i=1;i<=M;i++){
        scanf("%s",&t[i]);
    }

    max=0;
    for(int i=1;i<=N;i++){
        y=0;
        for(int j=i;j<=N;j++){
            if(s[i]==s[j]) y=y+1;
        }
        for(int k=1;k<=M;k++){
            if(s[i]==t[k]) y=y-1;
        }
        if(max<y) max=y;
    }

    if(max<0) max=0;

    printf("%d",max);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: array must be initialized with a brace-enclosed initializer
   10 |     char* s[N] = new char[10];
      |                  ^~~~~~~~~~~~
a.cc:16:18: error: array must be initialized with a brace-enclosed initializer
   16 |     char* t[M] = new char[10];
      |                  ^~~~~~~~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;

int Max(int arr[],int ele){
    int a_max=0;
    for(int i=0;i<ele;i++) a_max = max(a_max,arr[0]);
    return a_max;
}

int main(){
    int N,M;
    char s[100][20],t[100][20];
    int count[100];
    cin >> N;
    for(int i=0;i<N;i++){
        scanf("%s",s[i]);
    }
    cin >>M;
     for(int j=0;j<M;j++){
        scanf("%s",s[j]);
    }
    for(int k=0;k<N;k++){
        for(int l=k;l<N;l++){
            if(s[k]==s[l])
            count[k]++;          
        }
    }
    for(int m=0;m<N;m++){
        for (int n=1;n<M;n++){
            if(s[m]==t[n]) count[k]--;
        }
    }
    cout << Max(count,N) << endl;
    return 0;



}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:34: error: 'k' was not declared in this scope
   32 |             if(s[m]==t[n]) count[k]--;
      |                                  ^
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;

int Max(int arr[],int ele){
    int a_max=0;
    for(i=0;i<ele;i++) a_max = max(a_max,arr[0]);
    return a_max;
}

int main(){
    int N,M;
    char s[100][20],t[100][20];
    int count[100];
    cin >> N;
    for(int i=0;i<N;i++){
        scanf("%s",s[i]);
    }
    cin >>M;
     for(int j=0;j<M;j++){
        scanf("%s",s[j]);
    }
    for(int k=0;k<N;k++){
        for(int l=k;l<N;l++){
            if(s[k]==s[l])
            count[k]++;          
        }
    }
    for(int m=0;m<N;m++){
        for (int n=1;n<M;n++){
            if(s[k]==t[n]) count[k]--;
        }
    }
    cout << Max(count,N) << endl;
    return 0;



}

Compiler output:
a.cc: In function 'int Max(int*, int)':
a.cc:8:9: error: 'i' was not declared in this scope
    8 |     for(i=0;i<ele;i++) a_max = max(a_max,arr[0]);
      |         ^
a.cc: In function 'int main()':
a.cc:32:18: error: 'k' was not declared in this scope
   32 |             if(s[k]==t[n]) count[k]--;
      |                  ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    long long n1, n2;
    map<string, long long> arr;
    cin >> n1;
    for(long long i = 0; i < n1; i++)
    {
        string str;
        cin >> str;
        arr[str]++;
    }
    cin >> n2;
    for(long long i = 0; i < n2; i++)
    {
        string str;
        cin >> str;
        arr[str]--;
    }
    long long minimum = arr.begin()->second;
    for(auto it : arr)
    {
        if(minimum < it.second)
        {
            minimum = it.second;
        }
    }
    cout << max(minimum, 0) << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:16: error: no matching function for call to 'max(long long int&, int)'
   31 |     cout << max(minimum, 0) << 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:31:16: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   31 |     cout << max(minimum, 0) << 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:31:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   31 |     cout << max(minimum, 0) << endl;
      |             ~~~^~~~~~~~~~~~
Language: C++

#include<stdio.h>
#include<math.h>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{
    char a[105][20],b[105][20],c[105][20];
    int n,m,i,j,max=0,k=0,sum1,sum2,p,q,pi,po,sum;
    scanf("%d",&n);
    getchar();
    for(i=0;i<n;i++)
    {
        gets(a[i]);
    }
    scanf("%d",&m);
    getchar();
    for(i=0;i<m;i++)
    {
        gets(b[i]);
    }
    for(i=0;i<n;i++)
    {
        sum1=0,sum2=0,pi=1;
        for(p=0;p<k;p++)
        {
            pi=1;
            for(q=0;a[i][q];q++)
            {
                if(a[i][q]!=c[p][q])
                    pi=0;
            }
            if(pi)
            {
                for(q=0;a[i][q];q++)
                {
                    c[k][q]=a[i][q];
                }
                c[k][q]='\0',k++;
                break;
            }
        }
        if(pi)
        {
            for(j=i;j<n;j++)
            {
                po=1;
                for(q=0;a[j][q];q++)
                {
                    if(a[j][q]!=a[i][q])
                        po=0;
                }
                if(po)
                    sum1++;
            }
            for(j=0;j<m;j++)
            {
                po=1;
                for(q=0;b[j][q];q++)
                {
                    if(b[j][q]!=a[i][q])
                        po=0;
                }
                if(po)
                    sum2++;
            }
            sum=sum1-sum2;
            max=sum>max?sum:max;
        }
    }
    printf("%d\n",max);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   14 |         gets(a[i]);
      |         ^~~~
      |         getw
a.cc:20:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   20 |         gets(b[i]);
      |         ^~~~
      |         getw
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int main()
{
    int m,n,i,j,s,max;
    scanf("%d",&n);getchar();
    char a[101][11]={"\0"},b[101][11]={"\0"};
    for(i=0;i<n;i++)
    {
        gets(a[i]);
    }
    scanf("%d",&m);getchar();
    for(i=0;i<m;i++)
    {
        gets(b[i]);
    }
    max=0;
    for(i=0;i<n;i++)
    {
        s=0;
        for(j=0;j<n;j++)
        {
            if(strcmp(a[i],a[j])==0)
                s++;
        }
        for(j=0;j<m;j++)
        {
            if(strcmp(a[i],b[j])==0)
                s--;
        }
        if(s>=max)
            max=s;
    }
    printf("%d\n",max);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |         gets(a[i]);
      |         ^~~~
      |         getw
a.cc:17:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   17 |         gets(b[i]);
      |         ^~~~
      |         getw
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int main()
{
    int m,n,i,j,s,max;
    scanf("%d",&n);getchar();
    char a[101][11]={"\0"},b[101][11]={"\0"};
    for(i=0;i<n;i++)
    {
        gets(a[i]);
    }
    scanf("%d",&m);getchar();
    for(i=0;i<m;i++)
    {
        gets(b[i]);
    }
    max=0;
    for(i=0;i<n;i++)
    {
        s=0;
        for(j=0;j<n;j++)
        {
            if(strcmp(a[i],a[j])==0)
                s++;
        }
        for(j=0;j<m;j++)
        {
            if(strcmp(a[i],b[j])==0)
                s--;
        }
        if(s>=max)
            max=s;
    }
    printf("%d\n",max);getchar();
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |         gets(a[i]);
      |         ^~~~
      |         getw
a.cc:17:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   17 |         gets(b[i]);
      |         ^~~~
      |         getw
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int main()
{
    int m,n,i,j,s,max;
    scanf("%d",&n);getchar();
    char a[101][11]={"\0"},b[101][11]={"\0"};
    for(i=0;i<n;i++)
    {
        gets(a[i]);
    }
    scanf("%d",&m);getchar();
    for(i=0;i<m;i++)
    {
        gets(b[i]);
    }
    max=0;
    for(i=0;i<n;i++)
    {
        s=0;
        for(j=0;j<n;j++)
        {
            if(strcmp(a[i],a[j])==0)
                s++;
        }
        for(j=0;j<m;j++)
        {
            if(strcmp(a[i],b[j])==0)
                s--;
        }
        if(s>=max)
            max=s;
    }
    printf("%d\n",s);getchar();
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |         gets(a[i]);
      |         ^~~~
      |         getw
a.cc:17:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   17 |         gets(b[i]);
      |         ^~~~
      |         getw
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include<string.h>

int main()
{
    int a,b,d,n,m,i,j,l;
    char s[100][1000],c[100][1000];
    scanf("%d",&n);
    getchar();
    for(i=0;i<n;i++)
        gets(s[i]);
        //scanf("%s",s[i]);
    scanf("%d",&m);
    getchar();
    for(i=0;i<m;i++)
        gets(c[i]);
       // scanf("%s",c[i]);
    for(i=0,d=0;i<n;i++)
    {
        for(j=0,b=1;j<n;j++)
        {
            if(j==i)
                continue;
            else
            {
                a=strcmp(s[i],s[j]);
                if(a==0)
                    b++;
            }
        }
        for(l=0;l<m;l++)
        {
            a=strcmp(s[i],c[l]);
            if(a==0)
                b--;
        }
        if(b>d)
            d=b;
    }
    printf("%d\n",d);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |         gets(s[i]);
      |         ^~~~
      |         getw
a.cc:17:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   17 |         gets(c[i]);
      |         ^~~~
      |         getw
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char a[100][20],b[20];
	int n,m,i,j,maxx=0;
	map<int,string> mm;
    scanf("%d%d",&n,&m);
    for(i=0;i<n;i++)
    {
		scanf("%s",a[i]);
		map[a[i]]++;
	}
	for(i=0;i<n;i++)
	{
		scanf("%s",b);
		map[b]--;
	}
	for(i=0;i<n;i++)
	{
		maxx=max(max,map.count(a[i]));
	}
	printf("%d",maxx);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: expected ']' before '[' token
   12 |                 map[a[i]]++;
      |                      ^
      |                      ]
a.cc:12:26: error: expected initializer before '++' token
   12 |                 map[a[i]]++;
      |                          ^~
a.cc:12:26: error: expected ';' before '++' token
a.cc:17:23: error: expected initializer before '--' token
   17 |                 map[b]--;
      |                       ^~
a.cc:17:23: error: expected ';' before '--' token
a.cc:21:33: error: missing template arguments before '.' token
   21 |                 maxx=max(max,map.count(a[i]));
      |                                 ^
Language: C++

#include <cstdio>
#include <cstring>
#include <map>
#include <algorithm>
#include <iostream>
#include <cmath>
//#define e 2.718

#define ll long long

using namespace std;

map<string,int> q;

int main()
{
    int n,m;
    cin>>n;
    string temp;
    for(int i=0;i<n;i++){
        cin>>temp;
            ++q[temp];

    }
    cin>>m;
    for(int i=0;i<m;i++){
        cin>>temp;
        if(q[temp]>0){
            --q[temp];
        }

    }

    ll res=0;
    map<string,int>::iterator it;
    it = q.begin();

    while(it != q.end())
    {
        //it->first;
        //it->second;
        //int max = it->second;
        res = max(res,it->second);
        it ++;
    }
    cout<<res<<endl;
    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:18: error: no matching function for call to 'max(long long int&, int&)'
   43 |         res = max(res,it->second);
      |               ~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/stl_tree.h:63,
                 from /usr/include/c++/14/map:62,
                 from a.cc:3:
/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:43:18: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   43 |         res = max(res,it->second);
      |               ~~~^~~~~~~~~~~~~~~~
/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,
                 from a.cc:4:
/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:43:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   43 |         res = max(res,it->second);
      |               ~~~^~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<map>
#include<string>

using namespace std;

int main(){
int n;
cin>>n;
string tmp;
map<string, int> score;
for(int i=0; i<n; ++i){
cin>>tmp;
score[tmp]++;
}
cin>>n;
for(int i=0; i<n; ++i){
cin>>tmp;
score[tmp]--;
}
int s=0;
for(auto i:score) s=max(s, i->second);
cout<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:29: error: base operand of '->' has non-pointer type 'std::pair<const std::__cxx11::basic_string<char>, int>'
   22 | for(auto i:score) s=max(s, i->second);
      |                             ^~
Language: C++

#include<iostream>
#include<map>
#include<string>

using namespace std;

int main(){
int n;
cin>>n;
string tmp;
map<string, int> score;
for(int i=0; i<n; ++i){
cin>>tmp;
score[tmp]++;
}
cin>>n;
for(int i=0; i<n; ++i){
cin>>tmp;
score[tmp]--;
}
int s=0;
for(auto i:score) s=max(s, i->decided);
cout<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:29: error: base operand of '->' has non-pointer type 'std::pair<const std::__cxx11::basic_string<char>, int>'
   22 | for(auto i:score) s=max(s, i->decided);
      |                             ^~
Language: C++

#include<iostream>
#include<map>
#include<string>

using namespace std;

int main(){
int n;
cin>>n;
string tmp;
map<string, int> score;
for(int i=0; i<n; ++i){
cin>>tmp;
score[tmp]++;
}
cin>>n;
for(int i=0; i<n; ++i){
cin>>tmp;
score[tmp]++;
}
int s=0;
for(auto i:score) s=max(s, i->decided);
cout<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:29: error: base operand of '->' has non-pointer type 'std::pair<const std::__cxx11::basic_string<char>, int>'
   22 | for(auto i:score) s=max(s, i->decided);
      |                             ^~
Language: C++

using namespace std;
string s[105],t[105];
vector<int> ans;
int n,m;
#include<bits/stdc++.h>
using namespace std;
int main()
{
	cin>>n;
	for(int i=0;i<n;i++)
		cin>>s[i];
	cin>>m;
	for(int i=0;i<m;i++)
		cin>>t[i];
	for(int i=0;i<n;i++)
	{
		int cnt=0;
		for(int j=0;j<n;j++)
		{
			if(s[i]==s[j])
				cnt++;
		}
		for(int j=0;j<m;j++)
		{
			if(s[i]==t[j])
				cnt--;
		}
		ans.push_back(cnt);
	}
	for(int i=0;i<m;i++)
	{
		int cnt=0;
		for(int j=0;j<n;j++)
		{
			if(t[i]==s[j])
				cnt++;
		}
		for(int j=0;j<m;j++)
		{
			if(t[i]==t[j])
				cnt--;
		}
		ans.push_back(cnt);
	}
	sort(ans.begin(),ans.end(),greater<int>());
	cout<<max(0,ans[0]);
	return 0;
}

Compiler output:
a.cc:2:1: error: 'string' does not name a type; did you mean 'stdin'?
    2 | string s[105],t[105];
      | ^~~~~~
      | stdin
a.cc:3:1: error: 'vector' does not name a type
    3 | vector<int> ans;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:11:22: error: 's' was not declared in this scope
   11 |                 cin>>s[i];
      |                      ^
a.cc:14:22: error: 't' was not declared in this scope
   14 |                 cin>>t[i];
      |                      ^
a.cc:20:28: error: 's' was not declared in this scope
   20 |                         if(s[i]==s[j])
      |                            ^
a.cc:25:28: error: 's' was not declared in this scope
   25 |                         if(s[i]==t[j])
      |                            ^
a.cc:25:34: error: 't' was not declared in this scope
   25 |                         if(s[i]==t[j])
      |                                  ^
a.cc:28:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   28 |                 ans.push_back(cnt);
      |                 ^~~
      |                 abs
a.cc:35:28: error: 't' was not declared in this scope
   35 |                         if(t[i]==s[j])
      |                            ^
a.cc:35:34: error: 's' was not declared in this scope
   35 |                         if(t[i]==s[j])
      |                                  ^
a.cc:40:28: error: 't' was not declared in this scope
   40 |                         if(t[i]==t[j])
      |                            ^
a.cc:43:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   43 |                 ans.push_back(cnt);
      |                 ^~~
      |                 abs
a.cc:45:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
   45 |         sort(ans.begin(),ans.end(),greater<int>());
      |              ^~~
      |              abs
Language: Java


import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashSet;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author rn-sshawish
 */
public class Atcoder91B {

    public static void main(String[] args) throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(input.readLine());
        HashSet<String> hashSet = new HashSet<>();
        for (int i = 0; i < n; i++) {
            hashSet.add(input.readLine());
        }
        int m = Integer.parseInt(input.readLine());
        HashSet<String> hashSet2 = new HashSet<>();
        for (int i = 0; i < m; i++) {
            hashSet2.add(input.readLine());
        }
        int count = 0;
        for (String string : hashSet) {
            if (!hashSet2.contains(string)) {
                count++;
            }
        }
        if (count == 0) {

            for (String string : hashSet2) {
                if (!hashSet.contains(string)) {
                    count++;
                }
            }
        }
        System.out.println(count);
    }
}


Compiler output:
Main.java:15: error: class Atcoder91B is public, should be declared in a file named Atcoder91B.java
public class Atcoder91B {
       ^
1 error
Language: C++

#include<bits/stdc++.h>
#include<stdio.h>
#include<vector>
#include<algorithm>
#include<string>
#include<iostream>
#include<queue>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
#define pb push_back
using namespace std;
typedef pair<int, int>pii;

map<string,int> C;

int main(){
	string A[105],B[105];
	int N,M;
	cin >> N;
	rep(i,N) cin >>A[i];
	cin >> M;
	rep(i,M) cin >>B[i];
	rep(i,N) C[A[i]]++;
	rep(i,M) C[B[i]]--;
	int a=-1;
	rep(i,N) a=max(a,C[A[i]]);
	rep(i,M) b=max(a,C[B[i]]);
	if(a<0) cout << "0"<<endl;
	else cout << a <<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:18: error: 'b' was not declared in this scope
   27 |         rep(i,M) b=max(a,C[B[i]]);
      |                  ^
Language: C++

#include<iostream> 
#include<map>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;
int main(){
  string s;
  int n;
  vector<string>ans;
  map<string,int>mp;
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>s;
    mp[s]++;
    ans.push_back(s);
  }
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>s;
    mp[s]--;
    ans.push_back(s);
  }
  int ma=0;
  for(int i=0;i<ans.size();i++;){
    ma=max(ma,mp[i]);
  }
  cout<<ma<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:31: error: expected ')' before ';' token
   25 |   for(int i=0;i<ans.size();i++;){
      |      ~                        ^
      |                               )
a.cc:25:32: error: expected primary-expression before ')' token
   25 |   for(int i=0;i<ans.size();i++;){
      |                                ^
Language: C++

int main()
{
	int n, m;
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> s[i];
		s2[i] = 0;
	}
	cin >> m;
	for (int j = 0; j < m; j++)
		cin >> t[j];

	for (int i = 0; i < n; i++) {
		for (int j = 0; j < n; j++)
			if (s[i] == s[j])
				s2[i] += 1;
		for (int k = 0; k < m; k++)
			if (s[i] == t[k])
				s2[i] -= 1;
	}
	sort(s2, s2 + 101);
	reverse(s2, s2 + 101);
	if (s2[0] < 0)
		cout << 0;
	else
		cout << s2[0];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> n;
      |         ^~~
a.cc:6:24: error: 's' was not declared in this scope
    6 |                 cin >> s[i];
      |                        ^
a.cc:7:17: error: 's2' was not declared in this scope
    7 |                 s2[i] = 0;
      |                 ^~
a.cc:11:24: error: 't' was not declared in this scope
   11 |                 cin >> t[j];
      |                        ^
a.cc:15:29: error: 's' was not declared in this scope
   15 |                         if (s[i] == s[j])
      |                             ^
a.cc:16:33: error: 's2' was not declared in this scope
   16 |                                 s2[i] += 1;
      |                                 ^~
a.cc:18:29: error: 's' was not declared in this scope
   18 |                         if (s[i] == t[k])
      |                             ^
a.cc:18:37: error: 't' was not declared in this scope
   18 |                         if (s[i] == t[k])
      |                                     ^
a.cc:19:33: error: 's2' was not declared in this scope
   19 |                                 s2[i] -= 1;
      |                                 ^~
a.cc:21:14: error: 's2' was not declared in this scope
   21 |         sort(s2, s2 + 101);
      |              ^~
a.cc:21:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   21 |         sort(s2, s2 + 101);
      |         ^~~~
      |         short
a.cc:22:9: error: 'reverse' was not declared in this scope
   22 |         reverse(s2, s2 + 101);
      |         ^~~~~~~
a.cc:24:17: error: 'cout' was not declared in this scope
   24 |                 cout << 0;
      |                 ^~~~
a.cc:26:17: error: 'cout' was not declared in this scope
   26 |                 cout << s2[0];
      |                 ^~~~
Language: C++


if __name__ == '__main__':

	blue_dict = {}
	red_dict= {}

	N = int(input())
	for _ in range(N):
		key = input()
		if key in blue_dict.keys():
			blue_dict[key] += 1
		else:
			blue_dict[key] = 1
	
	M = int(input())
	for _ in range(M):
		key = input()
		if key in blue_dict.keys():
			blue_dict[key] -= 1
		else:
			blue_dict[key] = 0
	
#	print(blue_dict)
	print(max(0, max(blue_dict.values())))
	
	


Compiler output:
a.cc:2:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    2 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:23:9: error: invalid preprocessing directive #print
   23 | #       print(blue_dict)
      |         ^~~~~
a.cc:2:1: error: expected unqualified-id before 'if'
    2 | if __name__ == '__main__':
      | ^~
a.cc:5:9: error: 'red_dict' does not name a type
    5 |         red_dict= {}
      |         ^~~~~~~~
a.cc:7:9: error: 'N' does not name a type
    7 |         N = int(input())
      |         ^
Language: C++

#include <sstream>
#include<iostream>
#include<string>
#include<algorithm> 
using namespace std;
int main(){
  int n,m,k,sum=0;
  string s[105]={' '},t[105]={' '};
  cin>>n;
  for(int i=1;i<=n;i++){
  	cin>>s[i];
  }
  cin>>m;
  for(int i=1;i<=m;i++){
  	cin>>t[i];
  }
  for(int i=1;i<=n;i++){
  	string check=s[i];
  	k=max(n,m);
  	for(int j=1;j<=k;j++){
  	  if(s[j]==check){
  	  	sum++;
		}  
	  if(t[j]==check){
	  	sum--;
	  }
	}
  }
  if(sum)
    cout<<sum<<endl;
  else
    cout<<0<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: conversion from 'char' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    8 |   string s[105]={' '},t[105]={' '};
      |                  ^~~
a.cc:8:31: error: conversion from 'char' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    8 |   string s[105]={' '},t[105]={' '};
      |                               ^~~
Language: C++

#include<bits/stdc++.h>
#include<stdio.h>
#include<vector>
#include<algorithm>
#include<string>
#include<iostream>
#include<queue>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
#define pb push_back
using namespace std;
typedef pair<int, int>pii;

map<string,int> C[105];

int main(){
	string A[105],B[105];
	int N,M;
	cin >> N;
	rep(i,N) cin >>A[i];
	cin >> M;
	rep(i,M) cin >>B[i];
	rep(i,N) C[A[i]]++;
	rep(i,M) C[B[i]]--;
	M=max(M,N);
	int a=-1;
	rep(i,M){
		a=max(a,C[i]);
	}
	if(a<0) cout << "0"<<endl;
	else cout << a <<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:19: error: no match for 'operator[]' (operand types are 'std::map<std::__cxx11::basic_string<char>, int> [105]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   23 |         rep(i,N) C[A[i]]++;
      |                   ^
a.cc:24:19: error: no match for 'operator[]' (operand types are 'std::map<std::__cxx11::basic_string<char>, int> [105]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   24 |         rep(i,M) C[B[i]]--;
      |                   ^
a.cc:28:22: error: no matching function for call to 'max(int&, std::map<std::__cxx11::basic_string<char>, int>&)'
   28 |                 a=max(a,C[i]);
      |                   ~~~^~~~~~~~
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:28:22: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'std::map<std::__cxx11::basic_string<char>, int>')
   28 |                 a=max(a,C[i]);
      |                   ~~~^~~~~~~~
/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:28:22: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   28 |                 a=max(a,C[i]);
      |                   ~~~^~~~~~~~
Language: C++

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

int main(){
	int N;
	cin >> N;
	vector<string> s(N);
	for(int i=0; i<N; i++) cin >> s[i];
	int M;
	cin >> M;
	vector<string> t(M);
	for(int i=0; i<M; i++) cin >> t[i];

	int X=0;

	if(N>M){
		for(int i=0; i<N; i++){
			int Y=0;
			string temp;
			temp = s[i];
			for(int j=i+1; j<N; j++){
				if(temp == s[j]) Y++;
			}
			for(int j=0; j<M; j++){
				if(temp == t[j]) Y--;
			}
			if(Y>X) X=Y;
			Y=0
		}
		cout << X;
	} else {
		for(int i=0; i<M; i++){
			int Y=0;
			string temp;
			temp = t[i];
			for(int j=i+1; j<N; j++){
				if(temp == s[j]) Y++;
			}
			for(int j=0; j<M; j++){
				if(temp == t[j]) Y--;
			}
			if(Y>X) X=Y;
			Y=0
		}
		cout << X;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:28: error: expected ';' before '}' token
   30 |                         Y=0
      |                            ^
      |                            ;
   31 |                 }
      |                 ~           
a.cc:45:28: error: expected ';' before '}' token
   45 |                         Y=0
      |                            ^
      |                            ;
   46 |                 }
      |                 ~
Language: C++

#include<bits/stdc++.h>
#include<atcoder/all>
using namespace std;
using namespace atcoder;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define per(i,n) for(int i=n-1;i>=0;i--)
#define per1(i,n) for(int i=n;i>0;i--)
#define all(v) v.begin(), v.end()
typedef long long ll;
typedef pair<ll,ll> P;
typedef vector<ll> vec;
typedef vector<vec> mat;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n;
    cin>>n;
    mf_graph<int> A(2*n+2);
    int R[n][2],B[n][2];
    rep(i,n) cin>>R[i][0]>>R[i][1];
    rep(i,n) cin>>B[i][0]>>B[i][1];
    rep(i,n){
        rep(j,n) if(R[i][0]<B[j][0]&&R[i][1]<B[j][1]) A.add_edge(i,j+n,1);
    }
    rep(i,n) A.add_edge(2*n,i,1),A.add_edge(n+i,2*n+1,1);
    cout<<A.flow(2*n,2*n+1);
}

Compiler output:
a.cc:2:9: fatal error: atcoder/all: No such file or directory
    2 | #include<atcoder/all>
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#include <atcoder/maxflow>
#define ll long long int
#define MOD 1000000007
#define P pair<ll,ll>
#define INF 1000000000000000000

using namespace atcoder;
using namespace std;

int main(void){
  ll n;
  cin >> n;
  
  vector<P> red(n);
  for (int i = 0; i < n; i++){
    cin >> red[i].first >> red[i].second;
  }
  vector<P> blue(n);
  for (int i = 0; i < n; i++){
    cin >> blue[i].first >> blue[i].second;
  }
  vector<bool> alive(n, 1);

  
  sort(red.begin(), red.end());
  sort(blue.begin(), blue.end());

  mf_graph<ll> graph(2*n+2);
  for (ll i = 0; i < n; i++){
    for (ll j = 0; j < n; j++){
      if (red[i].first < blue[i].first && red[i].second < blue[j].second){
        graph.add_edge(i, n + j, 1);
        graph.add_edge(n + j, i, 1);
      }
    }
  }
  for (ll i = 0; i < n; i++){
    graph.add_edge(2*n, i, 1);
    graph.add_edge(n + i, 2*n + 1, 1);
  }
  ll ans = graph.flow(2*n, 2*n+1);
  cout << ans << endl;


  return 0;
}


Compiler output:
a.cc:2:10: fatal error: atcoder/maxflow: No such file or directory
    2 | #include <atcoder/maxflow>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

import system, macros, algorithm, tables, sets, lists, intsets, critbits, sequtils, strutils, math, future, strutils, bitops, strformat, browsers

proc scanf(formatstr: cstring){.header:"<stdio.h>",importc:"scanf",varargs.}
proc GetInt():int = scanf("%d\n",addr result)
proc GetU32():uint32 = scanf("%d\n",addr result)
proc GetChar():char = scanf("%c\n",addr result)

var
  n = stdin.readLine.parseInt
  red   :  array[0..200,seq[int]]
  blue  :  array[0..200,seq[int]]
  vec   :  seq[(int,int)]
  x     :  int
  y     :  int
  ans   :  int

for i in 1..n :
  (x,y) = stdin.readLine.split.map(parseInt)
  red[x].add(y)

for i in 1..n :
  (x,y) = stdin.readLine.split.map(parseInt)
  blue[x].add(y)

for i in 0..200 :
  for e in red[i] : vec.add((e,i))
  for e in blue[i] :
    var
      miny = 1000
      arg  = -1
    for idx,v in vec:
      if v[0] < miny:
        miny = v[0]
        arg = idx
    if arg == -1: continue
    swap(vec[arg],vec[vec.len-1])
    vec.delete(vec.len-1)
    ans = ans + 1

echo ans


Compiler output:
a.cc:10:18: error: too many decimal points in number
   10 |   red   :  array[0..200,seq[int]]
      |                  ^~~~~~
a.cc:11:18: error: too many decimal points in number
   11 |   blue  :  array[0..200,seq[int]]
      |                  ^~~~~~
a.cc:17:10: error: too many decimal points in number
   17 | for i in 1..n :
      |          ^~~~
a.cc:21:10: error: too many decimal points in number
   21 | for i in 1..n :
      |          ^~~~
a.cc:25:10: error: too many decimal points in number
   25 | for i in 0..200 :
      |          ^~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import system, macros, algorithm, tables, sets, lists, intsets, critbits, sequtils, strutils, math, future, strutils, bitops, strformat, browsers
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'proc' does not name a type
    4 | proc GetInt():int = scanf("%d\n",addr result)
      | ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
  ll n;
  cin>>n;
  vector<pair<ll,ll>> r(n),b(n);
  for(ll i=0;i<n;i++)
    cin>>r[i].first>>r[i].second;;
  for(ll i=0;i<n;i++)
    cin>>b[i].first>>b[i].second;
  sort(r.begin(),r.end());
  sort(b.begin(),b.end());
  multi_set<ll> pts;
  ll ans =0
  ll i,j;
  for(i=0,j=0;i<n && j<n;){
    if(r[i]<b[j])
    	{pts.insert(r[i]);i++}
    else if(pts.lower_bound(b[j].second) != pts.begin())
    {ans++;pts.erase(--(pts.lower_bound(b[j].second)));j++;}
    else {j++;}
  }
  while(j<n){
  	if(pts.lower_bound(b[j].second) != pts.begin())
    {ans++;pts.erase(--(pts.lower_bound(b[j].second)));j++;}
    else {j++;}
  }
  cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'multi_set' was not declared in this scope
   14 |   multi_set<ll> pts;
      |   ^~~~~~~~~
a.cc:14:15: error: expected primary-expression before '>' token
   14 |   multi_set<ll> pts;
      |               ^
a.cc:14:17: error: 'pts' was not declared in this scope; did you mean 'puts'?
   14 |   multi_set<ll> pts;
      |                 ^~~
      |                 puts
a.cc:16:3: error: expected ',' or ';' before 'll'
   16 |   ll i,j;
      |   ^~
a.cc:17:7: error: 'i' was not declared in this scope
   17 |   for(i=0,j=0;i<n && j<n;){
      |       ^
a.cc:17:11: error: 'j' was not declared in this scope
   17 |   for(i=0,j=0;i<n && j<n;){
      |           ^
a.cc:24:9: error: 'j' was not declared in this scope
   24 |   while(j<n){
      |         ^
Language: C

#include<stdio.h>
int r[100],u[100],b[100],c[100],y[100],k,l,n,f,z;
void quicksort(int a[],int s,int t){
  if(s<t){
    int i=s,j=t,p=b[a[(s+t)/2]];
    while(1){
      while(b[a[i]]<p)i++;
      while(p<b[a[j]])j--;
      if(i>=j)break;
      a[i]^=a[j]^=a[i]^=a[j];
      i++;j--;
    }
    quicksort(a,g,s,i-1);quicksort(a,g,j+1,t);
  }
}
int main(){
  f=0;
  scanf("%d",&n);
  for(k=0;k<n;k++){y[k]=k;scanf("%d%d",&r[k],&u[k]);}
  for(k=0;k<n;k++)scanf("%d%d",&b[k],&c[k]);
  quicksort(y,0,n-1);
  for(k=0;k<n;k++){z=-1;for(l=0;l<n;l++)if(r[l]<b[y[k]]&&u[l]<c[y[k]]&&(z==-1||u[z]<u[l]))z=l;if(z!=-1){u[z]=1000;f++;}}
  printf("%d",f);
}


Compiler output:
main.c: In function 'quicksort':
main.c:13:17: error: 'g' undeclared (first use in this function)
   13 |     quicksort(a,g,s,i-1);quicksort(a,g,j+1,t);
      |                 ^
main.c:13:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:5: error: too many arguments to function 'quicksort'
   13 |     quicksort(a,g,s,i-1);quicksort(a,g,j+1,t);
      |     ^~~~~~~~~
main.c:3:6: note: declared here
    3 | void quicksort(int a[],int s,int t){
      |      ^~~~~~~~~
main.c:13:26: error: too many arguments to function 'quicksort'
   13 |     quicksort(a,g,s,i-1);quicksort(a,g,j+1,t);
      |                          ^~~~~~~~~
main.c:3:6: note: declared here
    3 | void quicksort(int a[],int s,int t){
      |      ^~~~~~~~~
Language: C++

#include <iostream>
#include <cmath>
#include <iomanip>
#include <algorithm>

#include <vector>
#include <array>
#include <map>
#include <set>
#include <stack>
#include <queue>

#define int64 long long
#define uint64 unsigned long long
using namespace std;


struct poi
{
	int64 xx;
	int64 yy;
	
	bool operator < (const poi &right) const
	{
		return xx == right.xx ? yy < right.yy : xx < right.xx;
	}
};

int main()
{
	int64 nn, xx, yy, rp, bp, ma, tmp, ans = 0;
	cin >> nn;
	bool flag, botti[nn];
	vector<poi> rr(nn), bb(nn);
	for(int64 ii = 0;ii < nn;ii++)
	{
		cin >> xx >> yy;
		rr[ii].xx = xx;
		rr[ii].yy = yy;
		botti[ii] = true;
	}
	for(int64 ii = 0;ii < nn;ii++)
	{
		cin >> xx >> yy;
		bb[ii].xx = xx;
		bb[ii].yy = yy;
	}
	sort(rr.begin(), rr.end());
	sort(bb.begin(), bb.end());
for(int64 ii = 0;ii < nn;ii++)
{
	cout << rr[ii].xx << ' ' << rr[ii].yy << endl;
}
	for(bp = nn-1;bp >= 0;bp--)
	{
		flag = true;
		rp = 0;
		ma = -1;
		while(rr[rp].xx < bb[bp].xx)
		{a
			rp++;
			if(rp == nn)
			{
				flag = false;
				break;
			}
		}
		if(!flag)
		{
			break;
		}
		for(int64 ii = 0;ii < rp;ii++)
		{
			if(botti[ii] && ma <= rr[ii].yy && rr[ii].yy < bb[bp].yy)
			{
				tmp = ii;
				ma = rr[ii].yy;
			}
		}
		if(ma != -1)
		{
			ans++;
			botti[tmp] = false;
		}
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:60:18: error: 'a' was not declared in this scope; did you mean 'ma'?
   60 |                 {a
      |                  ^
      |                  ma
Language: C++

#include <iostream>
#include <cmath>
#include <iomanip>
#include <algorithm>

#include <vector>
#include <array>
#include <map>
#include <set>
#include <stack>
#include <queue>

#define int64 long long
#define uint64 unsigned long long
using namespace std;


struct poi
{
 int64 xx;
 int64 yy;
 
 bool operator < (const poi &right) const
 {
  return xx == right.xx ? yy < right.yy : xx < right.xx;
 }
};

int main()
{
 int64 nn, xx, yy, rp, bp, ma, tmp, ans = 0;
 cin >> nn;
 bool flag, botti[nn];
 vector<poi> rr(nn), bb(nn);
 for(int64 ii = 0;ii < nn;ii++)
 {
  cin >> xx >> yy;
  rr[ii].xx = xx;
  rr[ii].yy = yy;
  botti[ii] = true;
 }
 for(int64 ii = 0;ii < nn;ii++)
 {
  cin >> xx >> yy;
  bb[ii].xx = xx;
  bb[ii].yy = yy;
 }
 sort(rr.begin(), rr.end());
 sort(bb.begin(), bb.end());
for(int64 ii = 0;ii < nn;ii++)
{
 cout << rr[ii].xx << ' ' << rr[ii].yy << endl;
}
 for(bp = 0;bp < nn;bp++)
 {
  flag = true;
  rp = 0;
  ma = -1;
  while(rr[rp].xx < bb[bp].xx)
  {
   rp++;
   if(rp == nn)
   {
    flag = false;
    break;
   }
  }
  if(!flag)
  {
   break;
  }
  for(int64 ii = 0;ii < rp;ii++)
  {
   if(botti[ii] && ma <= rr[ii].yy && rr[ii].yy < bb[bp].yy && /*rr[ii].xx < bb[bp].xx*/)
   {
    tmp = ii;
    ma = rr[ii].yy;
   }
  }
  if(ma != -1)
  {
   ans++;
   botti[tmp] = false;
  }
 }
 cout << ans << endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:74:89: error: expected primary-expression before ')' token
   74 |    if(botti[ii] && ma <= rr[ii].yy && rr[ii].yy < bb[bp].yy && /*rr[ii].xx < bb[bp].xx*/)
      |                                                                                         ^
Language: C++

#include <iostream>
#include <cmath>
#include <iomanip>
#include <algorithm>

#include <vector>
#include <array>
#include <map>
#include <set>
#include <stack>
#include <queue>

#define int64 long long
#define uint64 unsigned long long
using namespace std;


struct poi
{
 int64 xx;
 int64 yy;
 
 bool operator < (const poi &right) const
 {
  return xx == right.xx ? yy < right.yy : xx < right.xx;
 }
};

int main()
{
 int64 nn, xx, yy, rp, bp, ma, tmp, ans = 0;
 cin >> nn;
 bool flag, botti[nn];
 vector<poi> rr(nn), bb(nn);
 for(int64 ii = 0;ii < nn;ii++)
 {
  cin >> xx >> yy;
  rr[ii].xx = xx;
  rr[ii].yy = yy;
  botti[ii] = true;
 }
 for(int64 ii = 0;ii < nn;ii++)
 {
  cin >> xx >> yy;
  bb[ii].xx = xx;
  bb[ii].yy = yy;
 }
 sort(rr.begin(), rr.end());
 sort(bb.begin(), bb.end());
for(int64 ii = 0;ii < nn;ii++)
{
 cout << rr[ii].xx << ' ' << rr[ii].yy << endl;
}
 for(bp = 0;bp < nn;bp++)
 {
  flag = true;
  rp = 0;
  ma = -1;
  while(rr[rp].xx < bb[bp].xx)
  {a
   rp++;
   if(rp == nn)
   {
    flag = false;
    break;
   }
  }
  if(!flag)
  {
   break;
  }
  for(int64 ii = 0;ii < rp;ii++)
  {
   if(botti[ii] && ma <= rr[ii].yy && rr[ii].yy < bb[bp].yy && /**/rr[ii].xx < bb[bp].xx)
   {
    tmp = ii;
    ma = rr[ii].yy;
   }
  }
  if(ma != -1)
  {
   ans++;
   botti[tmp] = false;
  }
 }
 cout << ans << endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:60:4: error: 'a' was not declared in this scope; did you mean 'ma'?
   60 |   {a
      |    ^
      |    ma
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
typedef long long LL;
typedef pair<int , int> P2;
typedef pair<pair<int , int> , int> P3;
typedef pair<pair<int , int> , pair<int , int> > P4;
#define PB(a) push_back(a)
#define MP(a , b) make_pair((a) , (b))
#define M3P(a , b , c) make_pair(make_pair((a) , (b)) , (c))
#define M4P(a , b , c , d) make_pair(make_pair((a) , (b)) , make_pair((c) , (d)))
#define repp(i,a,b) for(int i = (int)(a) ; i < (int)(b) ; ++i)
#define repm(i,a,b) for(int i = (int)(a) ; i > (int)(b) ; --i)

const int MC = 111;
int N;
P2 r[MC],b[MC];
bool c[MC*2];
 
int main(){
	cin >> N;
	repp(i,0,N){
		int x,y;
		cin >> x >> y;
		r[i] = MP(x,y);
	}
	repp(i,0,N){
		int x,y;
		cin >> x >> y;
		b[i] = MP(x,y);
	}
	sort(r,r+N); sort(b,b+N);
	int ans = 0;
	int pr = 0 , pb = 0;
	r[N] = b[N] = MP(1234567,1234567);
	while(pr < N || pb < N){
		if(r[pr].first < b[pb].first){
			c[r[pr].second] = 1;
			++pr;
		} else {
			repm(k,b[pb].second-1,-1){
				if(c[k]){
					c[k] = 0;
					++ans;
					break;
				}
			}
			++pb;
		}
	}
	cout << ans << endl;
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:53:18: error: expected '}' at end of input
   53 |         return 0;
      |                  ^
a.cc:21:11: note: to match this '{'
   21 | int main(){
      |           ^