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

#include<bits/stdc++.h>
#define V vector
#define W V<long>
using namespace std;long E,M=2e17,a,b;W S(V<W>p){if(!E)return{1,0};V<V<W>>T(2);for(W x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1)T[x[1]&1].push_back({x[0]/2,++x[1]/2});}for(long i;i<2;i++){a=0;for(W x:T[!i])a^=(2*x[0]+x[1])%3+1;if(!a)E--,W A=S(T[i]),A[0]*=2,A[1]*=2,A[1]+=i;return A;}for(W&v:p)v[0]++;W A=S(p);A[0]--;return A;}int main(){cin>>E;V<W>p(E);while(E--,cin>>a>>b)p[E]={a+M,b+M};E=70;W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}

Compiler output:
a.cc: In function 'std::vector<long int> S(std::vector<std::vector<long int> >)':
a.cc:4:249: error: expected primary-expression before 'A'
    4 | using namespace std;long E,M=2e17,a,b;W S(V<W>p){if(!E)return{1,0};V<V<W>>T(2);for(W x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1)T[x[1]&1].push_back({x[0]/2,++x[1]/2});}for(long i;i<2;i++){a=0;for(W x:T[!i])a^=(2*x[0]+x[1])%3+1;if(!a)E--,W A=S(T[i]),A[0]*=2,A[1]*=2,A[1]+=i;return A;}for(W&v:p)v[0]++;W A=S(p);A[0]--;return A;}int main(){cin>>E;V<W>p(E);while(E--,cin>>a>>b)p[E]={a+M,b+M};E=70;W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}
      |                                                                                                                                                                                                                                                         ^
a.cc:4:290: error: 'A' was not declared in this scope
    4 | using namespace std;long E,M=2e17,a,b;W S(V<W>p){if(!E)return{1,0};V<V<W>>T(2);for(W x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1)T[x[1]&1].push_back({x[0]/2,++x[1]/2});}for(long i;i<2;i++){a=0;for(W x:T[!i])a^=(2*x[0]+x[1])%3+1;if(!a)E--,W A=S(T[i]),A[0]*=2,A[1]*=2,A[1]+=i;return A;}for(W&v:p)v[0]++;W A=S(p);A[0]--;return A;}int main(){cin>>E;V<W>p(E);while(E--,cin>>a>>b)p[E]={a+M,b+M};E=70;W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}
      |                                                                                                                                                                                                                                                                                                  ^
Language: C++

