criyle/codenet-compile-errors huggingface dataset:
Language: Java

import javafx.concurrent.Task;

import java.io.*;
import java.util.*;

/**
 * Created by tela on 2017/06/18.
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskD solver = new TaskD();
        solver.solve(in, out);
        out.close();
    }

    static class TaskD {
            public void solve(InputReader in, PrintWriter out) {
                int N = in.nextInt();
                int[] a = new int[N];
                for(int i =0; i<N;i++){
                    a[i] = in.nextInt();
                }

                int[] b = new int[N];
                for(int i =0; i<N;i++){
                    b[i] = in.nextInt();
                }

                int count = 0;
                while(true){
                    boolean cflag = true;
                    for(int i=0; i<N; i++) {
                        if (a[i] != b[i]) {
                            cflag = false;
                        }
                    }
                    if(cflag){
                        out.println(count);
                        break;
                    }

                    int x = 0;
                    for(int i=0;i<N;i++){
                        x=x^a[i];
                    }
                    int flag = -1;
                    for(int i =0; i<N;i++){
                        if(x==b[i]){
                            flag = i;
                        }
                    }
                    if(flag == -1){
                        out.println("-1");
                        break;
                    }

//                    out.println("f "+flag+" a "+a[0]+a[1]+a[2]+" b "+b[0]+b[1]+b[2]);
//                  //change
                    a[flag] = b[flag];
                    count+=1;
                }
            }
    }


    //input
    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }
}

Compiler output:
Main.java:1: error: package javafx.concurrent does not exist
import javafx.concurrent.Task;
                        ^
1 error
Language: C++

#include <bits/stdc++.h>
#define N 100005
using namespace std;
int bb[N],ct,*x[N];
bool cmp(int *a,int *b)
{
	return (*a) < (*b);
}
void pppd(int *a,int sz)
{
	for(int i = 1; i <= sz; i ++) x[i] = &a[i];
	ct = 0;
	sort(x + 1, x + sz + 1, cmp);
	bb[1] = ++ ct;
	for(int i = 2; i <= sz; i ++) bb[i] = *x[i] == *x[i-1] ? bb[i - 1]:++ ct;
	for(int i = 1; i <= sz; i ++) *x[i] = bb[i];
}
 
int n;
int fa[N];
int find(int x)
{
	return fa[x] == x? x:fa[x] = find(fa[x]);
}
void union(int x,int y)
{
	if(find(x) == find(y)) return;
	fa[find(x)] = find(y);
}
 
int a[N],b[N];
int c[N],d[N],m;
int main()
{
	scanf("%d",&n);
	int ta = 0, tb = 0;
	for(int i = 1; i <= n; i ++) scanf("%d", &a[i]), ta ^= a[i];
	for(int i = 1; i <= n; i ++) scanf("%d", &b[i]), tb ^= b[i];
	n ++;
	a[n] = ta;
	b[n] = tb;
	for(int i = 1; i <= n; i ++)
		if(a[i] != b[i])
			c[++ m] = a[i], d[m] = b[i];
	int fl1 = 0, fl2 = 0;
	if(a[n] == b[n]) fl1 = 1;
	for(int i = 1; i <= m; i ++) 
		if(c[i] == a[n]) fl2 = 1;
	sort(a + 1, a + n + 1);
	sort(b + 1, b + n + 1);
	for(int i = 1; i <= n; i ++) 
		if(a[i] != b[i]) 
			return puts("-1"), 0;
	
	int ans = 0;
	if(fl1 == 1 && fl2 == 1) ans --;
	if(fl1 == 0) ans -= 2;
	ans += m;
	
	pppd(c,m);
	pppd(d,m);
	for(int i = 1; i <= m; i ++) fa[i] = i;
	for(int i = 1; i <= m; i ++) union(c[i], d[i]);
	for(int i = 1; i <= ct; i ++) if(find(i) == i) ans ++;
	
	cout << ans << endl;
	return 0;
} 


Compiler output:
a.cc:25:11: error: expected identifier before '(' token
   25 | void union(int x,int y)
      |           ^
a.cc:25:12: error: expected unqualified-id before 'int'
   25 | void union(int x,int y)
      |            ^~~
a.cc:25:12: error: expected ')' before 'int'
   25 | void union(int x,int y)
      |           ~^~~
      |            )
a.cc: In function 'int main()':
a.cc:63:38: error: expected primary-expression before 'union'
   63 |         for(int i = 1; i <= m; i ++) union(c[i], d[i]);
      |                                      ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int N=1e5+10;
multiset<int> A,B;
int n,a[N],b[N],c[N];
int rank(int x){
	int l=0,r=n;
	while (l<r){
		int mid=(l+r)>>1;
		if (c[mid]>=x) r=mid;else l=mid+1; 
	}
	return l;
}
//S[x]表示b中权为x的未匹配的位置 
set<int> S[N],T;
int main()
{
	scanf("%d",&n);
	for (int i=1;i<=n;i++){
		scanf("%d",&a[i]);
		a[0]^=a[i];
	}
	for (int i=0;i<=n;i++)
		A.insert(a[i]),c[i]=a[i];
	for (int i=1;i<=n;i++){
		scanf("%d",&b[i]);
		b[0]^=b[i];
	}
	for (int i=0;i<=n;i++)
		B.insert(b[i]);
	if (A!=B) return puts("-1"),0;
	sort(c,c+n+1);
	for (int i=0;i<=n;i++){
		a[i]=rank(a[i]);
		b[i]=rank(b[i]);
		if (i&&a[i]!=b[i]){
			S[b[i]].insert(i);
			T.insert(i);
		}
	}
	int ans=0;
	while (!T.empty()){
		while (!S[a[0]].empty()){
			int p=*S[a[0]].begin();
			S[a[0]].erase(p);
			T.erase(p);
			swap(a[0],a[p]);
			ans++;
		}
		if (T.empty()) break;
		int p=*T.begin();
		swap(a[0],a[p]);
		ans++;
	}
	/*for (int i=0;i<=n;i++) printf("%d ",a[i]);puts("");
	for (int i=0;i<=n;i++) printf("%d ",b[i]);puts("");*/
	printf("%d\n",ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:22: error: reference to 'rank' is ambiguous
   34 |                 a[i]=rank(a[i]);
      |                      ^~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:60,
                 from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/type_traits:1437:12: note: candidates are: 'template<class> struct std::rank'
 1437 |     struct rank
      |            ^~~~
a.cc:6:5: note:                 'int rank(int)'
    6 | int rank(int x){
      |     ^~~~
a.cc:35:22: error: reference to 'rank' is ambiguous
   35 |                 b[i]=rank(b[i]);
      |                      ^~~~
/usr/include/c++/14/type_traits:1437:12: note: candidates are: 'template<class> struct std::rank'
 1437 |     struct rank
      |            ^~~~
a.cc:6:5: note:                 'int rank(int)'
    6 | int rank(int x){
      |     ^~~~
Language: C++

#include <cstdio>
#include <algorithm>
#include <iostream>
#include <vector>
#include <cstring>
#include <set>
#include <utility>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <stack>
#include <string>
#include <map>
#include <cmath>
#include <deque>
#include <bitset>
#define ll long long
#define PI 3.1415926535897932384626433832795
#define read(x) scanf("%d",&x);
#define readll(x) cin>>x;
#define FOR(x,a,b) for(int x=a;x<b;x++)
#define MP make_pair
#define PB push_back
#define pii pair<int,int>
#define readN(N,X) for(int i=0;i<N;i++) cin>>X[i];
#define pff pair<double,double>
using namespace std;

map<int, queue<int> > to;

int N;
int a[100005];
int b[100005];
int vis[100005];
map<int,int> ca,cb;
void No(){
	cout<<"-1"<<endl;
	exit(0);
}

int main () {
	std::ios::sync_with_stdio(false); 
	cin>>N;
	readN(N,a);
	readN(N,b);
	FOR(i,0,N){
		ca[a[i]]++;
		cb[b[i]]++;
		//cout<<"dari "<<b[i]<<" ke "<<a[i]<<endl;
	}
	int res = 0;

	int kagi = 0;
	FOR(i,0,N) kagi ^= a[i];
	
	FOR (i,0,N){
		if (a[i] == b[i]) continue;
		to[b[i]].push(i);
	}
	bool mul = 0;
	//cout<<kagi<<endl;
	FOR (i,0,N){
		if (a[i] != b[i] && b[i] == kagi) {
			int p = i;
			while (!vis[p]) {
				//cout<<p<<endl;
				vis[p] = 1;
				res++;
				if (to[ a[p] ].size() == 0) break;
				int tmp = to[ a[p] ].front();
				to[ a[p] ].pop();
				p =tmp;
			}
			mul=1;
			kagi = a[p];
			break;
		}	
	}
	//cout<<kagi<<endl;
	//cout<<"AA"<<endl;
	bool gagal = 0;
	FOR(i,0,N){
		if (!vis[i] && a[i] != b[i]) gagal=1;
		//if () gagal=1;
	}
	if (!gagal) {
		cout<<res<<endl;
		return 0;
	}
	if (mul || to[kagi].size() == 0) res++;

	res+=mul;
	FOR(i,0,N){
		if (a[i] == b[i]) continue;
		if (vis[i]) continue;
		int p = i;
		while (!vis[p]) {
			//cout<<p<<endl;
			vis[p] = 1;
			res++;
			if (to[ a[p] ].size() == 0) No();
			while (1){
			int tmp = to[ a[p] ].front();
			to[ a[p] ].pop();
			if (!vis[tmp] ||to[ a[p] ].size() == 0 ) break;
			}
			
			p =tmp;
		}
		//cout<<"1loop "<<endl;
		res++;
	}

	cout<<res - 1<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:108:28: error: 'tmp' was not declared in this scope; did you mean 'tm'?
  108 |                         p =tmp;
      |                            ^~~
      |                            tm
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <multset>
#include <map>
using namespace std;

#define SZ(a) (int)(a).size()
typedef long long ll;

int main() {
	cin.sync_with_stdio(false);
	int n;
	map<int, int> t;
	vector<int> a;
	int xo = 0;
	for (int i = 0; i < n; i++) {
		int x;
		cin >> x;
		a.push_back(x);
		xo ^= x;
		t[x]++;
	}
	t[xo]++;
	vector<int> b;
	for (int i = 0; i < n; i++) {
		int x;
		cin >> x;
		b.push_back(x);
		t[x]--;
		if (t[x] < 0) {
			puts("-1");
			return 0;
		}
	}
	map<int, multiset<int>> ab, ba;
	for (int i = 0; i < n; i++) {
		if (a[i] != b[i]) {
			ab[a[i]].insert(b[i]);
			ba[b[i]].insert(a[i]);
		}
	}
	int ans = 0;
	while (!ab.empty()) {
		int bx;
		int ax;
		if (ba.find(xo) != end(ba)) {
			bx = xo;
			ax = *begin(ba[bx]);
		}
		else {
			for (auto it = begin(ab); it != end(ab); ++it) {
				if (*it != xo) {
					ax = *it;
					bx = *begin(ab[ax]);
					ab[ax].insert(xo);
					ba[xo].insert(ax);
				}
			}
		}
		ba[bx].erase(begin(ba[bx]));
		if (ba[bx].empty()) {
			ba.erase(bx);
		}
		ab[ax].erase(ab[ax].find(bx));
		if (ab[ax].empty()) {
			ab.erase(ax);
		}
		xo = ax;
	}
	printf("%d\n", ans);
	return 0;
}


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

#include <cstdio>
#include <cstdlib>
#include <queue>
using namespace std;
const int MAXN = 1e5 + 10;

void Fail(){
	printf("-1\n");
	exit(0);
}

int n, a[MAXN], b[MAXN], cx;

void floor( int bit ){
	
	cx = 0;
	for ( int i = 0; i < n; i++ )
		cx ^= a[i];
	
	while ( !q[0].empty() ) q[0].pop();
	while ( !q[1].empty() ) q[1].pop();
	
	for ( int i = 0; i < n; i++ )
		if ( ( (a[i] ^ b[i]) & bit ) )
			q[ !!(b[i] & bit) ].push(i);
	
	while ( true ){
		
		int hq = !!(cx & bit);
		if ( q[ !!(cx & bit) ].empty() )
			return;
		
		int h = q[hq].front();
		q[hq].pop();
		
		int bx = cx;
		cx ^= a[h];
		a[h] = bx;
		cx ^= a[h];
		++sol;
		
	}
	
}

int main(){
	scanf("%d", &n);
	for ( int i = 0; i < n; i++ )
		scanf("%d", a + i);
	for ( int i = 0; i < n; i++ )
		scanf("%d", b + i);
	
	for ( int i = 0; i < 29; i++ )
		floor( 1 << i );
	
	for ( int i = 0; i < n; i++ )
		if ( a[i] != b[i] )
			Fail();
	printf("%d\n", sol);
	
	return 0;
}

Compiler output:
a.cc: In function 'void floor(int)':
a.cc:20:18: error: 'q' was not declared in this scope
   20 |         while ( !q[0].empty() ) q[0].pop();
      |                  ^
a.cc:21:18: error: 'q' was not declared in this scope
   21 |         while ( !q[1].empty() ) q[1].pop();
      |                  ^
a.cc:25:25: error: 'q' was not declared in this scope
   25 |                         q[ !!(b[i] & bit) ].push(i);
      |                         ^
a.cc:30:22: error: 'q' was not declared in this scope; did you mean 'hq'?
   30 |                 if ( q[ !!(cx & bit) ].empty() )
      |                      ^
      |                      hq
a.cc:33:25: error: 'q' was not declared in this scope
   33 |                 int h = q[hq].front();
      |                         ^
a.cc:40:19: error: 'sol' was not declared in this scope
   40 |                 ++sol;
      |                   ^~~
a.cc: In function 'int main()':
a.cc:59:24: error: 'sol' was not declared in this scope
   59 |         printf("%d\n", sol);
      |                        ^~~
Language: C++

#include <cstdio>
#include <cstdlib>
#include <queue>
using namespace std;
const int MAXN = 1e5 + 10;

void Fail(){
	printf("-1\n");
	exit(0);
}

int n, a[MAXN], b[MAXN], cx;

void floor( int bit ){
	
	cx = 0;
	for ( int i = 0; i < n; i++ )
		cx ^= a[i];
	
	while ( !q[0].empty() ) q[0].pop();
	while ( !q[1].empty() ) q[1].pop();
	
	for ( int i = 0; i < n; i++ )
		if ( ( (a[i] ^ b[i]) & bit ) )
			q[ !!(b[i] & bit) ].push(i);
	
	while ( true ){
		
		int hq = !!(cx & bit);
		if ( q[ !!(cx & bit) ].empty() )
			return;
		
		int h = q[hq].front();
		q[hq].pop();
		
		int bx = cx;
		cx ^= a[h];
		a[h] = bx;
		cx ^= a[h];
		
	}
	
}

int main(){
	scanf("%d", &n);
	for ( int i = 0; i < n; i++ )
		scanf("%d", a + i);
	for ( int i = 0; i < n; i++ )
		scanf("%d", b + i);
	
	for ( int i = 0; i < 29; i++ )
		floor( 1 << i );
	
	for ( int i = 0; i < n; i++ )
		if ( a[i] != b[i] )
			Fail();
	printf("%d\n", sol);
	
	return 0;
}

Compiler output:
a.cc: In function 'void floor(int)':
a.cc:20:18: error: 'q' was not declared in this scope
   20 |         while ( !q[0].empty() ) q[0].pop();
      |                  ^
a.cc:21:18: error: 'q' was not declared in this scope
   21 |         while ( !q[1].empty() ) q[1].pop();
      |                  ^
a.cc:25:25: error: 'q' was not declared in this scope
   25 |                         q[ !!(b[i] & bit) ].push(i);
      |                         ^
a.cc:30:22: error: 'q' was not declared in this scope; did you mean 'hq'?
   30 |                 if ( q[ !!(cx & bit) ].empty() )
      |                      ^
      |                      hq
a.cc:33:25: error: 'q' was not declared in this scope
   33 |                 int h = q[hq].front();
      |                         ^
a.cc: In function 'int main()':
a.cc:58:24: error: 'sol' was not declared in this scope
   58 |         printf("%d\n", sol);
      |                        ^~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>

using namespace std;
using pii = pair<int, int>;

int main(){
	ios_base::sync_with_stdio(false);
	int n;
	cin >> n;
	vector<int> a(n), b(n);
	for(int i = 0; i < n; ++i){ cin >> a[i]; }
	for(int i = 0; i < n; ++i){ cin >> b[i]; }
	int a_sum = 0, b_sum = 0;
	for(int i = 0; i < n; ++i){
		a_sum ^= a[i];
		b_sum ^= b[i];
	}
	a.push_back(a_sum);
	b.push_back(b_sum);
	vector<int> c, d;
	unordered_multimap<int, int> d_map;
	for(int i = 0; i <= n; ++i){
		if(a[i] == b[i]){ continue; }
		c.push_back(a[i]);
		d.push_back(b[i]);
		d_map.emplace(d.back(), d.size() - 1);
	}
	const int m = c.size();
	if(m == 0){
		cout << 0 << endl;
		return 0;
	}
	vector<int> g(m);
	iota(g.begin(), g.end(), 0);
	for(int i = 0; i < m; ++i){
		if(c[i] == d[i]){ continue; }
		int last = c[i];
		g[i] = i;
		while(d_map.find(last) != d_map.end()){
			const auto it = d_map.find(last);
			const int t = c[it->second];
			c[it->second] = last;
			g[it->second] = i;
			last = t;
			d_map.erase(it);
		}
	}
	if(!d_map.empty()){
		cout << -1 << endl;
		return 0;
	}
	vector<vector<int>> h(m);
	for(int i = 0; i < m; ++i){
		h[g[i]].push_back(c[i]);
	}
	int answer = m - 1;
	unordered_set<int> occ;
	for(const auto& v : h){
		if(v.empty()){ continue; }
		bool found = false;
		for(const auto x : v){
			if(occ.find(x) != occ.end()){
				found = true;
				break;
			}
		}
		if(!found){ ++answer; }
		for(const auto x : v){ occ.insert(x); }
	}
	if(a_sum != b_sum){ --answer; }
	cout << answer << endl;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:39:9: error: 'iota' was not declared in this scope
   39 |         iota(g.begin(), g.end(), 0);
      |         ^~~~
Language: C++

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

#define endl '\n'
#define ends ' '
#define die(x) return cout << x << endl, 0
#define all(v) v.begin(), v.end()
#define sz(x) (int)(x.size())
void debug_out() { cerr << endl; }
template <typename Head, typename... Tail>
void debug_out(Head H, Tail... T) { cerr << ends << H; debug_out(T...); }
#define debug(...) cerr << "{" << #__VA_ARGS__ << "}:", debug_out(__VA_ARGS__)
typedef long long ll;
typedef pair<int, int> pii;
const ll INF = 1e9;
const ll MOD = 1e9 + 7;
 
////////////////////////////////////////////////////////////////////

const int N = 4e2 + 2, M = 1e5 + 2;

bool M[N];
int X[M], Y[M];
bitset<N> S[N];

int main() {

	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	mt19937 Rnd(time(0));

	int n, m, ans = 0; cin >> n >> m;
	for (int i = 0; i < n; i++) S[i][i] = 1;
	for (int i = 0; i < m; i++) cin >> X[i] >> Y[i], X[i]--, Y[i]--;
	while (m--) {
		int x = X[m], y = Y[m];
		for (int i = 0; i < n; i++) {
			if (S[i][x] && S[i][y]) M[i] = true;
			else if (S[i][x]) S[i][y] = true;
			else if (S[i][y]) S[i][x] = true;
		}
	}
	for (int i = 0; i < n; i++) for (int j = 0; j < i; j++) if (M[i] + M[j] + (S[i] & S[j]).count() == 0) ans++;
	cout << ans << endl;

	return 0;
}


Compiler output:
a.cc:23:6: error: conflicting declaration 'bool M [402]'
   23 | bool M[N];
      |      ^
a.cc:21:24: note: previous declaration as 'const int M'
   21 | const int N = 4e2 + 2, M = 1e5 + 2;
      |                        ^
a.cc: In function 'int main()':
a.cc:38:50: error: invalid types 'const int[int]' for array subscript
   38 |                         if (S[i][x] && S[i][y]) M[i] = true;
      |                                                  ^
a.cc:43:70: error: invalid types 'const int[int]' for array subscript
   43 |         for (int i = 0; i < n; i++) for (int j = 0; j < i; j++) if (M[i] + M[j] + (S[i] & S[j]).count() == 0) ans++;
      |                                                                      ^
a.cc:43:77: error: invalid types 'const int[int]' for array subscript
   43 |         for (int i = 0; i < n; i++) for (int j = 0; j < i; j++) if (M[i] + M[j] + (S[i] & S[j]).count() == 0) ans++;
      |                                                                             ^
Language: C++

#include <map>
#include <unordered_map>
#include <unordered_set>
#include <set>
#include <vector>
#include <numeric>
#include <algorithm>
#include <iostream>
#include <string>
#include <cstring>
#include <sstream>
#include <functional>
#include <queue>
#include <deque>
#include <stack>
#include <cassert>

using namespace std;

using int64 = long long;

/////////////////////
// Code starts here//
/////////////////////


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

    int N, M;

    cin >> N >> M;

    vector<bitset<400>> seen(N);
    vector<bool> alive(N, true);

    for (int i = 0; i < N; i++) 
        seen[i][i] = 1;

    for (int i = 0; i < M; i++) {
        int x, y;
        cin >> x >> y;
        x--, y--;

        if ((seen[x] & seen[y]).count()) {
            alive[x] = false;
            alive[y] = false;   
        }

        if (!alive[y])
            alive[x] = false;
        if (!alive[x])
            alive[y] = false;

        seen[x] |= seen[y];
        seen[y] |= seen[x];  
    }

    int res = 0;

    for (int i = 0; i < N; i++) {
        for (int j = i + 1; j < N; j++) {
            if (alive[i] && alive[j] && !(seen[i] & seen[j]).count()) {
                res++;
            }
        }
    }

    cout << res << "\n";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:12: error: 'bitset' was not declared in this scope
   35 |     vector<bitset<400>> seen(N);
      |            ^~~~~~
a.cc:17:1: note: 'std::bitset' is defined in header '<bitset>'; this is probably fixable by adding '#include <bitset>'
   16 | #include <cassert>
  +++ |+#include <bitset>
   17 | 
a.cc:35:19: error: template argument 1 is invalid
   35 |     vector<bitset<400>> seen(N);
      |                   ^~~
a.cc:35:19: error: template argument 2 is invalid
a.cc:35:22: error: expected unqualified-id before '>' token
   35 |     vector<bitset<400>> seen(N);
      |                      ^~
a.cc:39:9: error: 'seen' was not declared in this scope
   39 |         seen[i][i] = 1;
      |         ^~~~
a.cc:46:14: error: 'seen' was not declared in this scope
   46 |         if ((seen[x] & seen[y]).count()) {
      |              ^~~~
a.cc:56:9: error: 'seen' was not declared in this scope
   56 |         seen[x] |= seen[y];
      |         ^~~~
a.cc:64:43: error: 'seen' was not declared in this scope
   64 |             if (alive[i] && alive[j] && !(seen[i] & seen[j]).count()) {
      |                                           ^~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
typedef long long ll;
inline int read()
{
	int x = 0, f = 1; char c = getchar();
	while (!isdigit(c)) {if (c == '-') f = -1; c = getchar();}
	while (isdigit(c)) {x = x * 10 + c - '0', c = getchar();}
	return x * f;
}

const int maxn = 405;
typedef bitset<maxn> mybitset;
int n, m, u[maxn * maxn], v[maxn * maxn];
mybitset bit[maxn]; bool mark[maxn];

int main()
{
	n = read(), m = read();
	for (int i = 1; i <= m; i ++) u[i] = read(), v[i] = read();
	for (int i = 1; i <= n; i ++) bit[i].set(i);
	for (int i = m; i >= 1; i --)
		for (int x = 1; x <= n; x ++) if (!mark[x])
		{
			if (!bit[x].test(u[i]) && !bit[x].test(v[i])) continue;
			if (bit[x].test(u[i]) && bit[x].test(v[i])) {mark[x] = 1; continue;}
			if (bit[x].test(u[i])) bit[x].set(v[i]);
			else bit[x].set(u[i]);
		}
	int ans = 0;
	for (int i = 1; i <= n; i ++) if (!mark[i])
		for (int j = i + 1; j <= n; j ++) if (!mark[j])
			ans += (bit[i] & bit[j]).none();
	printf("%d\n", ans);
	return 0;
}

Compiler output:
a.cc:16:9: error: 'bitset' does not name a type
   16 | typedef bitset<maxn> mybitset;
      |         ^~~~~~
a.cc:18:1: error: 'mybitset' does not name a type
   18 | mybitset bit[maxn]; bool mark[maxn];
      | ^~~~~~~~
a.cc: In function 'int main()':
a.cc:24:39: error: 'bit' was not declared in this scope
   24 |         for (int i = 1; i <= n; i ++) bit[i].set(i);
      |                                       ^~~
a.cc:28:30: error: 'bit' was not declared in this scope
   28 |                         if (!bit[x].test(u[i]) && !bit[x].test(v[i])) continue;
      |                              ^~~
a.cc:29:29: error: 'bit' was not declared in this scope
   29 |                         if (bit[x].test(u[i]) && bit[x].test(v[i])) {mark[x] = 1; continue;}
      |                             ^~~
a.cc:30:29: error: 'bit' was not declared in this scope
   30 |                         if (bit[x].test(u[i])) bit[x].set(v[i]);
      |                             ^~~
a.cc:36:33: error: 'bit' was not declared in this scope
   36 |                         ans += (bit[i] & bit[j]).none();
      |                                 ^~~
Language: C++

// This amazing code is by Eric Sunli Chen.
#include<bits/stdc++.h>
using namespace std;
template<typename T> bool get_int(T &x)
{
	char t=getchar();
	bool neg=false;
	x=0;
	for(; (t>'9'||t<'0')&&t!='-'&&t!=EOF; t=getchar());
	if(t=='-')neg=true,t=getchar();if(t==EOF)return false;
	for(; t<='9'&&t>='0'; t=getchar())x=x*10+t-'0';
	if(neg)x=-x;return true;
}
template<typename T> void print_int(T x)
{
	if(x<0)putchar('-'),x=-x;
	short a[20]= {},sz=0;
	while(x>0)a[sz++]=x%10,x/=10;
	if(sz==0)putchar('0');
	for(int i=sz-1; i>=0; i--)putchar('0'+a[i]);
}
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define get1(a) get_int(a)
#define get2(a,b) (get1(a)&&get1(b))
#define get3(a,b,c) (get1(a)&&get2(b,c))
#define printendl(a) print_int(a),puts("")
typedef long long LL;
typedef unsigned long long uLL;
typedef pair<int,int> pii;
const int inf=0x3f3f3f3f;
const LL Linf=1ll<<61;
const double pi=acos(-1.0);

int n,m,x[100111],y[100111];
bool kill[411];
bitset<411> a[411];
int main()
{
	get2(n,m);
	for(int i=1;i<=m;i++)get2(x[i],y[i]);
	for(int i=1;i<=n;i++)
	{
		a[i].set(i);
		for(int j=m;j>=1;j--)
		{
			int s=a[i].test(x[j])+a[i].test(y[j]);
			if(s==2)
			{
				kill[i]=1;
				break;
			}
			else if(s==1)
			{
				a[i].set(x[j]);
				a[i].set(y[j]);
			}
		}
	}
	int ans=0;
	for(int i=1;i<=n;i++)for(int j=i+1;j<=n;j++)if(!kill[i]&&!kill[j]&&(a[i]&a[j]).none())ans++;
	printendl(ans);
	return 0;
}

Compiler output:
a.cc:38:14: error: 'bool kill [411]' redeclared as different kind of entity
   38 | bool kill[411];
      |              ^
In file included from /usr/include/c++/14/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:116,
                 from a.cc:2:
/usr/include/signal.h:112:12: note: previous declaration 'int kill(__pid_t, int)'
  112 | extern int kill (__pid_t __pid, int __sig) __THROW;
      |            ^~~~
a.cc: In function 'int main()':
a.cc:52:39: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   52 |                                 kill[i]=1;
      |                                       ^
a.cc:52:40: error: assignment of read-only location '*(kill + ((sizetype)i))'
   52 |                                 kill[i]=1;
      |                                 ~~~~~~~^~
a.cc:63:63: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   63 |         for(int i=1;i<=n;i++)for(int j=i+1;j<=n;j++)if(!kill[i]&&!kill[j]&&(a[i]&a[j]).none())ans++;
      |                                                               ^
a.cc:63:73: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   63 |         for(int i=1;i<=n;i++)for(int j=i+1;j<=n;j++)if(!kill[i]&&!kill[j]&&(a[i]&a[j]).none())ans++;
      |                                                                         ^
Language: C++

#include<cstdio>
#include<cstring>
#include<algorithm>
#include<map>
using namespace std;
const int N=1e6+5,M=405;
typedef long long ll;
int a[N],b[N];
bool s[M][M];
bool vis[M];
int n,m;
int main()
{
    scanf("%d%d",&n,&m);
    for(int i=1;i<=m;i++)
        scanf("%d%d",&a[i],&b[i]);
    for(int i=1;i<=n;i++){
        s[i][i]=1;
        for(int j=m;j>=1;j--){
            bool x=box[i][a[j]],y=box[i][b[j]];
            if(x&&y)
                vis[i]=1;
            else if(x)
                box[i][b[j]]=1;
            else if(y)
                box[i][a[j]]=1;
        }
    }
    int ans=0;
    for(int i=1;i<=n;i++){
        if(vis[i])
            continue;
        for(int j=i+1;j<=n;j++){
            if(vis[j])
                continue;
            bool flag=true;
            for(int k=1;k<=n;k++)
                if(s[i][k]&&s[j][k]){
                    flag=false;
                    break;
                }
            ans+=flag;
        }
    }
    printf("%d\n",ans);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:20: error: 'box' was not declared in this scope
   20 |             bool x=box[i][a[j]],y=box[i][b[j]];
      |                    ^~~
a.cc:21:19: error: 'y' was not declared in this scope
   21 |             if(x&&y)
      |                   ^
Language: C++

      for(int j=0;j<N;j++){
	mex[i][j]=mex[j][i]=1;
      }
    }
  }
  /*
  for(int i=0;i<N;i++){
    for(int j=0;j<N;j++){
      printf("%d",mex[i][j]);
    }
    printf("\n");
  }
  */
  int cnt=0;
  for(int i=0;i<N;i++){
    for(int j=0;j<i;j++){
      if(mex[i][j]==0) cnt++;
    }
  }
  printf("%d\n",cnt);
  return 0;
}


Compiler output:
a.cc:1:7: error: expected unqualified-id before 'for'
    1 |       for(int j=0;j<N;j++){
      |       ^~~
a.cc:1:19: error: 'j' does not name a type
    1 |       for(int j=0;j<N;j++){
      |                   ^
a.cc:1:23: error: 'j' does not name a type
    1 |       for(int j=0;j<N;j++){
      |                       ^
a.cc:4:5: error: expected declaration before '}' token
    4 |     }
      |     ^
a.cc:5:3: error: expected declaration before '}' token
    5 |   }
      |   ^
a.cc:15:3: error: expected unqualified-id before 'for'
   15 |   for(int i=0;i<N;i++){
      |   ^~~
a.cc:15:15: error: 'i' does not name a type
   15 |   for(int i=0;i<N;i++){
      |               ^
a.cc:15:19: error: 'i' does not name a type
   15 |   for(int i=0;i<N;i++){
      |                   ^
a.cc:20:9: error: expected constructor, destructor, or type conversion before '(' token
   20 |   printf("%d\n",cnt);
      |         ^
a.cc:21:3: error: expected unqualified-id before 'return'
   21 |   return 0;
      |   ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include<set>
#include<map>
#include<deque>
#include<queue>
#include<stack>
#include<cmath>
#include<ctime>
#include<bitset>
#include<string>
#include<vector>
#include<cstdio>
#include<Cstdlib>
#include<cstring>
#include<climits>
#include<complex>
#include<iostream>
#include<algorithm>
#define ll long long
using namespace std;

const int maxn = 510;
const int maxm = 210000;

int n,m;
struct edge{int x,y;}a[maxm];
bitset<maxn>S[maxn];

int main()
{
	scanf("%d%d",&n,&m);
	for(int i=1;i<=m;i++) scanf("%d%d",&a[i].x,&a[i].y);
	
	for(int i=1;i<=n;i++)
	{
		S[i][i]=1;
		for(int j=m;j>=1;j--)
		{
			int x=a[j].x,y=a[j].y;
			if(S[i][x]&&S[i][y]) { S[i].set(); break; }
			if(!S[i][x]&&!S[i][y]) continue;
			if(S[i][x]) S[i][y]=1;
			else S[i][x]=1;
		}
	}
	
	int ans=0;
	for(int i=1;i<n;i++) for(int j=i+1;j<=n;j++) if((S[i]&S[j]).count()==0)
		ans++;
	printf("%d\n",ans);
	
	return 0;
}


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

#include <cstdio>
#include <vector>
#define repeat(i, n) for (int i = 0; (i) < int(n); ++(i))
using namespace std;
template <typename X, typename T> auto vectors(X x, T a) { return vector<T>(x, a); }
template <typename X, typename Y, typename Z, typename... Zs> auto vectors(X x, Y y, Z z, Zs... zs) { auto cont = vectors(y, z, zs...); return vector<decltype(cont)>(x, cont); }

int main() {
    int n, m; scanf("%d%d", &n, &m);
    assert (m < 15);
    vector<int> xs(m), ys(m);
    repeat (i, m) {
        scanf("%d%d", &xs[i], &ys[i]);
        -- xs[i];
        -- ys[i];
    }
    auto possible = vectors(n, n, false);
    repeat (s, 1 << m) {
        vector<bool> alive(n, true);
        repeat (i, m) {
            int x = xs[i];
            int y = ys[i];
            if (alive[x] and alive[y]) {
                alive[(s & (1 << i)) ? x : y] = false;
            } else if (alive[x]) {
                alive[x] = false;
            } else if (alive[y]) {
                alive[y] = false;
            }
        }
        repeat (x, n) if (alive[x]) {
            repeat (y, n) if (alive[y]) {
                possible[x][y] = true;
            }
        }
    }
    int result = 0;
    repeat (y, n) repeat (x, y) {
        result += possible[x][y];
    }
    printf("%d\n", result);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'assert' was not declared in this scope
   10 |     assert (m < 15);
      |     ^~~~~~
a.cc:3:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>'
    2 | #include <vector>
  +++ |+#include <cassert>
    3 | #define repeat(i, n) for (int i = 0; (i) < int(n); ++(i))
Language: C++

#include <bits/stdc++.h>
// iostream is too mainstream
#include <cstdio>
// bitch please
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <list>
#include <cmath>
#include <iomanip>
#include <time.h>
#define dibs reserve
#define OVER9000 1234567890
#define ALL_THE(CAKE,LIE) for(auto LIE =CAKE.begin(); LIE != CAKE.end(); LIE++)
#define tisic 47
#define soclose 1e-8
#define chocolate win
// so much chocolate
#define patkan 9
#define ff first
#define ss second
#define abs(x) ((x < 0)?-(x):x)
#define uint unsigned int
#define dbl long double
#define pi 3.14159265358979323846
using namespace std;
// mylittledoge

#ifdef DONLINE_JUDGE
	// palindromic tree is better than splay tree!
	#define lld I64d
#endif

int main() {
	cin.sync_with_stdio(0);
	cin.tie(0);
	cout << fixed << setprecision(10);
	int N,M;
	cin >> N >> M;
	vector< vector<int> > G(N);
	long long ans =1;
	for(int i =0; i < M; i++) {
		ans =(ans*2)%mod;
		int x,y;
		cin >> x >> y;
		if(x == 1 && y == 2) continue;
		G[N-x].push_back(N-y);}

	vector< vector<int> > deg(N,vector<int>(1<<N,0));
	for(int i =0; i < N; i++) for(int j =0; j < (1<<N); j++)
		ALL_THE(G[i],it) deg[i][j] +=(j>>*it)&1;

	vector<long long> cnt(1<<N,0);
	cnt[0] =1;
	long long mod =1000000007;
	for(int i =0; i < (1<<(N-2)); i++) if(cnt[i] != 0) {
		vector<int> v;
		int w,w2;
		for(int j =0; j < N; j++) if(((i>>j)&1) == 0) v.push_back(j);
		int sz =v.size();
		for(int j =0; j < (1<<(sz-2)); j++) for(int k =0; k < 2; k++) {
			w =0;
			for(int a =0; a < sz-2; a++) if((j>>a)&1) w +=1<<v[a];
			if(k) w +=(1<<(N-2))*3;
			if(w == 0) continue;
			w2 =(1<<N)-1-i-w;
			long long c =1;
			for(int a =0; a < N; a++) if((w2>>a)&1) c =(c*((1LL<<deg[a][w])-1))%mod;
			for(int a =0; a < N; a++) if((w>>a)&1) c =(c*(1LL<<deg[a][w2]))%mod;
			c =(c*cnt[i])%mod;
			cnt[i+w] =(cnt[i+w]+c)%mod;}
		}

	for(int i =0; i < (1<<N); i++) if((i>>(N-1))&1) if((i>>(N-2))&1) {
		int e =0;
		for(int j =0; j < N; j++) if(((i>>j)&1) == 0)
			ALL_THE(G[j],it) if(((i>>*it)&1) == 0) e++;
		ans =(ans-(1LL<<e)*cnt[i])%mod;}
	if(ans < 0) ans +=mod;
	cout << ans << "\n";
	return 0;}

// look at my code
// my code is amazing


Compiler output:
a.cc: In function 'int main()':
a.cc:48:30: error: 'mod' was not declared in this scope; did you mean 'modf'?
   48 |                 ans =(ans*2)%mod;
      |                              ^~~
      |                              modf
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int r, g, b;
  cin >> r >> g >> b;
  if ((r*100+g+10+b)%4==0) {
    cout << "YES" << endl;
  } else {
    cout << "NO" endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ';' before 'endl'
   10 |     cout << "NO" endl;
      |                 ^~~~~
      |                 ;
Language: C++

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

int main() {
  int r,g,b;
 cin >> r >> g >> b;

if((10*g+r)%4==0){cout<< YES <<endl;}
cout<< NO <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: 'YES' was not declared in this scope
    8 | if((10*g+r)%4==0){cout<< YES <<endl;}
      |                          ^~~
a.cc:9:8: error: 'NO' was not declared in this scope
    9 | cout<< NO <<endl;
      |        ^~
Language: C++

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

int main() {
  int r,g,b;
 cin >> r >> g >> b;

if((10*g+r)%4==0){cout<<YES<<endl;}
cout<<NO<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'YES' was not declared in this scope
    8 | if((10*g+r)%4==0){cout<<YES<<endl;}
      |                         ^~~
a.cc:9:7: error: 'NO' was not declared in this scope
    9 | cout<<NO<<endl;
      |       ^~
Language: C

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

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int re = (100 * a) + (10 * b) + c;

    if (re % 4 == 0) {
        cout << "YES" << endl;
    } else {
        cout << "NO" << endl;
    }
    return 0;
}

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

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

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int re = (100 * a) + (10 * b) + c;

    if (re % 4 == 0) {
        cout << "YES" << endl;
    } else {
        cout << "NO" << endl;
    }
    return 0;
}

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

#include <iostream>
#include<String>
using namespace std;
int main()
{
	int a,b,c,sum;
	cin>>a>>b>>c;
	sum=(100*a)+(10*b)+c;
	if(sum%4==0)
	{
		cout<<"YES";
	}
	else
	{
		cout<<"NO";
	}
	return 0;
}

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

#include<iostream>
#include<CastingInterop.h>
#include<string>
using namespace std;

int main()
{
	char arr[3];
	int arr1[3];
	string y;
	for (int i = 0; i < 3; i++)
	{
		cin >> arr[i];
	}
	string s [1000];
	for (int i = 0; i < 3; i++)
	{
		s[i] =  arr[i];
		
	}
	for (int i = 0; i < 3; i++)
	{
		s[i] += s[i +1]+s[i+2];
	}
}

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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int r, g, b;
    cin >> r >> b >> b;
    int num = 100 * r + 10 * g + b;
    c
    
    if (num % 4 == 0) cout << "YES" << endl;
    else cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'c' was not declared in this scope
    8 |     c
      |     ^
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else cout << "NO" << endl;
      |     ^~~~
Language: C

#include <stdio.h>
int main() {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  (((a*100)+(b*10)+c)%4==0)?printf("YES\n");:printf("NO\n");
}

Compiler output:
main.c: In function 'main':
main.c:5:44: error: expected ':' before ';' token
    5 |   (((a*100)+(b*10)+c)%4==0)?printf("YES\n");:printf("NO\n");
      |                                            ^
      |                                            :
main.c:5:45: error: expected expression before ':' token
    5 |   (((a*100)+(b*10)+c)%4==0)?printf("YES\n");:printf("NO\n");
      |                                             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c,z ;
    cin>>a>>b>>c;
    z=(a*100)+(b*10)+c;
    if(s%4==0)
    cout<<"YES";
    else
     cout<<"NO";
	
        
	return 0;
	}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 's' was not declared in this scope
    8 |     if(s%4==0)
      |        ^
Language: C++

#include<iostream>
using namesapce std;

int main(){
  
  int r,g,b;cin>>r>>g>>b;
  if((r*100+g*10+b)%4==0)cout << "YES"<<endl;
  else cout <<"NO"<<endl;
  
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   int r,g,b;cin>>r>>g>>b;
      |             ^~~
      |             std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:26: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if((r*100+g*10+b)%4==0)cout << "YES"<<endl;
      |                          ^~~~
      |                          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:41: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   if((r*100+g*10+b)%4==0)cout << "YES"<<endl;
      |                                         ^~~~
      |                                         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else cout <<"NO"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   else cout <<"NO"<<endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>
int main(void)
{
  int r,g,b,k=0;
  scanf("%d",&r);
  scanf("%d",&g);
  scanf("%d",&b);
  
  k=100*r+10*g+b;
  
  if(k%4=0){
    printf("YES");
  }
  else{
    printf("NO");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: lvalue required as left operand of assignment
   11 |   if(k%4=0){
      |         ^
Language: C++

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

int main(){
int a,b,c;
  cin >> a >> b>>c;
  int total = 100*a + 10*b +c;
  string s="No":
  if(total%4==0) {s="Yes";}
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ',' or ';' before ':' token
    8 |   string s="No":
      |                ^
Language: C++

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

int main(){
int a,b,c;
  cin >> a >> b>>c;
  int total = 100*a + 10*b +c;
  string s="No":
  if(total%4==0) s="Yes";
  cout << s << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ',' or ';' before ':' token
    8 |   string s="No":
      |                ^
Language: C++

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

int main(){
  int r, g, d; cin >> r >> g >> d;
  int a = r * 100 + g * 10 + d;
  if(a % 4 == 0) cout << "YES" << endl;
  else cout << "NO" << endl;
}  

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namaespace'
    2 | using namaespace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   int r, g, d; cin >> r >> g >> d;
      |                ^~~
      |                std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(a % 4 == 0) cout << "YES" << endl;
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   if(a % 4 == 0) cout << "YES" << endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else cout << "NO" << endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   else cout << "NO" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)

int main(){
  String a,b,c;
  cin >> a >> b >> c;
  String d = a + b + c;
  
  auto num = atoi(d.c_str());
  
  if(e%4 == 0) cout << "YES" << endl;
  else cout << "NO" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'String' was not declared in this scope
    6 |   String a,b,c;
      |   ^~~~~~
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a >> b >> c;
      |          ^
a.cc:7:15: error: 'b' was not declared in this scope
    7 |   cin >> a >> b >> c;
      |               ^
a.cc:7:20: error: 'c' was not declared in this scope
    7 |   cin >> a >> b >> c;
      |                    ^
a.cc:8:9: error: expected ';' before 'd'
    8 |   String d = a + b + c;
      |         ^~
      |         ;
a.cc:10:19: error: 'd' was not declared in this scope
   10 |   auto num = atoi(d.c_str());
      |                   ^
a.cc:12:6: error: 'e' was not declared in this scope
   12 |   if(e%4 == 0) cout << "YES" << endl;
      |      ^
Language: C++

#include <bits/stdc++.h> 
using namespace std; 
int main() { 
  int r,g,b; 
  cin >> r >> g >> b; 
  if ((10*g+b)%4==0) {
    cout <<"Yes"<<endl;
  }
  else {
    cout<<"NO"<<endl:
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected ';' before ':' token
   10 |     cout<<"NO"<<endl:
      |                     ^
      |                     ;
Language: C++

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

int main(){
  int r, g, b;
  cin >> r >> g >>b;

  int ans4 = 100 * r + 10 * g + b;

  if(ans4 % 4 ==0){
    cout << "YES" << endl;
  }else{
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> r >> g >>b;
      |   ^~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "YES" << endl;
      |     ^~~~
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |     cout << "YES" << endl;
      |                      ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "NO" << endl;
      |     ^~~~
a.cc:13:21: error: 'endl' was not declared in this scope
   13 |     cout << "NO" << endl;
      |                     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int r, g, b;
  cin >>r >>g >>b;
  
  int a = r*100 + g*10 + b;
  
  if (a%4 = 0)
    cout << "YES";
  else
    cout << "NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: lvalue required as left operand of assignment
   10 |   if (a%4 = 0)
      |       ~^~