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

#include<bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef long double K;
typedef pair<int, int> pii;

#define x first
#define y second
#define mp make_pair
#define pb push_back
#define all(a) (a).begin(), (a).end()

const int inf = 2000000000;

main(){
    cin.tie(0);
    ios_base::sync_with_stdio(0);
    int n;
    cin >> n;
    for(int i = 0; i < n; i++){
        int l, r;
        cin >> l >> r;
        ans += r - l + 1;
    }
    cout << ans;
}


Compiler output:
a.cc:17:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   17 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:25:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |         ans += r - l + 1;
      |         ^~~
      |         abs
a.cc:27:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   27 |     cout << ans;
      |             ^~~
      |             abs
Language: C

main(a,b,v,c){gets(v);c=0;for(;scanf("%d %d",&a,&b)+1;)c+=b-a+1;printf("%d\n",c);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,v,c){gets(v);c=0;for(;scanf("%d %d",&a,&b)+1;)c+=b-a+1;printf("%d\n",c);}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'v' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:15: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | main(a,b,v,c){gets(v);c=0;for(;scanf("%d %d",&a,&b)+1;)c+=b-a+1;printf("%d\n",c);}
      |               ^~~~
main.c:1:32: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b,v,c){gets(v);c=0;for(;scanf("%d %d",&a,&b)+1;)c+=b-a+1;printf("%d\n",c);}
      |                                ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b,v,c){gets(v);c=0;for(;scanf("%d %d",&a,&b)+1;)c+=b-a+1;printf("%d\n",c);}
main.c:1:32: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b,v,c){gets(v);c=0;for(;scanf("%d %d",&a,&b)+1;)c+=b-a+1;printf("%d\n",c);}
      |                                ^~~~~
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:65: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(a,b,v,c){gets(v);c=0;for(;scanf("%d %d",&a,&b)+1;)c+=b-a+1;printf("%d\n",c);}
      |                                                                 ^~~~~~
main.c:1:65: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:65: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:65: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

main(a,b,v,c){gets(v);c=0;for(;scanf("%d %d",&a,&b)+1;)c+=b-a+1;printf("%d\n",c);}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b,v,c){gets(v);c=0;for(;scanf("%d %d",&a,&b)+1;)c+=b-a+1;printf("%d\n",c);}
      |     ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
	int N;
	int a, b;
	int ans=0;
	scanf_s("%d", &N);
	for (int i = 0; i <N; i++)
	{
		scanf_s("%d %d", &a, &b);
		ans += b - a+1;
	}
	printf("%d\n", ans);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         scanf_s("%d", &N);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main() {
	int n,l,r,sum = 0;
	scanf("%d",&n);
	for(int i == 0;i < n;i++) {
		scanf("%d %d",&l,&r);
		sum += r - l + 1;
	}
	printf("%d",sum);
	return 0;
}	