#include<bits/stdc++.h>
#define V vector
#define L long
#define W V<L>
using namespace std;L E=70,M=2e17,i,a,b;W S(V<W>p){if(!E)return{1,0};V<set<W>>T(2);for(W x:p){T[x[1]&1].insert({x[0]/2,x[1]/2});if(x[0]&1)T[x[1]&1].insert({x[0]/2,++x[1]/2});}for(L i;i<2;i++){L c=0;for(W x:T[!i])c^=(2*x[0]+x[1])%3+1;if(!c){E--;W A=S(T[i]);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p)v[0]++;W A=S(p);A[0]--;return A;}int main(){cin>>i;V<W>p(i);while(i--,cin>>a>>b)p[i]={a+M,b+M};W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}

Compiler output:
a.cc: In function 'std::vector<long int> S(std::vector<std::vector<long int> >)':
a.cc:5:250: error: could not convert 'T.std::vector<std::set<std::vector<long int> > >::operator[](((std::vector<std::set<std::vector<long int> > >::size_type)i))' from '__gnu_cxx::__alloc_traits<std::allocator<std::set<std::vector<long int> > >, std::set<std::vector<long int> > >::value_type' {aka 'std::set<std::vector<long int> >'} to 'std::vector<std::vector<long int> >'
    5 | using namespace std;L E=70,M=2e17,i,a,b;W S(V<W>p){if(!E)return{1,0};V<set<W>>T(2);for(W x:p){T[x[1]&1].insert({x[0]/2,x[1]/2});if(x[0]&1)T[x[1]&1].insert({x[0]/2,++x[1]/2});}for(L i;i<2;i++){L c=0;for(W x:T[!i])c^=(2*x[0]+x[1])%3+1;if(!c){E--;W A=S(T[i]);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p)v[0]++;W A=S(p);A[0]--;return A;}int main(){cin>>i;V<W>p(i);while(i--,cin>>a>>b)p[i]={a+M,b+M};W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}
      |                                                                                                                                                                                                                                                         ~^~~~~~
      |                                                                                                                                                                                                                                                          |
      |                                                                                                                                                                                                                                                          __gnu_cxx::__alloc_traits<std::allocator<std::set<std::vector<long int> > >, std::set<std::vector<long int> > >::value_type {aka std::set<std::vector<long int> >}
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define V vector
#define L long
#define W V<L>
L E=70;W S(V<W>p){if(!E){return{1,0};}V<V<W>>T(2);for(W x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1){T[(x[1]+1)&1].push_back({x[0]/2,(x[1]+1)/2});}}i=2;while(i--){L c=0;for(W x:T[!i]){L Q=(2*x[0]+x[1])%3;c^=Q+1;}if(!c){E--;W A=S(T[i]);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p){v[0]++;}W A=S(p);A[0]--;return A;}int main(){L M=2e17,n,a,b;cin>>n;V<W>p(n);while(n--){cin>>a>>b;p[n]={a+M,b+M};}W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}

Compiler output:
a.cc: In function 'std::vector<long int> S(std::vector<std::vector<long int> >)':
a.cc:6:157: error: 'i' was not declared in this scope
    6 | L E=70;W S(V<W>p){if(!E){return{1,0};}V<V<W>>T(2);for(W x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1){T[(x[1]+1)&1].push_back({x[0]/2,(x[1]+1)/2});}}i=2;while(i--){L c=0;for(W x:T[!i]){L Q=(2*x[0]+x[1])%3;c^=Q+1;}if(!c){E--;W A=S(T[i]);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p){v[0]++;}W A=S(p);A[0]--;return A;}int main(){L M=2e17,n,a,b;cin>>n;V<W>p(n);while(n--){cin>>a>>b;p[n]={a+M,b+M};}W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}
      |                                                                                                                                                             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define V vector
#define L long
#define W V<L>
L E=70;W S(V<W>p){if(!E){return{1,0};}V<V<W>>T(2);for(W x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1){T[(x[1]+1)&1].push_back({x[0]/2,(x[1]+1)/2});}}for(L i;i<2;i++){L c=0;for(W x:T[!i]){L Q=(2*x[0]+x[1])%3;c^=Q+1;}if(!c){E--;W A=S(T[i]);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p){v[0]++;}W A=S(p);A[0]--;return A;}int main(){L M=2e17,n,a,b;cin>>n;V<W>p(n);while(n--){cin>>a>>b;p[i]={a+M,b+M};}W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:391: error: 'i' was not declared in this scope
    6 | L E=70;W S(V<W>p){if(!E){return{1,0};}V<V<W>>T(2);for(W x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1){T[(x[1]+1)&1].push_back({x[0]/2,(x[1]+1)/2});}}for(L i;i<2;i++){L c=0;for(W x:T[!i]){L Q=(2*x[0]+x[1])%3;c^=Q+1;}if(!c){E--;W A=S(T[i]);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p){v[0]++;}W A=S(p);A[0]--;return A;}int main(){L M=2e17,n,a,b;cin>>n;V<W>p(n);while(n--){cin>>a>>b;p[i]={a+M,b+M};}W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}
      |                                                                                                                                                                                                                                                                                                                                                                                                       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define V vector
#define L long
#define W V<L>
#define F for(
L E=70;W S(V<W>p){if(!E){return{1,0};}V<V<W>>T(2);FW x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1){T[(x[1]+1)&1].push_back({x[0]/2,(x[1]+1)/2});}}for(L i;i<2;i++){L c=0;for(W x:T[!i]){L Q=(2*x[0]+x[1])%3;c^=Q+1;}if(!c){E--;W A=S(T[i]);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p){v[0]++;}W A=S(p);A[0]--;return A;}int main(){L M=2e17,n,a,b;cin>>n;V<W>p(n);for(L i;i<n;i++){cin>>a>>b;p[i]={a+M,b+M};}W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}

Compiler output:
a.cc: In function 'std::vector<long int> S(std::vector<std::vector<long int> >)':
a.cc:7:51: error: 'FW' was not declared in this scope; did you mean 'W'?
    7 | L E=70;W S(V<W>p){if(!E){return{1,0};}V<V<W>>T(2);FW x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1){T[(x[1]+1)&1].push_back({x[0]/2,(x[1]+1)/2});}}for(L i;i<2;i++){L c=0;for(W x:T[!i]){L Q=(2*x[0]+x[1])%3;c^=Q+1;}if(!c){E--;W A=S(T[i]);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p){v[0]++;}W A=S(p);A[0]--;return A;}int main(){L M=2e17,n,a,b;cin>>n;V<W>p(n);for(L i;i<n;i++){cin>>a>>b;p[i]={a+M,b+M};}W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}
      |                                                   ^~
      |                                                   W
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define V vector
#define L long long
#define W V<L>
#define R(n) for(L i=0;i<n;i++)
W S(V<W>&p,L E){if(!E){return{1,0};}V<V<W>>T(2);for(W x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1){T[(x[1]+1)&1].push_back({x[0]/2,(x[1]+1)/2});}}R(2){L c=0;for(W x:T[!i]){L Q=(2*x[0]+x[1])%3;c^=(Q+1);}if(!c){W A=S(T[i],E-1);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p){v[0]++;}W A=S(p,E);A[0]--;return A;}
L main(){L M=2e17;L n;cin>>n;V<W>p(n);R(n){L a,b;cin>>a>>b;p[i]={a+M,b+M};}W Q=S(p,70);cout<<Q[0]-M<<" "<<Q[1]-M;}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define V vector
#define L long long
#define W V<L>
#define R(n) for(L i=0;i<n;i++)
W S(V<W>&p,L E){if(!E){return{1,0};}V<V<W>>T(2);for(W x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1){T[(x[1]+1)&1].push_back({x[0]/2,(x[1]+1)/2});}}R(2){L c=0;for(W x:T[!i]){L Q=(2*x[0]+x[1])%3;c^=(Q+1);}if(!c){W ans=S(T[i],E-1);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p){v[0]++;}W A=S(p,E);A[0]--;return A;}
int main(){L M=2e17;L n;cin>>n;V<W>p(n);R(n){L a,b;cin>>a>>b;p[i]={a+M,b+M};}W Q=S(p,70);cout<<Q[0]-M<<" "<<Q[1]-M;}

Compiler output:
a.cc: In function 'std::vector<long long int> S(std::vector<std::vector<long long int> >&, long long int)':
a.cc:7:236: error: 'A' was not declared in this scope
    7 | W S(V<W>&p,L E){if(!E){return{1,0};}V<V<W>>T(2);for(W x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1){T[(x[1]+1)&1].push_back({x[0]/2,(x[1]+1)/2});}}R(2){L c=0;for(W x:T[!i]){L Q=(2*x[0]+x[1])%3;c^=(Q+1);}if(!c){W ans=S(T[i],E-1);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p){v[0]++;}W A=S(p,E);A[0]--;return A;}
      |                                                                                                                                                                                                                                            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define V vector
#define L long long
#define W V<L>
#define R(n) for(L i=0;i<n;i++)
W S(V<W>&p,L E){if(!E){return{1,0};}V<V<W>>T(2);for(W x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1){T[(x[1]+1)&1].push_back({x[0]/2,(x[1]+1)/2});}}R(2){int c=0;for(W x:T[i]){L Q=(2*x[0]+x[1])%3;c^=(Q+1);}}R(2){if(!c){W ans=S(T[i],E-1);ans[0]*=2;ans[1]*=2;ans[1]+=i;return ans;}}for(W&v:p){v[0]++;}W A=S(p,E);A[0]--;return A;}
int main(){L M=2e17;L n;cin>>n;V<W>p(n);R(n){L a,b;cin>>a>>b;p[i]={a+M,b+M};}W Q=S(p,70);cout<<Q[0]-M<<" "<<Q[1]-M;}

Compiler output:
a.cc: In function 'std::vector<long long int> S(std::vector<std::vector<long long int> >&, long long int)':
a.cc:7:222: error: 'c' was not declared in this scope
    7 | W S(V<W>&p,L E){if(!E){return{1,0};}V<V<W>>T(2);for(W x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1){T[(x[1]+1)&1].push_back({x[0]/2,(x[1]+1)/2});}}R(2){int c=0;for(W x:T[i]){L Q=(2*x[0]+x[1])%3;c^=(Q+1);}}R(2){if(!c){W ans=S(T[i],E-1);ans[0]*=2;ans[1]*=2;ans[1]+=i;return ans;}}for(W&v:p){v[0]++;}W A=S(p,E);A[0]--;return A;}
      |                                                                                                                                                                                                                              ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
