Language: C++


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

int main(){
int a[2],i = 1,keta;
cin >> a[0];
int n[a[0]],m[a[0]];
while (a[0] >= i){
	cin >> n[i] >> m[i];
	i++;
}
i = 1;
cin >> a[1];
int o[a[1]],p[a[1]];
while (a[1] >= i){
	cin >> o[i] >> p[i];
	i++;
}
i = 1;
int ii,c,aa,iii;
aa = a[0] + a[1];
int ans[aa][2];
while(aa >= i){
	ii = 1;
	if(a[0] >= i){//n,m
		while(aa >= ii){
			if(a[0] >= ii){//n,m n,m
				if(n[i] == n[ii] and m[i] == n[ii] and i != ii){
					iii = 1;
					while(a[0] >= iii){
						if(iii > ii){
							n[iii - 1] = n[iii];
							m[iii - 1] = m[iii];
							aa = aa - 1;
						}
						iii++;
					}
				}
			}else{//n,m o,p
				//cout << n[i] << " " << o[ii - a[0]] << " " << m[i] << " " << p[ii - a[0]] << endl;
				if(n[i] == o[ii - a[0]] and m[i] == p[ii - a[0]] and i != ii){
					
					iii = 1;
					while(a[1] >= iii){
						//cout << "OK";
						if(iii > ii - a[0]){
							o[iii - 1] = o[iii];
							p[iii - 1] = p[iii];
							aa = aa - 1;
						}
						iii++;
					}
				}
			}
			ii++;
		}
	}else{//o,p o,p
		while(aa >= ii){
			if(a[0] <= ii){//o,p o,p
				if(o[i - a[0]] == o[ii - a[0]] and p[i - a[0]] == p[ii - a[0]] and i - a[0] != ii - a[0]){
					iii = 1;
					while(a[1] >= iii){
						if(iii > ii){
							o[iii - 1] = o[iii];
							o[iii - 1] = p[iii];
							aa = aa - 1;
						}
						iii++;
					}
				}
			}
			ii++;
		}

	}
	i++;	
}
/*i = 1;
cout << aa << endl;
while(aa >= i){
	keta = 0;
	if(a[0] >= i){
		cout << "[N][" << i << "]";
		if(m[i] < 10){
		cout << n[i] << ":" << keta << m[i] << "b ";
		}else{
 		cout << n[i] << ":" << m[i] << "b ";
 		}
 	}else{
 		cout << "[O][" << i - a[0] << "]";		
		if(p[i - a[0]] < 10){
		cout << o[i - a[0]] << ":" << keta << p[i - a[0]] << "c ";
		}else{
 		cout << o[i - a[0]] << ":" << p[i - a[1]] << "c ";
 		} 		
 	}
 i++;
}*/
i = 1;
/*2 0 0 21 0
3 7 30 21 0 23 7*/
while(aa >= i){
	ii = 1;
	c = 0;
	if(a[0] >= i){
		while(aa >= ii){
			if(a[0] >= ii){
				if(n[i] > n[ii]){
					c++;
				}else if(m[i] > m[ii]){
					c++;
				}
			}else{
				if(n[i] > o[ii - a[0]]){
					c++;
				}else if(m[i] > p[ii - a[0]]){
					c++;
				}
			}
		ii++;
		}
	ans[c][0] = n[i];
	ans[c][1] = m[i];
	//cout << c << "a" << endl;
	}else{
		while(aa >= ii){
			if(a[0] >= ii){
				if(o[i  - a[0]] > n[ii]){
					c++;
					//cout << c << "ka" << endl;
				}else if(o[i  - a[0]] > n[ii] and p[i  - a[0]] > m[ii]){
					c++;
					//cout << c << "kb" << endl;
				}
			}else{
				if(o[i  - a[0]] > o[ii  - a[0]]){
					c++;
					//cout << c << "kc" << endl;
				}else if(o[i  - a[0]] > o[ii  - a[0]] and p[i  - a[0]] > p[ii  - a[0]]){
					c++;
					//cout << c << "ke" << endl;
				}
			}
		ii++;
		}
	//cout << c << "b" << endl;
	ans[c][0] = o[i - a[0]];
	ans[c][1] = p[i - a[0]];
	}

i++;
}
i = 0;
while(aa > i){
	keta = 0;
	if(ans[i][1] < 10){
	cout << ans[i][0] << ":" << keta << ans[i][1] << " ";
	}else{
 	cout << ans[i][0] << ":" << ans[i][1] << " ";
 	}
 i++;
}
???

Compiler output:
a.cc: In function 'int main()':
a.cc:167:1: error: expected primary-expression before '?' token
  167 | ???
      | ^
a.cc:167:2: error: expected primary-expression before '?' token
  167 | ???
      |  ^
a.cc:167:3: error: expected primary-expression before '?' token
  167 | ???
      |   ^
a.cc:167:4: error: expected primary-expression at end of input
  167 | ???
      |    ^
a.cc:167:4: error: expected ':' at end of input
  167 | ???
      |    ^
      |    :
a.cc:167:4: error: expected primary-expression at end of input
a.cc:167:4: error: expected ':' at end of input
  167 | ???
      |    ^
      |    :
a.cc:167:4: error: expected primary-expression at end of input
a.cc:167:4: error: expected ':' at end of input
  167 | ???
      |    ^
      |    :
a.cc:167:4: error: expected primary-expression at end of input
a.cc:167:4: error: expected '}' at end of input
a.cc:8:11: note: to match this '{'
    8 | int main(){
      |           ^