Compiler output:
main.c: In function 'main':
main.c:5:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
    5 |         for(int i == 0;i < n;i++) {
      |                   ^~
main.c:5:24: error: 'i' undeclared (first use in this function)
    5 |         for(int i == 0;i < n;i++) {
      |                        ^
main.c:5:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:29: error: expected ')' before ';' token
    5 |         for(int i == 0;i < n;i++) {
      |            ~                ^
      |                             )
Language: C++


#include <iostream>
#include <bits/stdc++.h>
#define ll long long int 
#define MOD 1e9 + 7 
#define INF 1<<30
using namespace std ;


int main() {
        ios::sync_with_stdio(false);
        int n ;
        cin >> n;
        long sum = 0 ;
        long a , b ;
        for(int i = 0 ; i < n; i++) {
                cin >> a >> b ;
                sum += ( b - a + 1 ) ;
        }
        cout << sum << endl ;

}
~                                                                      
~          

Compiler output:
a.cc:24:1: error: expected class-name before '~' token
   24 | ~
      | ^
Language: C++

// ConsoleApplication1.cpp: 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <map>
#include <set>
#include <cmath>
#include <queue>
#include <stack>
#include <cstdio>
#include <string>
#include <vector>
#include <cstdlib>
#include <cstring>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <functional>
using namespace std;
#define MX 200



int main()
{
	int a, b, c;
	cin >> a;
	int ans = a;
	for (int i = 0; i < a; i++) {
		cin >> b >> c;
		ans += (c - b);
	}
	printf("%d", ans);
}


Compiler output:
a.cc:3:10: fatal error: stdafx.h: No such file or directory
    3 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
int main() {
	int n, l, r;
	int audience = 0;
	scanf("%d", &n);

	for (int i = 0; i < n; i++)
	{
		scanf("%d%d", &l, &r);
		audience += r - l + 1;
	}
	
	ptrintf("%d", audience);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 'ptrintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   13 |         ptrintf("%d", audience);
      |         ^~~~~~~
      |         printf
Language: C

#inclide<stdio.h>
int N;
int l, r;
int i, sum;

int main(void){
  scanf("%d", &N);
  sum = 0;
  for(i = 0; i < N; i++){
    scanf("%d %d", &l, &r);
    sum += (r-l);
  }
  printf(sum+N);
    
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d", &N);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inclide<stdio.h>
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d", &N);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |   printf(sum+N);
      |   ^~~~~~
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:13: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   13 |   printf(sum+N);
      |          ~~~^~
      |             |
      |             int
main.c:13:13: note: expected 'const char *' but argument is of type 'int'
Language: C++

  1 
  2 #include <iostream>
  3 #include <bits/stdc++.h>
  4 #define ll long long int 
  5 #define MOD 1e9 + 7 
  6 #define INF 1<<30
  7 using namespace std ;
  8 
  9 
 10 int main() {
 11         ios::sync_with_stdio(false);
 12         int n ;
 13         cin >> n;
 14         long sum = 0 ;  
 15         long a , b ;  
 16         for(int i = 0 ; i < n; i++) {
 17                 cin >> a >> b ;
 18                 sum += ( b - a + 1 ) ;  
 19         }
 20         cout << sum << endl ;  
 21 
 22 }
~                                                                      
~                                                                      
~       

Compiler output:
a.cc:2:5: error: stray '#' in program
    2 |   2 #include <iostream>
      |     ^
a.cc:3:5: error: stray '#' in program
    3 |   3 #include <bits/stdc++.h>
      |     ^
a.cc:4:5: error: stray '#' in program
    4 |   4 #define ll long long int
      |     ^
a.cc:5:5: error: stray '#' in program
    5 |   5 #define MOD 1e9 + 7
      |     ^
a.cc:6:5: error: stray '#' in program
    6 |   6 #define INF 1<<30
      |     ^
a.cc:1:3: error: expected unqualified-id before numeric constant
    1 |   1
      |   ^
a.cc:8:3: error: expected unqualified-id before numeric constant
    8 |   8
      |   ^
a.cc:24:1: error: expected class-name before '~' token
   24 | ~
      | ^
Language: C++

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

int n;

int main()
{
    cin>>n;
    for (i=0;i<n;i++) 
    {
        cin>>l>>r;
        ans=ans+r-l+1;
        }
    cout<<;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'i' was not declared in this scope
   13 |     for (i=0;i<n;i++)
      |          ^
a.cc:15:14: error: 'l' was not declared in this scope
   15 |         cin>>l>>r;
      |              ^
a.cc:15:17: error: 'r' was not declared in this scope
   15 |         cin>>l>>r;
      |                 ^
a.cc:16:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |         ans=ans+r-l+1;
      |         ^~~
      |         abs
a.cc:18:11: error: expected primary-expression before ';' token
   18 |     cout<<;
      |           ^
Language: C++

#include <iostream>
using namespace std;
 
int main(void){
    int N;
    int il;
    int rl;
    int all;
    cin >> N;
    for(int i = 0; i < N; i += 1){
    	cin >> il >> r;
    	all += rl - il + 1;
    }
    cout << all << endl;
	return 0;
}

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

#include <iostream>

using namespace std

int main() {
    int N;
    cin >> N;
    int sum = 0;
    int l, r;

    for (int i = 0; i < N; i++) {
        cin >> l >> r;

        sum += (r - l) + 1;
    }

    cout << sum << endl;

    return 0;
}

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main() {
      | ~~~
Language: C++

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

int main() {
  int n;
  int ans = 0
  cin >> n;
  
  for (int i = 0; i < n; i++) {
    int a, b;
    cin >> a >> b;
    ans += b - a + 1;
  }
  
  cout << ans << endl;
}

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;
#define int1(a) scanf("%d",&a)
#define int2(a,b) scanf("%d %d",&a,&b)
#define int3(a,b,c) scanf("%d %d %d",&a,&b,&c)
#define int4(a,b,c,d) scanf("%d %d %d %d",&a,&b,&c,&d)
#define lint1(a) scanf("%lld",&a)
#define lint2(a,b) scanf("%lld %lld",&a,&b)
#define lint3(a,b,c) scanf("%lld %lld %lld",&a,&b,&c)
#define lint4(a,b,c,d) scanf("%lld %lld %lld %lld",&a,&b,&c,&d)
#define lli long long int
#define pint(x) printf("%d",x)
#define ps printf(" "); 
#define plint(x) printf("%lld",x)
//#define sort(a,n) qsort(a,n,sizeof(int),cmpfunc)
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define bg begin()
#define ed end()
#define Set(a, s) memset(a, s, sizeof (a))
#define mod 1000000007
#define tmod(k) if ((k) >= mod) k %= mod;
#define endl '\n'
#define nl printf("\n");
#define fors(i,n) for(int i=0; i<n; i++)
#define fore(i,n) for(int i=n-1; i>=0; i--)
#define forv(i,a,n) for(int i=a; i<n; i++)
#define fora(i,ele) for(auto i: ele)
#define trace1(x)                cerr<<#x<<": "<<x<<endl
#define trace2(x, y)             cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl
#define trace3(x, y, z)          cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl
typedef string st;
typedef vector<int> vi;
typedef vector<st> vs;
typedef pair<int,int> pii;
template< class T > T gcd(T a, T b) { return (b != 0 ? gcd<T>(b, a%b) : a); }
template< class T > T lcm(T a, T b) { return (a / gcd<T>(a, b) * b); }
void ASCII_Chart(){int i,j,k;printf("ASCII Chart:(30-129)\n");forv(i,30,50){fors(j,5){k=i+j*20;printf("%3d---> '%c'   ",k,k);}printf("\n");}}
const int INF = 0x3f3f3f3f;
float roundoff(float val, float p){ return floor(val*pow(10.0,p)+0.5)/pow(10.0,p);}

//int dx[]={1,1,0,-1,-1,-1,0,1};int dy[]={0,1,1,1,0,-1,-1,-1};
//int dx[]={1,-1,0,0}; int dy[]={0,0,1,-1};
class node{
public:
	int id;
	int prio;
	int prd;
};

class compare{
public:
	bool operator()(node &n1, node &n2){
		if(n1.prio>n2.prio)//ascending
			return true;
		else if(n1.prio==n2.prio){
			return n1.id>n2.id;
		}
		return false;
	}
};
//priority_queue<node, vector<node>, compare> pq;

int main(void) {
    ios_base::sync_with_stdio(true);
    cin.tie(NULL);
    cout.tie(NULL);
    /*#ifdef ONLINE_JUDGE
    freopen("input.txt","r",stdin);
    freopen("output.txt","w",stdout);
    #else
    // online submission
    #endif*/
    int n;
    int1(n);
    int sum=0;
    fors(i,n){
        int l,r; int1(l,r);
        sum += r-l+1;
    }
    pint(sum);
    
    return 0;
}



Compiler output:
a.cc:80:26: error: macro "int1" passed 2 arguments, but takes just 1
   80 |         int l,r; int1(l,r);
      |                          ^
a.cc:4:9: note: macro "int1" defined here
    4 | #define int1(a) scanf("%d",&a)
      |         ^~~~
a.cc: In function 'int main()':
a.cc:80:18: error: 'int1' was not declared in this scope
   80 |         int l,r; int1(l,r);
      |                  ^~~~
Language: C++

#include <iostream>

using namespace std

    int
    main() {
    int N;
    cin >> N;
    int sum = 0;
    int l, r;

    for (int i = 0; i < N; i++) {
        cin >> l >> r;

        sum += (r - l) + 1;
    }

    cout << sum << endl;

    return 0;
}

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 |     int
      |     ~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<cassert>
#include<vector>
#include<fstream>
#include<string>
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<queue>
#include<map>
 
using namespace std;
#define REP(m,n) for(int i=m;i<n;++i)
#define REPj(m,n) for(int j=m;j<n;++j)
#define INF 10000000000000000
#define MOD 1000000007
#define ll long long
#define mp make_pair
 
int main() {
	int n;
	cin >> n;
	int ans = 0;
	REP(0, n) {
		int a, b;
		cin >> a >> b;
		ans += b - a + 1;
	}
	cout << ans << endl;
}

Compiler output:
a.cc:12:1: error: extended character   is not valid in an identifier
   12 |  
      | ^
a.cc:20:1: error: extended character   is not valid in an identifier
   20 |  
      | ^
a.cc:12:1: error: '\U000000a0' does not name a type
   12 |  
      | ^
a.cc:20:1: error: '\U000000a0' does not name a type
   20 |  
      | ^
Language: C++

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

#define f first
#define s second
#define p pair<int,int>
#define P pair<ll,ll>
#define pb push_back
#define ll long long
#define db double
#define zero(a) memset(a,0,sizeof(a))
#define inff(a,n) fill(a,a+n+1,inf)
#define all(a) a.begin(),a.end()
#define sz(a) int((a).size())
#define read(x) scanf("%lld",&x)
#define read2(x,y) scanf("%lld%lld",&x,&y)
#define write(x) printf("%lld\n",x)
#define lson k*2,l,mid
#define rson k*2+1,mid+1,r

const int maxn=1e5+5;
const ll inf=1e16;

ll n,m,k,q,a[maxn],b[maxn],ok,flag,sum,ans1,ans2,ans;
string s,t,s1,s2;

int main()
{
    cin>>n;
    for(int i=0;i<n;i++)
    {
        read2(l,r);
        for(int j=l;j<=r;j++)a[i]=1;
    }
    for(int i=0;i<=100000;i++)if(a[i])ans++;
    write(ans);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:15: error: 'l' was not declared in this scope
   32 |         read2(l,r);
      |               ^
a.cc:16:38: note: in definition of macro 'read2'
   16 | #define read2(x,y) scanf("%lld%lld",&x,&y)
      |                                      ^
a.cc:32:17: error: 'r' was not declared in this scope
   32 |         read2(l,r);
      |                 ^
a.cc:16:41: note: in definition of macro 'read2'
   16 | #define read2(x,y) scanf("%lld%lld",&x,&y)
      |                                         ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;

#define _abs(x)((x) < 0 ? (x) * -1 : (x))
#define _max(x, y)(max(0, max((x), (y))))
#define _min(x, y)(max(0, min((x), (y))))

static const ll MOD = 1e9 + 7;

int main()
{
    //freopen("in.txt", "r", stdin);
    //freopen("out.txt", "w", stdout);
    //freopen("debug.txt", "w", stderr);

    cin.tie(0);
    ios::sync_with_stdio(false);

    int n;

    long l, r;
    long ans = 0;

    while (n--) {
        cin >> l >> r;

        ans += r - l + 1
    }

    cout << ans << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:25: error: expected ';' before '}' token
   31 |         ans += r - l + 1
      |                         ^
      |                         ;
   32 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
    int n;
    cin >> n;
    int ans = 0;
    REP(i, n) {
        int l, r;
        cin >> l > r;
        ans += r - l + 1;
    }
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'i' was not declared in this scope
    9 |     REP(i, n) {
      |         ^
a.cc:9:5: error: 'REP' was not declared in this scope
    9 |     REP(i, n) {
      |     ^~~
Language: C++

#include<iostream>
#include<algorithm>
#include<cassert>
#include<vector>
#include<fstream>
#include<string>
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<time.h>
#include<queue>
#include<map>

using namespace std;
#define REP(m,n) for(int i=m;i<n;++i)
#define REPj(m,n) for(int j=m;j<n;++j)
#define INF 10000000000000000
#define MOD 1000000007
#define ll long long
#define mp make_pair

int main() {
	int n;
	cin >> n;
	int ans = 0;
	REP(0, n) {
		int a, b;
		cin >> a >> b;
		ans += b - a + 1;
	}
	cout << ans << endl;
}

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

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

#define rep(i,a,b)                for(ll i=a;i<b;i++)
#define re(i,b)                for(ll i=0;i<b;i++)
#define repr(i,n)                for(ll i=n-1;i>=0;i--)
#define ll long long
#define ld long double
#define llu long long unsigned
#define pll std::pair<ll, ll> 
#define ppll std::pair<ll, pll>
#define vll std::vector<ll> 
#define vpll std::vector<pll> 
#define vppll std::vector<ppll> 
#define mll std::unordered_map<ll, ll> 
#define mpll std::unordered_map<pll, ll>
#define mppll std::unordered_map<ppll, ll>
#define sll std::set<ll>
#define ff first
#define ss second
#define msll std::multiset<ll>
#define all(c) c.begin(), c.end()
#define allr(c) c.rbegin(), c.rend()
#define srt(x) sort(all(x))
#define rsrt(x) sort(allr(x))
#define eb emplace_back
#define pb push_back
#define s(yy) ll yy;cin>>yy
#define mod 1000000007
#define maxlong 1e18+5
#define len length()
#define sz size()


/*#################################################### 
#                                                    #
#                     @author                        #
#                  Parth Lathiya                     #
#      https://www.cse.iitb.ac.in/~parthiitb/        #
#                                                    #
####################################################*/

ll n,a,b,c;
ll dpp[4123];

ll dp(ll k)
{
    

    if(k<0)
        return -10000000000000;
    if(dpp[k]!=-1)
        return dpp[k];
    if(k==0)
        return dpp[k]=0;
    return dpp[k]=1+max(dp(k-a),max(dp(k-b),dp(k-c)));
    // return 1+   
}

int main()
{

    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    #ifdef PARTH_LATHIYA_HOME

        freopen("A_in.txt","r",stdin);
    
        ll ttt,bkkk;
        cin>>ttt;
        bkkk=ttt;
        while(ttt--) {
            cout<<"Testcase - "<<bkkk-ttt<<"\n";
    #endif

//--------------------------------------------------------------------------------------

    s(t);
    ll ans=0;
    while(t--)
    {
    	cin>>l>>r;
    	ans+=(r-l+1);
    }
    cout<<ans;


//--------------------------------------------------------------------------------------
    
    #ifdef PARTH_LATHIYA_HOME
        cout<<"\n"; }
    #endif

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:83:14: error: 'l' was not declared in this scope
   83 |         cin>>l>>r;
      |              ^
a.cc:83:17: error: 'r' was not declared in this scope
   83 |         cin>>l>>r;
      |                 ^
Language: C++

#include<bits/stdc++.h>
#define r(i,n) for(int i=;i<n;i++)
#define f first
#define s second
#define mk make_pair
using namespace std;
typedef pair<int,int>P;
int ans,a,b,n;
int main(){
  int n;
  cin>>n;
  r(i,n){
    cin>>a>>b;
    ans+=abs(a-b);
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:26: error: expected primary-expression before ';' token
    2 | #define r(i,n) for(int i=;i<n;i++)
      |                          ^
a.cc:12:3: note: in expansion of macro 'r'
   12 |   r(i,n){
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
const int MOD = (int)1e9 + 7;
const int INF = (int)1e9 * 2;

int main() {
	int n;
	cin >> n;
	vector<int> a(n);
	rep(i, n) cin >> a[i];
	sort(a.begin(), a.end());
	int count = 1;
	int out = 0;
	rep(i, n - 1){
		if(a[i] == a[i + 1]) count++;
		else{
			if(count % 2 == 1) out++;
			count = 1;
		}
	}
	cout << out << endl;
}
v

Compiler output:
a.cc:26:1: error: 'v' does not name a type
   26 | v
      | ^
Language: C++

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

int main(){
int n,j;
  cin >> n;
int a[100000];
  for(int i=0;i<n;i++) cin >> a[i];
sort(a,a+n);
  int res=0,f=0;
  while(j<n){
   int cc=a[i];
    while(j<n && a[j]==cc){
    j++;
    f++;  
    }
   res+=f%2;
  }
  cout << res << endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'i' was not declared in this scope
   12 |    int cc=a[i];
      |             ^
Language: C++

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

int main(){
int n;
  cin >> n;
int a[100000];
  for(int i=0;i<n;i++) cin >> a[i];
sort(a,a+n);
  int res=0,f=0;
  while(i<n){
   int cc=a[i];
    while(i<n && a[i]==cc){
    i++;
    f++;  
    }
   res+=f%2;
  }
  cout << res << endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'i' was not declared in this scope
   11 |   while(i<n){
      |         ^
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#define pi 3.14159265358979323846264338327950L
using namespace std;

int main() {
  int64_t N, ans=0;
  cin >> N;
  vector<int64_t> A(N);
  vector<int64_t> B(1000000000);
  for (int64_t i=0; i<N; i++) {
    cin >> A[i];
    B[A[i]-1]++;
  }
  for (int64_t i=0; i<1000000000; i++) {
    if (B[i]%2==1) {
      ans++
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:12: error: expected ';' before '}' token
   31 |       ans++
      |            ^
      |            ;
   32 |     }
      |     ~
Language: C

#include <cstdio> 
#include <algorithm> 
using namespace std; 
int N,ptr,res;
int A[100000]; 
int main (){
  scanf("%d",&N);
  for(int i=0;i<N;i++){
    scanf("%d",&A[i]); 
    sort(A,A+N);
  }
  while(ptr<N){
    int cc=A[ptr],f=0; 
    while(ptr<N&&A[ptr]==cc){
      f++,ptr++; 
      res+=f%2;
    }
  }
  printf("%d\n",res);
}

Compiler output:
main.c:1:10: fatal error: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.
Language: C

#include <cstdio > 
#include <algorithm > 
using namespace std; 
int N,ptr,res;
int A[100000]; 
int main (){
  scanf("%d",&N);
  for(int i=0;i<N;i++){
    scanf("%d",&A[i]); 
    sort(A,A+N);
  }
  while(ptr<N){
    int cc=A[ptr],f=0; 
    while(ptr<N&&A[ptr]==cc){
      f++,ptr++; 
      res+=f%2;
    }
  }
  printf("%d\n",res);
}

Compiler output:
main.c:1:10: fatal error: cstdio : No such file or directory
    1 | #include <cstdio >
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include <cstdio > 
#include <algorithm > 
using namespace std; 
int N,ptr,res;
int A[100000]; 
int main (){
  scanf("%d",&N);
  for(int i=0;i<N;i++){
    scanf("%d",&A[i]); 
    sort(A,A+N);
  }
  while(ptr<N){
    int cc=A[ptr],f=0; 
    while(ptr<N&&A[ptr]==cc){
      f++,ptr++; 
      res+=f%2;
    }
  }
  printf("%d\n",res);
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;cin>>N;
  map<long long,long long>mp;
  for(int X=0;X<N;X++){
    long long A;cin>>A;
    map[A]++;
  }
  int M=0;
  for(auto p:mp){
    auto value=p.second;
    if(value%2==1){
      M++;
    }
  }
  cout<<M<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: conflicting declaration 'auto A'
    9 |     map[A]++;
      |         ^
a.cc:8:15: note: previous declaration as 'long long int A'
    8 |     long long A;cin>>A;
      |               ^
a.cc:9:11: error: expected initializer before '++' token
    9 |     map[A]++;
      |           ^~
Language: C++

#include <iostream>
#include <set>
using namespace std;
int main(){
    int N;
    cin >> N;
    unordered_set<int> m;
    for(int i=0; i<N; i++) {
        cin >> t;
        if(m.find(t) == m.end()) {
            m.insert(t);
        } else {
            m.erase(t);
        }
    }
    cout << distance(m.begin(),m.end()) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'unordered_set' was not declared in this scope
    7 |     unordered_set<int> m;
      |     ^~~~~~~~~~~~~
a.cc:3:1: note: 'std::unordered_set' is defined in header '<unordered_set>'; this is probably fixable by adding '#include <unordered_set>'
    2 | #include <set>
  +++ |+#include <unordered_set>
    3 | using namespace std;
a.cc:7:19: error: expected primary-expression before 'int'
    7 |     unordered_set<int> m;
      |                   ^~~
a.cc:9:16: error: 't' was not declared in this scope
    9 |         cin >> t;
      |                ^
a.cc:10:12: error: 'm' was not declared in this scope
   10 |         if(m.find(t) == m.end()) {
      |            ^
a.cc:16:22: error: 'm' was not declared in this scope
   16 |     cout << distance(m.begin(),m.end()) << endl;
      |                      ^
Language: C++

#define _GLIBCXX_DEBUG
#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define rep2(i,s,n) for(int i=s;i< (int)n; i++)
#define ll long long 
#define all(v) v.begin(),v.end()
using namespace std;
int main(){
  int n; cin >>n;
  vector<ll> a(n);
  rep(i,n) cin >>a[i];
  map<ll,ll>  mp;
  rep(i,n) mp[a[i]]++;
  ll ans=0;
  for(auto x :mp){
    if(mp.second%2==1) ans++;
  }
  cout <<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:11: error: 'class std::__debug::map<long long int, long long int>' has no member named 'second'
   28 |     if(mp.second%2==1) ans++;
      |           ^~~~~~
Language: C

#include<iostream>
#include<algorithm>
#include<cstring>

using namespace std ;

int main()
{
    int n;
    cin>>n;
    int a[n],tem,count[n],k=0,ans=0;

    memset(count,1,sizeof(count));

    for(int i=0;i<n;i++)
    {
        cin>>a[i];
    }
    sort(a,a+n);

    for(int i=0;i<n;i++)
    {
        if(a[i]==a[i+1])
        {
            count[k]++;
        }
        else
            k++;
    }

    for(int j=0;j<k;j++)
    {
        if(count[j]%2==1)
        {
            ans++;
        }
    }
    cout<<ans<<endl ;
    return 0;
}


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  int N;
  ll A;
  cin>>N;
  
  map<ll,ll>v;
  for(int i=0;i<N;i++){
    cin>>A;
    v[A]++
  }
  ll ans=0;
  for(auto x:v){
    if(x.second%2!=0)ans++;
  }
  cout<<ans<<endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected ';' before '}' token
   13 |     v[A]++
      |           ^
      |           ;
   14 |   }
      |   ~
Language: C++

#include <iostream>
#include <unordered_map>

using namespace std;

int main() {
  int N;
  cin >> N;
  unordered_map<int, bool> m;
  while (cin >> N) {
    m[N] = !m[N];
  }
  cout << count_if(begin(m), end(m), [](auto &p) { return p.second; }) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'count_if' was not declared in this scope
   13 |   cout << count_if(begin(m), end(m), [](auto &p) { return p.second; }) << endl;
      |           ^~~~~~~~
Language: C++

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

int main(){
    int n;
    cin >> n;
    vector<ll> a(n);
    for(int i = 0; i < n; i++){
        cin >> a[i];
    }
    int ans = 0;
    sort(a.begin(), a.end());
    int r = 0;
    for(int l = 0; l < n; l++){
        int cnt = 0;
        while(r < n && a[l] == a[r]){
            r++;
            cnt++;
        }
        if(cnt%2 == 1) ans++;
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'll' was not declared in this scope
    7 |     vector<ll> a(n);
      |            ^~
a.cc:7:14: error: template argument 1 is invalid
    7 |     vector<ll> a(n);
      |              ^
a.cc:7:14: error: template argument 2 is invalid
a.cc:9:17: error: invalid types 'int[int]' for array subscript
    9 |         cin >> a[i];
      |                 ^
a.cc:12:12: error: request for member 'begin' in 'a', which is of non-class type 'int'
   12 |     sort(a.begin(), a.end());
      |            ^~~~~
a.cc:12:23: error: request for member 'end' in 'a', which is of non-class type 'int'
   12 |     sort(a.begin(), a.end());
      |                       ^~~
a.cc:16:25: error: invalid types 'int[int]' for array subscript
   16 |         while(r < n && a[l] == a[r]){
      |                         ^
a.cc:16:33: error: invalid types 'int[int]' for array subscript
   16 |         while(r < n && a[l] == a[r]){
      |                                 ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
const long long MAX=1e9 + 5;


int main(void){
  int N;
  cin >> N;
  
  vector<long long> a(N);
  for(int i=0; i<N; i++) cin >> a[i];
  sort(a.begin(), a.end()); 

  int count = 0;
  for(int i=0; i<N; i++){
     int k = i;
     int odd = 1;
     while(a[k] == a[k+1]){
	odd++;
	k++;
      	i=k;
     }//while
     if(odd%2 ==1) count++;
  }//for

  cout << count << "\n";
}//main


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   13 |   sort(a.begin(), a.end());
      |   ^~~~
      |   short
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
const ll mod=1000000007;
const int MAX_N = 1000;         // n の最大値
 
// nCk を取得
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-i);
}
return res;}
 
int main() {
ll n;
cin>>n;
ll a[n]={};
set<ll> b;
for(ll i=0; i<n; i++){
cin>>a[i];
if(b.count(a[i])){
b.erase(a[i]);}
else{
b.insert(a[i]);}
cout<<b.size()<<endl;}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:23: error: expected '}' at end of input
   30 | cout<<b.size()<<endl;}
      |                       ^
a.cc:19:12: note: to match this '{'
   19 | int main() {
      |            ^
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);
  }
  sort(A.begin(),A.end());
  
   for(int i=N;i>=0;i--){
   if(A.at(i)==A.at(i-1))
     {A.pop_back();
      A.pop_back();}
  }
     cout <<A.length()<<endl;
 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: 'class std::vector<int>' has no member named 'length'
   18 |      cout <<A.length()<<endl;
      |               ^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
    int N;
    cin >> N;
    set<int> box;
    for(int i = 0; i < N; i++){
        int a;
        cin >> a;
        if (box.count(a)){
            box.erase(a);
        } else{
            box.insert(a);
        }
    }
    cout << box.size() << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'set' was not declared in this scope
    6 |     set<int> box;
      |     ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    1 | #include <iostream>
  +++ |+#include <set>
    2 | using namespace std;
a.cc:6:9: error: expected primary-expression before 'int'
    6 |     set<int> box;
      |         ^~~
a.cc:10:13: error: 'box' was not declared in this scope
   10 |         if (box.count(a)){
      |             ^~~
a.cc:16:13: error: 'box' was not declared in this scope
   16 |     cout << box.size() << endl;
      |             ^~~
Language: C++

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

int main() {
    int N;
    int res = 0;
    cin >> N;
    vector<int> A(N);
    for (int i = 0; i < N; i++) cin >> A.at(i);

    map<int, int> mp;
    for (int i = 0; i < N; i++) mp[A.at(i)]++;
    for (int x : mp) {
        if (x.second % 2 == 1) res++;
    }
    cout << res << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: cannot convert 'std::pair<const int, int>' to 'int' in initialization
   13 |     for (int x : mp) {
      |                  ^~
a.cc:14:15: error: request for member 'second' in 'x', which is of non-class type 'int'
   14 |         if (x.second % 2 == 1) res++;
      |               ^~~~~~
Language: C++

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

int N , i , res ;
int A [100000];

int main (){
  scanf ( " % d " ,& N );
  for ( int i =0; i < N ; i ++) scanf ( " % d " ,& A [ i ]);
  sort (A , A + N );
  
  while ( i < N ){
    int cc = A [ i ] , f = 0;
    while ( i < N && A [ i ]== cc ) f++ , i++;
    res += f %2;
  }
  
  printf ( " % d \ n " , res );
}

Compiler output:
a.cc:1:11: fatal error:  cstdio : No such file or directory
    1 | # include < cstdio >
      |           ^~~~~~~~~~
compilation terminated.
Language: C++

from collections import *
N=int(input())
A=[]
for i in range(0,N):
    A.append(int(input()))
M=Counter(A)
ans=0
for i in M:
    if(M[i]%2):
        ans+=1
print(str(ans))


Compiler output:
a.cc:1:1: error: 'from' does not name a type
    1 | from collections import *
      | ^~~~
Language: C++

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

int main() {
  int n; cin >> n;
  int a[] = a[n];
  for(int i=0; i<n; i++){
    cin >> a[i];
  }
  sort(a.begin(),a.end());
  int ans = 1;
  int cnt = 1;
  for(int i=1; i<n; i++){
    if(a[i] != a[i-1]){
      ans++;
      cnt = 1;
    }
    else{
      if(cnt % 2 == 1){
        ans--;
        cnt++;
      }
      else{
        ans++;
        cnt++;
      }
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: initializer fails to determine size of 'a'
    6 |   int a[] = a[n];
      |             ~~~^
a.cc:6:16: error: array must be initialized with a brace-enclosed initializer
a.cc:10:10: error: request for member 'begin' in 'a', which is of non-class type 'int [1]'
   10 |   sort(a.begin(),a.end());
      |          ^~~~~
a.cc:10:20: error: request for member 'end' in 'a', which is of non-class type 'int [1]'
   10 |   sort(a.begin(),a.end());
      |                    ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    long long n;
    cin >> n;
    vector<long long>a(n);
    for(int i=0;i<n;i++)cin >> a[i];
    int ans=0;
    vector<long long>num(1000000010,0);
    for(int i=0;i<n;i++){
        if(num[a[i]]==0){
            num[a[i]]=1;
            ans++
        }
        else{
            num[a[i]]=0;
            ans--;
        } 
    }
    cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: expected ';' before '}' token
   14 |             ans++
      |                  ^
      |                  ;
   15 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    long long n;
    cin >> n;
    vector<long long>a(n);
    for(int i=0;i<n;i++)cin >> a[i];
    vector<long long>num(1000000010,0);
    for(int i=0;i<n;i++){
        if(num[a[i]]==0])num[a[i]]=1;
        else num[a[i]]=0;
    }
    int ans=0;
    for(int i=0;i<n;i++){
        if(num[a[i]]==1)ans++;
    }
    cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected ')' before ']' token
   11 |         if(num[a[i]]==0])num[a[i]]=1;
      |           ~            ^
      |                        )
a.cc:11:24: error: expected primary-expression before ']' token
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    long long n;
    cin >> n;
    vector<long long>a(n);
    for(int i=0;i<n;i++)cin >> a[i];
    vector<long long>num(1000000010,0);
    for(int i=0;i<n;i++){
        if(num[a[i]==0])num[a[i]]=1;
        else num[a[i]]=0;
    }
    int ans=0;
    for(int i=0;i<n;i++){
        if(num[a[i]]==1)ams++;
    }
    cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: 'ams' was not declared in this scope; did you mean 'ans'?
   16 |         if(num[a[i]]==1)ams++;
      |                         ^~~
      |                         ans
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    long long n;
    cin >> n;
    vector<long long>a(n);
    for(int i=0;i<n;i++)cin >> a[i];
    vector<long long>num(1000000010,0);
    for(int i=0;i<n;i++){
        if(num[a[i]==0])num[a[i]]=1;
        else num[a[i]]=0;
    }
    int ans=0;
    for(int i=0;i<n;i++){
        if(num[a[i]])ams++;
    }
    cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: 'ams' was not declared in this scope; did you mean 'ans'?
   16 |         if(num[a[i]])ams++;
      |                      ^~~
      |                      ans
Language: C++

#include<cstdio>
#include<stack>
using namespace std;
int n;
set<int> s;
int main()
{
	scanf("%d",&n);
	for(int i = 1;i <= n;i++){
		int x;scanf("%d",&x);
		if(s.find(x) != s.end()) s.erase(s.find(x));
		else s.insert(x);
	}
	printf("%d\n",s.size());
	return 0;
}

Compiler output:
a.cc:5:1: error: 'set' does not name a type
    5 | set<int> s;
      | ^~~
a.cc: In function 'int main()':
a.cc:11:20: error: 's' was not declared in this scope
   11 |                 if(s.find(x) != s.end()) s.erase(s.find(x));
      |                    ^
a.cc:14:23: error: 's' was not declared in this scope
   14 |         printf("%d\n",s.size());
      |                       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  set<int>st;
  for(int i=0;i<n;i++)
  {
    int x;
    cin>>x;
    if(st.find(x)!=st.end())
    {
      st.erase(x);
    }
    else st.insert(x);
  }
  cout<<st.size()<<endl
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:24: error: expected ';' before '}' token
   18 |   cout<<st.size()<<endl
      |                        ^
      |                        ;
   19 | }
      | ~
Language: C++

#include<bits/stdc++.h
using namespace std;
int main()
{
  int n;
  cin>>n;
  set<int>st;
  for(int i=0;i<n;i++)
  {
    int x;
    cin>>x;
    if(st.find(x)!=st.end())
    {
      st.erase(x);
    }
    else st.insert(x);
  }
  cout<<st.size()<<endl
}

Compiler output:
a.cc:1:23: error: missing terminating > character
    1 | #include<bits/stdc++.h
      |                       ^
a.cc: In function 'int main()':
a.cc:18:24: error: expected ';' before '}' token
   18 |   cout<<st.size()<<endl
      |                        ^
      |                        ;
   19 | }
      | ~
Language: C++

#include <iostream>
#include <unorderd_map>
using namespace std;
int main(){
  int n; cin >> n;
  unorderd_map<long long int, bool> cnt;
  for(int i=0;i<n;i++){
    long long int a; cin >> a;
    cnt[a]^=true;
  }
  int ans=0;
  for(auto c:cnt) ans+=c.second;
  cout << ans << endl;
}


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

#include <iostream>
#include <map>
using namespace std;
int main(){
  int n; cin >> n;
  unorderd_map<long long int, bool> cnt;
  for(int i=0;i<n;i++){
    long long int a; cin >> a;
    cnt[a]^=true;
  }
  int ans=0;
  for(auto c:cnt) ans+=c.second;
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'unorderd_map' was not declared in this scope
    6 |   unorderd_map<long long int, bool> cnt;
      |   ^~~~~~~~~~~~
a.cc:6:16: error: expected primary-expression before 'long'
    6 |   unorderd_map<long long int, bool> cnt;
      |                ^~~~
a.cc:9:5: error: 'cnt' was not declared in this scope; did you mean 'int'?
    9 |     cnt[a]^=true;
      |     ^~~
      |     int
a.cc:12:14: error: 'cnt' was not declared in this scope; did you mean 'int'?
   12 |   for(auto c:cnt) ans+=c.second;
      |              ^~~
      |              int
Language: C++

#include <iostream>
#include <map>
using namespace std;
int main(){
  int n; cin >> n;
  unoderd_map<long long int, bool> cnt;
  for(int i=0;i<n;i++){
    long long int a; cin >> a;
    cnt[a]^=true;
  }
  int ans=0;
  for(auto c:cnt) ans+=c.second;
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'unoderd_map' was not declared in this scope
    6 |   unoderd_map<long long int, bool> cnt;
      |   ^~~~~~~~~~~
a.cc:6:15: error: expected primary-expression before 'long'
    6 |   unoderd_map<long long int, bool> cnt;
      |               ^~~~
a.cc:9:5: error: 'cnt' was not declared in this scope; did you mean 'int'?
    9 |     cnt[a]^=true;
      |     ^~~
      |     int
a.cc:12:14: error: 'cnt' was not declared in this scope; did you mean 'int'?
   12 |   for(auto c:cnt) ans+=c.second;
      |              ^~~
      |              int
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  int A[N];
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
  
  sort(A, A+N);
  
  int ptr = 0;
  int ans = 0;
  while(ptr < N) {
    
    int n = A[ptr];
    int number = 0;
    while(num == A[ptr]) {
      number++;
      ptr++;
    }
    if (number % 2) 
      ans++;
  }
  cout << ans << endl;



}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: 'num' was not declared in this scope; did you mean 'enum'?
   21 |     while(num == A[ptr]) {
      |           ^~~
      |           enum
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  int A[N];
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
  
  sort(A, A+N);
  
  int ptr = 0;
  int ans = 0;
  while(ptr < N) {
    
    int n = A[ptr];
    int number = 0;
    while(num == A[ptr]) {
      number++
      ptr++;
    }
    if (number % 2) 
      ans++;
  }
  cout << ans << endl;



}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: 'num' was not declared in this scope; did you mean 'enum'?
   21 |     while(num == A[ptr]) {
      |           ^~~
      |           enum
a.cc:22:15: error: expected ';' before 'ptr'
   22 |       number++
      |               ^
      |               ;
   23 |       ptr++;
      |       ~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int N;
  cin>>N;
  map<int,int>M;
  for(int i=0;i<N;i++){
  int a;
    cin>>a;
      if(M.cout(a))
        M.erase(a);
    else
      M[a]=1;
 }int ans=M.size();
  cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'class std::map<int, int>' has no member named 'cout'; did you mean 'count'?
   10 |       if(M.cout(a))
      |            ^~~~
      |            count
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int N;
  cin>>N;
  map<int,int>M;
  for(int i=0;i<N;i++){
  int a;
    cin>>a
      if(M.cout(a))
        M.erase(a);
    else
      M[a]=1;
 }int ans=M.size();
  cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected ';' before 'if'
    9 |     cin>>a
      |           ^
      |           ;
   10 |       if(M.cout(a))
      |       ~~   
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else
      |     ^~~~
Language: C++

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

int i;

int main()
{
    int n, count = 0, ans;
    cin >> n;
    vector<int> a(n);
    for (i = 0; i < n; i++)
    {
        cin >> a[i];
    }

    sort(a.begin(), a.end());

    for (i = 0; i < n; i++)
    {
        int cnst = a[i];
        while (i < n && a[i] == cnst)
        {
            i++, count++;
        }
        ans += count % 2
    }

    cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:25: error: expected ';' before '}' token
   25 |         ans += count % 2
      |                         ^
      |                         ;
   26 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) 
#define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++)
#define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--)
#define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--)
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define NIL -1
#define FI first
#define SE second
#define MP make_pair
#define PB push_back
#define SZ(x)  (int)x.size()
#define SP(x)  setprecision((int)x)


using namespace std ;
typedef long long ll;
using Graph = vector<vector<int>>;
typedef vector<int> vint;
typedef vector<vint> vvint;
typedef vector<string> vstr;
typedef pair<int, int> pii;
const int INF = 1e9;
const ll LINF = 1e18;
const double EPS = 1e-9;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
ll gcd(ll a, ll b) {return b ? gcd(b, a % b) : a;} //最大公約数
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;} //最小公倍数

//-------------------------------------------------
// 
void yes(){
  cout <<"Yes"<<endl ;
}
void no(){
  cout <<"No"<<endl ;
}


//-------------------------------------------------
// メモ
/*






*/
//-------------------------------------------------


int main()
{
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n ;
  cin >> n ;
  set<int> S ;
  REP(i,n){
    int a ;
    cin >> a ;
    S.insert(a) ;
  }
  cout << SZ(s) <<endl ;
  
  
  
  
  
  return 0 ;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:67:14: error: 's' was not declared in this scope
   67 |   cout << SZ(s) <<endl ;
      |              ^
a.cc:13:21: note: in definition of macro 'SZ'
   13 | #define SZ(x)  (int)x.size()
      |                     ^