#define int long long
#define V vector
#define vel V<int>
#define rep(i,n) for(int i=0;i<n;i++)
#define mkp make_pair
#define pin pair<int,int>
pin solve(V<pin>& ab, int ex) {
	if (!ex) { return mkp(0, 0); }
	V<V<pin>> qab(2);
	int sz = ab.size();
	qab[0].reserve(sz);
	qab[1].reserve(sz);
	for (pin& x : ab) {
		qab[x.second & 1].push_back(mkp(x.first / 2, x.second / 2));
		if (x.first & 1) { qab[(x.second + 1) & 1].push_back(mkp(x.first / 2, (x.second + 1) / 2)); }
	}
	int c = 0;
	for (pin& x : qab[0]) {
		int qc = 2 * x.first + x.second + 1;
	qc = (qc & (0xffffffff)) + ((qc & (0x7fffffff00000000)) >> 32);//qc<=1ffffffff
	qc = (qc & (0xffff)) + ((qc & (0x1ffff0000)) >> 16);//qc<=2ffff
	qc = (qc & (0xff)) + ((qc & (0x3ff00)) >> 8);//qc<=3ff
	qc = (qc & (0xf)) + ((qc & (0x3f0)) >> 4);//qc<=4e
	qc = (qc & (0xf)) + ((qc & (0x7e)) >> 4);//qc<=18
	qc = (qc & 3) + ((qc & 28) >> 2);
		c ^= qc;
	}
	if (!c) {
		pin ans = solve(qab[1], ex - 1);
		ans.first=>>1; ans.second *= 2; ans.second++;
		return ans;
	}
	pin ans = solve(qab[0], ex - 1);
	c = 0;
	int d = 0;
	for (pin& x : qab[1]) {
		int w = ans.second - x.second - 1;
		if ((w & x.first) == w) { c ^= 1; }
		w++;
		if ((w & x.first) == w) { d ^= 1; }
	}
	ans.first *= 2; ans.second *= 2;
	ans.first += (c | d); ans.second -= c;
	return ans;
}
signed main() {
	cin.tie(0); ios::sync_with_stdio(false);
	long long inf = 1e17;
	int n; cin >> n;
	V<pin> ab(n);
	rep(i, n) {
		long long a, b; cin >> a >> b;
		ab[i] = { a + inf,b + inf };
	}
	pin ret = solve(ab, 59);
	cout << ret.first - inf << " " << ret.second - inf << "\n";
}


Compiler output:
a.cc: In function 'std::pair<long long int, long long int> solve(std::vector<std::pair<long long int, long long int> >&, long long int)':
a.cc:33:27: error: expected primary-expression before '>>' token
   33 |                 ans.first=>>1; ans.second *= 2; ans.second++;
      |                           ^~
Language: C++

#include<iostream>
#include<vector>
#include<cassert>
using namespace std;
#define int long long
#define V vector
#define vel V<int>
#define rep(i,n) for(int i=0;i<n;i++)
#define mkp make_pair
#define pin pair<int,int>
pin solve(V<pin>& ab, int ex) {
	if (!ex) { return mkp(0, 0); }
	V<V<pin>> qab(2);
	int sz = ab.size();
	qab[0].reserve(sz);
	qab[1].reserve(sz);
	for (pin& x : ab) {
		qab[x.second & 1].push_back(mkp(x.first / 2, x.second / 2));
		if (x.first & 1) { qab[(x.second + 1) & 1].push_back(mkp(x.first / 2, (x.second + 1) / 2)); }
	}
	int c = 0;
	for (pin& x : qab[0]) {
      	int qc=2*x.first+x.second+1;int ql=2*x+x.second;
	qc = (qc & (int)(0xffffffff)) + ((qc & (0x7fffffff00000000)) >> 32);
	qc = (qc & (int)(0xffffffff)) + ((qc & (int)(0x100000000)) >> 32);
	qc = (qc & (0xffff)) + ((qc & (int)(0xffff0000)) >> 16);
	qc = (qc & (0xffff)) + ((qc & (0x10000)) >> 16);
	qc = (qc & (0xff)) + ((qc & (0xff00)) >> 8);
	qc = (qc & (0xff)) + ((qc & (0x100)) >> 8);
	qc = (qc & (0xf)) + ((qc & (0xf0)) >> 4);
	qc = (qc & (0xf)) + ((qc & (0x10)) >> 4);
	qc = (qc & 3) + ((qc & 12) >> 2);
	qc = (qc & 3) + ((qc & 4) >> 2);
      assert(qc<=3);
      assert(qc==(ql%3)+1);
		c ^= qc;
	}
	if (!c) {
		pin ans = solve(qab[1], ex - 1);
		return ans;
	}
	pin ans = solve(qab[0], ex - 1);
	return ans;
}
signed main() {
	cin.tie(0); ios::sync_with_stdio(false);
	long long inf = 1e17;
	int n; cin >> n;
	V<pin> ab(n);
	rep(i, n) {
		long long a, b; cin >> a >> b;
		ab[i] = { a + inf,b + inf };
	}
	pin ret = solve(ab, 59);
	cout << ret.first - inf << " " << ret.second - inf << "\n";
}


Compiler output:
a.cc: In function 'std::pair<long long int, long long int> solve(std::vector<std::pair<long long int, long long int> >&, long long int)':
a.cc:23:45: error: no match for 'operator*' (operand types are 'int' and 'std::pair<long long int, long long int>')
   23 |         int qc=2*x.first+x.second+1;int ql=2*x+x.second;
      |                                            ~^~
      |                                            | |
      |                                            | std::pair<long long int, long long int>
      |                                            int
Language: C++

#include<iostream>
#include<vector>
using namespace std;
#define int long long
#define V vector
#define vel V<int>
#define rep(i,n) for(int i=0;i<n;i++)
#define mkp make_pair
#define pin pair<int,int>
pin solve(V<pin>& ab, int ex) {
	if (!ex) { return mkp(0, 0); }
	V<V<pin>> qab(2);
	int sz = ab.size();
	qab[0].reserve(sz);
	qab[1].reserve(sz);
	for (pin& x : ab) {
		qab[x.second & 1].push_back(mkp(x.first / 2, x.second / 2));
		if (x.first & 1) { qab[(x.second + 1) & 1].push_back(mkp(x.first / 2, (x.second + 1) / 2)); }
	}
	int c = 0;
	for (pin& x : qab[0]) {
      	int qc=2*x.first+x.second+1;
	qc = (qc & (int)(0xffffffff)) + ((qc & (0x7fffffff00000000)) >> 32);
	qc = (qc & (int)(0xffffffff)) + ((qc & (int)(0x100000000)) >> 32);
	qc = (qc & (0xffff)) + ((qc & (int)(0xffff0000)) >> 16);
	qc = (qc & (0xffff)) + ((qc & (0x10000)) >> 16);
	qc = (qc & (0xff)) + ((qc & (0xff00)) >> 8);
	qc = (qc & (0xff)) + ((qc & (0x100)) >> 8);
	qc = (qc & (0xf)) + ((qc & (0xf0)) >> 4);
	qc = (qc & (0xf)) + ((qc & (0x10)) >> 4);
	qc = (qc & 3) + ((qc & 12) >> 2);
	qc = (qc & 3) + ((qc & 4) >> 2);
      assert(qc>3)
		c ^= qc;
	}
	if (!c) {
		pin ans = solve(qab[1], ex - 1);
		return ans;
	}
	pin ans = solve(qab[0], ex - 1);
	return ans;
}
signed main() {
	cin.tie(0); ios::sync_with_stdio(false);
	long long inf = 1e17;
	int n; cin >> n;
	V<pin> ab(n);
	rep(i, n) {
		long long a, b; cin >> a >> b;
		ab[i] = { a + inf,b + inf };
	}
	pin ret = solve(ab, 59);
	cout << ret.first - inf << " " << ret.second - inf << "\n";
}

Compiler output:
a.cc: In function 'std::pair<long long int, long long int> solve(std::vector<std::pair<long long int, long long int> >&, long long int)':
a.cc:33:7: error: 'assert' was not declared in this scope
   33 |       assert(qc>3)
      |       ^~~~~~
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 | using namespace std;
Language: C++

#include<iostream>
#include<vector>
using namespace std;
#define int long long
#define V vector
#define vel V<int>
#define rep(i,n) for(int i=0;i<n;i++)
#define mkp make_pair
#define pin pair<int,int>
pin solve(V<pin>& ab, int ex) {
	if (!ex) { return mkp(0, 0); }
	V<V<pin>> qab(2);
	int sz = ab.size();
	qab[0].reserve(sz);
	qab[1].reserve(sz);
	for (pin& x : ab) {
		qab[x.second & 1].push_back(mkp(x.first / 2, x.second / 2));
		if (x.first & 1) { qab[(x.second + 1) & 1].push_back(mkp(x.first / 2, (x.second + 1) / 2)); }
	}
  pin ans=solve(qab[sz&1],ex-1);
  ans.first+=sz&1;
	return ans
}
signed main() {
	cin.tie(0); ios::sync_with_stdio(false);
	long long inf = 1e17;
	int n; cin >> n;
	V<pin> ab(n);
	rep(i, n) {
		long long a, b; cin >> a >> b;
		ab[i] = { a + inf,b + inf };
    }
	pin ret = solve(ab, 59);
	cout << ret.first - inf << " " << ret.second - inf << "\n";
}

Compiler output:
a.cc: In function 'std::pair<long long int, long long int> solve(std::vector<std::pair<long long int, long long int> >&, long long int)':
a.cc:22:19: error: expected ';' before '}' token
   22 |         return ans
      |                   ^
      |                   ;
   23 | }
      | ~
Language: C++

#include<iostream>
#include<vector>
using namespace std;
#define int long long
#define V vector
#define vel V<int>
#define rep(i,n) for(int i=0;i<n;i++)
#define mkp make_pair
#define pin pair<int,int>
pin solve(V<pin>& ab, int ex) {
	if (!ex) { return mkp(1,0); }
	V<V<pin>> qab(2);
  int sz=ab.size();
  qab[0].reserve(sz);
  qab[1].reserve(sz);
	for (pin &x : ab) {
		qab[x.second & 1].push_back(mkp(x.first / 2,x.second / 2));
		if (x.first & 1) { qab[(x.second + 1) & 1].push_back(mkp(x.first / 2,(x.second + 1) / 2)); }
	}
  	int c=0;
  	for (pin &x : qab[0]) {
         int qc = (2 * x.first + x.second)%3;
         c^=(qc+1);
    }
	if (!c) {
		pin ans = solve(qab[1], ex - 1);
		ans.first *= 2; ans.second *= 2; ans.second += 1;
		return ans;
	}
	pin ans = solve(qab[0], ex - 1);
   	c=0;
	for (pin &x : qab[1]) {
        int qc = (2 * x.first + x.second)%3;
        c^=(qc+1);
	}
	if (!c) {
       	ans.first *= 2; ans.second *= 2;
		return ans;
	}
  	int val=ans.first-1;
  	for(pin &x:qab[0]){
      if((val-x.second)&x.first)==(val-x.second)){ans.first^=1;}
    }
  	ans.first*=2;ans.second*=2;ans.first--;
	return ans;
}
signed main() {
	long long inf = 2e17;
	int n; scanf("%lld", &n);
	V<pin> ab(n);
	rep(i, n) {
		long long a, b; scanf("%lld", &a); scanf("%lld", &b);
		ab[i] = { a + inf,b + inf };
	}
	pin ret = solve(ab, 70);
	cout << ret.first - inf << " " << ret.second - inf << "\n";
}

Compiler output:
a.cc: In function 'std::pair<long long int, long long int> solve(std::vector<std::pair<long long int, long long int> >&, long long int)':
a.cc:42:33: error: expected primary-expression before '==' token
   42 |       if((val-x.second)&x.first)==(val-x.second)){ans.first^=1;}
      |                                 ^~
Language: C++

#include<iostream>
#include<vector>
using namespace std;
#define int long long
#define V vector
#define vel V<int>
#define rep(i,n) for(int i=0;i<n;i++)
#define mkp make_pair
#define pin pair<int,int>
pin solve(V<pin>& ab, int ex) {
	if (!ex) { return mkp(1,0); }
	V<V<pin>> qab(2);
  int sz=ab.size();
  qab[0].reserve(sz);
  qab[1].reserve(sz);
	for (pin &x : ab) {
		qab[x.second & 1].push_back(mkp(x.first / 2,x.second / 2));
		if (x.first & 1) { qab[(x.second + 1) & 1].push_back(mkp(x.first / 2,(x.second + 1) / 2)); }
	}
	rep(i, 2) {
		for (pin &x : qab[1-i]) {
			int qc = (2 * x.first + x.second)%3;
          c^=(qc+1);
		}
		if (!c) {
			pin ans = solve(qab[i], ex - 1);
			ans.first *= 2; ans.second *= 2; ans.second += i;
			return ans;
		}
	}
	for(pin &v:ab) { v.first++; }
	pin ans = solve(ab, ex); ans.first--;
	return ans;
}
signed main() {
	long long inf = 2e17;
	int n; scanf("%lld", &n);
	V<pin> ab(n);
	rep(i, n) {
		long long a, b; scanf("%lld", &a); scanf("%lld", &b);
		ab[i] = { a + inf,b + inf };
	}
	pin ret = solve(ab, 70);
	cout << ret.first - inf << " " << ret.second - inf << "\n";
}


Compiler output:
a.cc: In function 'std::pair<long long int, long long int> solve(std::vector<std::pair<long long int, long long int> >&, long long int)':
a.cc:23:11: error: 'c' was not declared in this scope; did you mean 'qc'?
   23 |           c^=(qc+1);
      |           ^
      |           qc
a.cc:25:22: error: 'c' was not declared in this scope
   25 |                 if (!c) {
      |                      ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
#define int long long
#define V vector
#define vel V<int>
#define rep(i,n) for(int i=0;i<n;i++)
#define mkp make_pair
#define pin pair<int,int>
pin solve(V<pin>& ab, int ex) {
	if (!ex) { return mkp(1,0); }
	V<V<pin>> qab(2);
  int sz=ab.size();
  qab[0].reserve(sz);
  qab[1].reserve(sz);
	for (pin x : ab) {
		qab[x.second & 1].push_back(mkp(x.first / 2,x.second / 2));
		if (x.first & 1) { qab[(x.second + 1) & 1].push_back(mkp(x.first / 2,(x.second + 1) / 2)); }
	}
  vel c(2)
	rep(i, 2) {
		for (pin x : qab[i]) {
			int qc = (2 * x.first + x.second) % 3;
          c[i]^=(qc+1);
		}
	}
	rep(i, 2) {
		if (!c[1 - i]) {
			pin ans = solve(qab[i], ex - 1);
			ans.first *= 2; ans.second *= 2; ans.second += i;
			return ans;
		}
	}
	for(pin &v:ab) { v.first++; }
	pin ans = solve(ab, ex); ans.first--;
	return ans;
}
signed main() {
	long long inf = 2e17;
	int n; scanf("%lld", &n);
	V<pin> ab(n);
	rep(i, n) {
		long long a, b; scanf("%lld", &a); scanf("%lld", &b);
		ab[i] = { a + inf,b + inf };
	}
	pin ret = solve(ab, 70);
	cout << ret.first - inf << " " << ret.second - inf << "\n";
}

Compiler output:
a.cc: In function 'std::pair<long long int, long long int> solve(std::vector<std::pair<long long int, long long int> >&, long long int)':
a.cc:7:18: error: expected ',' or ';' before 'for'
    7 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:21:9: note: in expansion of macro 'rep'
   21 |         rep(i, 2) {
      |         ^~~
a.cc:21:13: error: 'i' was not declared in this scope
   21 |         rep(i, 2) {
      |             ^
a.cc:7:30: note: in definition of macro 'rep'
    7 | #define rep(i,n) for(int i=0;i<n;i++)
      |                              ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
#define int long long
#define V vector
#define vel V<int>
#define rep(i,n) for(int i=0;i<n;i++)
#define mkp make_pair
#define pin pair<int,int>
pin solve(V<pin>& ab, int ex) {
	if (!ex) { return mkp(1,0); }
	V<V<pin>> qab(2);
  int sz=ab.size();
  qab[0].reserve(sz);
  qab[1].reserve(sz);
	for (pin x : ab) {
		qab[x.second & 1].push_back(mkp(x.first / 2,x.second / 2));
		if (x.first & 1) { qab[(x.second + 1) & 1].push_back(mkp(x.first / 2,(x.second + 1) / 2)); }
	}
  vel c(2)
	rep(i, 2) {
		for (pin x : qab[i]) {
			int qc = (2 * x.first + x.second) % 3;
          c[i]^=(qc+1);
		}
	}
	rep(i, 2) {
		if (!c[1 - i][0]) {
			pin ans = solve(qab[i], ex - 1);
			ans.first *= 2; ans.second *= 2; ans.second += i;
			return ans;
		}
	}
	for(pin &v:ab) { v.first++; }
	pin ans = solve(ab, ex); ans.first--;
	return ans;
}
signed main() {
	long long inf = 2e17;
	int n; scanf("%lld", &n);
	V<pin> ab(n);
	rep(i, n) {
		long long a, b; scanf("%lld", &a); scanf("%lld", &b);
		ab[i] = { a + inf,b + inf };
	}
	pin ret = solve(ab, 70);
	cout << ret.first - inf << " " << ret.second - inf << "\n";
}

Compiler output:
a.cc: In function 'std::pair<long long int, long long int> solve(std::vector<std::pair<long long int, long long int> >&, long long int)':
a.cc:7:18: error: expected ',' or ';' before 'for'
    7 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:21:9: note: in expansion of macro 'rep'
   21 |         rep(i, 2) {
      |         ^~~
a.cc:21:13: error: 'i' was not declared in this scope
   21 |         rep(i, 2) {
      |             ^
a.cc:7:30: note: in definition of macro 'rep'
    7 | #define rep(i,n) for(int i=0;i<n;i++)
      |                              ^
a.cc:28:30: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int}[int]' for array subscript
   28 |                 if (!c[1 - i][0]) {
      |                              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define V vector
#define L long long
#define Z V<V<L>>
#define R(n) for(L i=0;i<n;i++)
W S(Z&p,L E){if(!E){return{1,0};}V<Z>T(2);for(V<L>x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1){T[(x[1]+1)&1].push_back({x[0]/2,(x[1]+1)/2});}}Z c(4,W(3));c[3]=V<L>(3,1);R(2){for(V<L>x:T[i]){L Q=(2*x[0]+x[1])%3;c[i][Q]^=1;}}R(2){if(c[!i]==c[2]||c[!i]==c[3]){V<L>ans=S(T[i],E-1);ans[0]*=2;ans[1]*=2;ans[1]+=i;return ans;}}for(V<L>&v:p){v[0]++;}V<L>A=S(p,E);A[0]--;return A;}
int main(){L M=2e17;L n;cin>>n;V<W>p(n);R(n){L a,b;cin>>a>>b;p[i]={a+M,b+M};}W Q=S(p,70);cout<<Q[0]-M<<" "<<Q[1]-M;}

Compiler output:
a.cc:7:1: error: 'W' does not name a type
    7 | W S(Z&p,L E){if(!E){return{1,0};}V<Z>T(2);for(V<L>x:p){T[x[1]&1].push_back({x[0]/2,x[1]/2});if(x[0]&1){T[(x[1]+1)&1].push_back({x[0]/2,(x[1]+1)/2});}}Z c(4,W(3));c[3]=V<L>(3,1);R(2){for(V<L>x:T[i]){L Q=(2*x[0]+x[1])%3;c[i][Q]^=1;}}R(2){if(c[!i]==c[2]||c[!i]==c[3]){V<L>ans=S(T[i],E-1);ans[0]*=2;ans[1]*=2;ans[1]+=i;return ans;}}for(V<L>&v:p){v[0]++;}V<L>A=S(p,E);A[0]--;return A;}
      | ^
a.cc: In function 'int main()':
a.cc:8:34: error: 'W' was not declared in this scope
    8 | int main(){L M=2e17;L n;cin>>n;V<W>p(n);R(n){L a,b;cin>>a>>b;p[i]={a+M,b+M};}W Q=S(p,70);cout<<Q[0]-M<<" "<<Q[1]-M;}
      |                                  ^
a.cc:8:35: error: template argument 1 is invalid
    8 | int main(){L M=2e17;L n;cin>>n;V<W>p(n);R(n){L a,b;cin>>a>>b;p[i]={a+M,b+M};}W Q=S(p,70);cout<<Q[0]-M<<" "<<Q[1]-M;}
      |                                   ^
a.cc:8:35: error: template argument 2 is invalid
a.cc:8:63: error: invalid types 'int[long long int]' for array subscript
    8 | int main(){L M=2e17;L n;cin>>n;V<W>p(n);R(n){L a,b;cin>>a>>b;p[i]={a+M,b+M};}W Q=S(p,70);cout<<Q[0]-M<<" "<<Q[1]-M;}
      |                                                               ^
a.cc:8:79: error: expected ';' before 'Q'
    8 | int main(){L M=2e17;L n;cin>>n;V<W>p(n);R(n){L a,b;cin>>a>>b;p[i]={a+M,b+M};}W Q=S(p,70);cout<<Q[0]-M<<" "<<Q[1]-M;}
      |                                                                               ^~
      |                                                                               ;
a.cc:8:96: error: 'Q' was not declared in this scope
    8 | int main(){L M=2e17;L n;cin>>n;V<W>p(n);R(n){L a,b;cin>>a>>b;p[i]={a+M,b+M};}W Q=S(p,70);cout<<Q[0]-M<<" "<<Q[1]-M;}
      |                                                                                                ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
#define int long long
#define V vector
#define vel V<int>
#define rep(i,n) for(int i=0;i<n;i++)
#define mkp make_pair
#define pin pair<int,int>
pin solve(V<pin>& ab, int ex) {
	if (!ex) { return mkp(1, 0); }
	V<V<pin>> qab(2);
	for (pin x : ab) {
		qab[x.second & 1].push_back(mkp(x.first / 2, x.second / 2));
		if (x.first & 1) { qab[(x.second + 1) & 1].push_back(mkp(x.first / 2, (x.second + 1) / 2)); }
	}
	V<vel> c(2, vel(2));
	rep(i, 2) {
		for (pin x : qab[i]) {
			int qc = (2 * x.first + x.second) % 3;
			if ((qc + 1) % 2) { c[i][0] ^= 1; }
			if (qc) { c[i][1] ^= 1; }
		}
	}
	rep(i, 2) {
		if (!c[1 - i][0] && !c[1 - i][1]) {
			pin ans = solve(qab[i], ex - 1);
			ans.first *= 2; ans.second *= 2; ans.second += i;
			return ans;
		}
	}
	for (pin& v : ab) { v.first++; }
	pin ans = solve(ab, ex); ans.first--;
	return ans;
}
signed main() {
	long long inf = 2e17;
	int n; scanf("%lld",&n)
	V<pin> ab(n);
	rep(i, n) {
		long long a, b; scanf("%lld,%lld",&a,&b);
		ab[i] = { a + inf,b + inf };
	}
	pin ret = solve(ab, 70);
	cout << ret.first - inf << " " << ret.second - inf;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:32: error: expected ';' before 'vector'
   38 |         int n; scanf("%lld",&n)
      |                                ^
      |                                ;
a.cc:42:17: error: 'ab' was not declared in this scope; did you mean 'b'?
   42 |                 ab[i] = { a + inf,b + inf };
      |                 ^~
      |                 b
a.cc:44:25: error: 'ab' was not declared in this scope; did you mean 'abs'?
   44 |         pin ret = solve(ab, 70);
      |                         ^~
      |                         abs
Language: C++

#include<iostream>
#include<vector>
using namespace std;
#define int long long
#define V vector
#define vel V<int>
#define rep(i,n) for(int i=0;i<n;i++)
#define mkp make_pair
#define pin pair<int,int>
pin solve(V<pin>& ab, int ex) {
	if (!ex) { return mkp(1,0); }
	V<V<pin>> qab(2);
	for (pin x : ab) {
		qab[x.second & 1].push_back(mkp(x.first / 2,x.second / 2));
		if (x.first & 1) { qab[(x.second + 1) & 1].push_back(mkp(x.first / 2,(x.second + 1) / 2)); }
	}
	V<vel> c(2, vel(2));
	rep(i, 2) {
		for (pin x : qab[i]) {
			int qc = (2 * x.first + x.second) % 3;
			if ((qc+1)%2) { c[i][0] ^= 1; }
			if (qc) { c[i][1] ^= 1; }
		}
	}
	rep(i, 2) {
		if (c[1 - i][0]==0&&c[1-i][1]==0) {
			pin ans = solve(qab[i], ex - 1);
			ans.first *= 2; ans.second *= 2; ans.second += i;
			return ans;
		}
	}
	for(pin &v:ab) { v.first++; }
	pin ans = solve(ab, ex); ans.first--;
	return ans;
}
int main() {
	long long inf = 2e17;
	int n; cin >> n;
	V<pin> ab(n);
	rep(i, n) {
		long long a, b; cin >> a >> b;
		ab[i] = { a + inf,b + inf };
	}
	pin ret = solve(ab, 70);
	cout << ret.first - inf << " " << ret.second - inf << "\n";
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int N=105;
int a[N],n,m,f[N];
int cmp(int x,int y){
	return a[x]<a[y];
}
int main(){
	scanf("%d%d",&n,&m);int cnt=0,Min=1e9;
	for (int i=1;i<=n;i++)scanf("%d",&a[i]),Min=min(a[i],Min);
	for (int i=1;i<=n;i++)f[i]=i,cnt+=a[i]==Min;
	sort(f+1,f+n+1);
	if (Min*2<=m||((M-1)*2<=m&&cnt==1))puts("-1");
	else {
		printf("%d\n",n*Min);
		int k;
		for (int i=1;i<=n;i++)
			if (a[i]==Min){k=i;break;}
		for (int i=1;i<=Min;i++)
			for (int j=1;j<=n;j++)
				printf("%d ",f[j]);
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: 'M' was not declared in this scope
   13 |         if (Min*2<=m||((M-1)*2<=m&&cnt==1))puts("-1");
      |                         ^
Language: C++

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

int main() {
  ll a,b;
  cin>>a>>b;
  if(b%a==0){
    cout<<a+<<endl;
  }
  else{
    cout<<b-a<<endl;
  }
      
    
  
  return 0;
}
                             
    


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected primary-expression before '<<' token
    9 |     cout<<a+<<endl;
      |             ^~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int gcd(int a,int b){
    if(a == b)
        return a;
    else if(a>b)
        return gcd(a-b,b);
    else
    {
        return gcd(a,b-a);
    }
    
    
}

int main()
{
    int N;
    cin >> N;
    vector<int> A(N);
    for(int i=0; i<N; i++)
        cin >> A.at(i);
        if(i > 0)
        A.at(i) = gcd(A.at(i),A.at(i-1));
    }

    cout << A.at(N-1) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:12: error: 'i' was not declared in this scope
   25 |         if(i > 0)
      |            ^
a.cc: At global scope:
a.cc:29:5: error: 'cout' does not name a type
   29 |     cout << A.at(N-1) << endl;
      |     ^~~~
a.cc:30:5: error: expected unqualified-id before 'return'
   30 |     return 0;
      |     ^~~~~~
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
#pragma GCC optimize("Ofast")
//*********************************************DO IT NOW****************************************************************
#include<bits/stdc++.h> 
#include<random>
#define int long long   
#define pp pair<int,int> 
#define ss second 
#define ff first 
#define pb push_back
#define mod 1000000007
#define pi 3.14159265359
#define mk(arr,n,type)  type *arr=new type[n];
#define sl s1.length();
#define yes cout<< "YES"<<endl
#define no  cout<< "NO"<<endl
#define all(v) (v).begin(),(v).end()
#define s(v)   sort(v,v+n)
#define  mt mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
#define read(a,n) for(int i=0;i<n;i++)cin>>a[i]
#define print(a,n) for(int i=0;i<n;i++)cout<<a[i]<<" "
using namespace std;
//**********************************************DO IT NOW***************************************************************
void fastio()
{  
  #ifndef ONLINE_JUDGE
  freopen("INPUT.txt","r",stdin);
  freopen("OUTPUT.txt","w",stdout); 
  #endif
  ios_base :: sync_with_stdio(false); 
  cin.tie(NULL) ; 
  cout.tie(NULL);
}
int dp[101][1001],ans1=1e9,dp1[1000001];
int num[10];
int a[1000000];
int main()
{   
    fastio();
    int t=1;
   // cin>>t;
    while(t--)
    {
        int a,b;
        cin>>a>>b;
        if(b%a==0)
        cout<<a+b;
        else
        cout<<b-a;
    }
    
}
// 🍪 🍪 🍪


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include <iostream>
#include <sstream>
#include <string>
#include <cmath>
#include <array>
#include <vector>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <utility>
#include <iomanip>
#include <numeric>
#include <climits>
#include <algorithm>
#include <cstdint>
using namespace std;

int main()
{
    int a, b;
    cin >> a >> b;
    if (b % a == 0)
        cout << a+b;
    else cout << b-a;
}#include <iostream>
#include <sstream>
#include <string>
#include <cmath>
#include <array>
#include <vector>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <utility>
#include <iomanip>
#include <numeric>
#include <climits>
#include <algorithm>
#include <cstdint>
using namespace std;

int main()
{
    int a, b;
    cin >> a >> b;
    if (b % a == 0)
        cout << a+b;
    else cout << b-a;
}

Compiler output:
a.cc:26:2: error: stray '#' in program
   26 | }#include <iostream>
      |  ^
a.cc:26:3: error: 'include' does not name a type
   26 | }#include <iostream>
      |   ^~~~~~~
a.cc:44:5: error: redefinition of 'int main()'
   44 | int main()
      |     ^~~~
a.cc:19:5: note: 'int main()' previously defined here
   19 | int main()
      |     ^~~~
Language: C++

// <------------- Template -----------------------> //

/*
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization("unroll-loops")
*/

#pragma optimization_level 3   									//Comment optimisations for an interatcive problem - use endl
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")

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

#define fastio 			ios::sync_with_stdio(0);	cin.tie(0); cout.tie(0);  cout<<fixed;  cout<<setprecision(12);	
#define randomINT 		mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());
#define	newl 			cout<<"\n"
#define DISP(as)		for(auto it : as) cout<<it<<" ";newl;
#define all(x)         	(x).begin(),(x).end()
#define mset(x,val)    	memset(x,val,sizeof(x))
#define newl           	cout<<"\n"
#define pb             	push_back
#define mp             	make_pair
#define f 				first
#define s 				second
#define dline          cerr<<"///REACHED///\n";
#define deb1(x)        cerr<<#x<<" = "<<x<<'\n';
#define deb2(x,y)      cerr<<'['<<#x<<','<<#y<<"] = "<<'['<<x<<','<<y<<']'<<'\n';
#define deb3(x,y,z)    cerr<<'['<<#x<<','<<#y<<','<<#z<<"] = "<<'['<<x<<','<<y<<','<<z<<']'<<'\n';

typedef long long 				ll;
typedef long double 			ld;
typedef vector<ll> 				vll;
typedef pair<ll ,ll> 			pll;
typedef pair<ld,ld> 			pld;
typedef unordered_map<ll,ll> 	um;
typedef vector<pll> 			vpll;

const ll 	MAX5 	= 	1e+5+7;
const ll 	MAX7 	= 	1e+7+7;
const ll 	MAXN 	= 	MAX7;
const ll   	INF   	=  	0x7f7f7f7f7f7f7f7f;
const int  	INFi 	=  	0x7f7f7f7f;
const ll 	MOD		=  	1e+9+7;
const ll 	N 		= 	2*1e6;

vll adj[N];ll visit[N]={};
int dx8[]={0,1,1,1,0,-1,-1,-1}, dy8[]={1,1,0,-1,-1,-1,0,1};
int dx4[]={0,1,0,-1}, dy4[]={1,0,-1,0};

// <------------- Declare Variables Here ------------> //

ll T=1;
ll n,x,y,m,k;
string s,t;
vll a,b,p,ans;
// <------------- Implement Functions Here ----------> //


// <------------- Start of main() -------------------> //

void MAIN() {
	cin >>n>>m;
	ll x= (m%n==0)?(m+n):(m-n);
	cout<<x;
}

int main() {
	fastio;randomINT;
	//cin>>T;
	while(T--) {
		MAIN();
	}
	return 0;
}



Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:13:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::__cxx11::basic_string<char>::_Alloc_hider::~_Alloc_hider()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = char]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:186:14: note: called from here
  186 |       struct _Alloc_hider : allocator_type // TODO check __is_final
      |              ^~~~~~~~~~~~
Language: C++

#include <stdio.h>

int main (){
	int A, B;
	scanf ("%d %d", &A, &B);
	printf ("%d\n", (B%A == 0) ? A + B : B - A)
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:52: error: expected ';' before 'return'
    6 |         printf ("%d\n", (B%A == 0) ? A + B : B - A)
      |                                                    ^
      |                                                    ;
    7 | 
    8 |         return 0;
      |         ~~~~~~
Language: C++

#include <stdio.h>

int main() {
    int X,Y;
    scanf("%d%d",&X,&Y);
    if(B%A==0){
        printf("%d",Y+X);

    }else{
        printf("%d",Y-X);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'B' was not declared in this scope
    6 |     if(B%A==0){
      |        ^
a.cc:6:10: error: 'A' was not declared in this scope
    6 |     if(B%A==0){
      |          ^
Language: C

#include <stdio.h>

int main(){
	int A, B;
	scanf("%d %d", &A, &B);
	if(a % b == 0){
		printf("&d", A + B);
	}
	else{
		printf("&d", B - A);
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:12: error: 'a' undeclared (first use in this function)
    6 |         if(a % b == 0){
      |            ^
main.c:6:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:16: error: 'b' undeclared (first use in this function)
    6 |         if(a % b == 0){
      |                ^
Language: C++

#include <stdio.h>
int main(){
	//A = *2
	//B = +k
	//N test cases
	int N, k;	//N divisor B	
	scanf("%d %d", &N, &k);
	
	if(b%a==0){	//kalo b bisa dibagi a, jumlahkan
		printf("%d", a+b);
	}
	else {		//kalo ga kurangin
		printf("%d", b-a);
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'b' was not declared in this scope
    9 |         if(b%a==0){     //kalo b bisa dibagi a, jumlahkan
      |            ^
a.cc:9:14: error: 'a' was not declared in this scope
    9 |         if(b%a==0){     //kalo b bisa dibagi a, jumlahkan
      |              ^
Language: C++

#include <stio.h>
int main(){
	//A = *2
	//B = +k
	//N test cases
	int N, k;	//N divisor B	
	scanf("%d %d", &N, &k);
	
	if(b%a==0){	//kalo b bisa dibagi a, jumlahkan
		printf("%d", a+b);
	}
	else {		//kalo ga kurangin
		printf("%d", b-a);
	}
	
	return 0;
}

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

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

int main() {
  string s;
  cin >> s;

  int m = stoi(s.substr(5,2))

  if (m < 5)
  cout << "Heisei" << endl;
  else
  cout << "TBD" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'if'
   10 |   if (m < 5)
      |   ^~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else
      |   ^~~~
Language: C++

#include <stdio.h>

int main(){
int A, B ;
scanf("%d %d", &A, &B) ;
if(B%A=0){
    printf("%d", A+B) ;
}
else {
    printf("%d", A-B) ;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: lvalue required as left operand of assignment
    6 | if(B%A=0){
      |    ~^~
Language: Java

import java.util.*;

public class Main{
	public static main(String args[]) {
    	Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        if (B % A == 0) {
          System.out.println(A + B);
        } else {
          System.out.println(B - A);
        }
    }
}

Compiler output:
Main.java:4: error: invalid method declaration; return type required
	public static main(String args[]) {
	              ^
1 error
Language: Java

import java.util.*;

public class Main{
	public static main(String args[]) {
    	Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        if (B % A == 0) {
          out.println(A + B);
        } else {
          out.println(B - A);
        }
    }
}

Compiler output:
Main.java:4: error: invalid method declaration; return type required
	public static main(String args[]) {
	              ^
1 error
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <cstdio>   // popen, pclose, fgets
#include <cstdlib> 
using namespace std;
#define rep0(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
using vi = vector<int>; // intの1次元の型に vi という別名をつける
using vvi = vector<vi>; // intの2次元の型に vvi という別名をつける
using vvvi = vector<vvi>;
using ll = long long; //long longをllだけにした
using vll = vector<ll>;
using vvll = vector<vll>;
using vvvll =vector<vvll>;
const double PI=3.14159265358979323846;
//小数点以下を指定したい時　　→→→→  cout << fixed << setprecision();
//int→string
//string→int   int num = atoi(numStr.c_str());

int main() {
    int a,b,ans;cin>>a>>b;
    if(b%a=0){
        ans=a+b;
    }
    else{
        ans=b-a;
    }
    cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: error: lvalue required as left operand of assignment
   23 |     if(b%a=0){
      |        ~^~
Language: C

#include "bits/stdc++.h"
using namespace std;
#define rep(i,n)for(int i=0;i<(int)(n);i++)
#define PI 3.141592653589793
//vector < vector<int>>a(0, vector<int>(0));二次元配列宣言


int main()
{
	int a, b;
	int ans;
	cin >> a >> b;
	if (b % a == 0)
		ans = a + b;
	else
		ans = b - a;
	cout << ans << endl;
}

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>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
const double PI = 3.14159265358979323846;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   if(a == 1) ans = b - a;
      |              ^~~
      |              abs
a.cc:12:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     if(b % a == 0) ans = a + b;
      |                    ^~~
      |                    abs
a.cc:13:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     else ans = b - a;
      |          ^~~
      |          abs
a.cc:15:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

int main() {
  if(B % A == 0) {
    cout << A + B << endl;
  }else{
    cout << B - A << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'B' was not declared in this scope
    5 |   if(B % A == 0) {
      |      ^
a.cc:5:10: error: 'A' was not declared in this scope
    5 |   if(B % A == 0) {
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#include <math.h>
#include <iomanip>
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
const int INF=1001001001;
vector<pair<int64_t,int64_t>>prime_factorize(int64_t x){
  vector<pair<int64_t,int64_t>>p;
  for(int64_t i=2;i*i<=x;i++){
    int cnt=0;
    if(x%i==0){
    while(x%i==0){cnt++;x/=i;}
    p.push_back(make_pair(i,cnt));
    }
  }
  if(x!=1){p.push_back(make_pair(x,1));}
  return p; 
}

int main() {
  int A,B;
  cin>>A>>B;
  if(A%B==0){cout<<A+B<<endl;}
  else{cout<<B=A<<endl;}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   25 |   else{cout<<B=A<<endl;}
      |                ~^~~~~~
Language: C++

#include<string>
#include<algorithm>
#include<vector>
#include<set>
#include<iomanip>
#define rep(i, a, n) for(int i = a; i < n; i++)
using namespace std;
int main(){
  int s, t;
  cin >> s >> t;
  if(t % s == 0) cout << s + t << "\n";
  else {
    cout << t - s << "\n";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin >> s >> t;
      |   ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include<iomanip>
  +++ |+#include <iostream>
    6 | #define rep(i, a, n) for(int i = a; i < n; i++)
a.cc:11:18: error: 'cout' was not declared in this scope
   11 |   if(t % s == 0) cout << s + t << "\n";
      |                  ^~~~
a.cc:11:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << t - s << "\n";
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'