Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
????for(i=0;i<6;i++){
????????cin>>q>>c;
????????w[q]++;
????????w[c]++;
????????if(q>c)m[q][c]++;
????????else m[c][q]++;
????}
????for(i=0;i<1001;i++){
????????if(w[i])o++;
????????????for(j=0;j<1001;j++){
????????????????if(m[i][j])for(o=0;o<m[i][j]/2){e[z][0]=i;e[z++][1]=j;}
??????????????}
????????}
????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
????if(k)cout<<"yes"<<endl;
????else cout<<"no"<<endl;
????return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
    4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
      | ^
a.cc:4:2: error: expected primary-expression before '?' token
    4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
      |  ^
a.cc:4:3: error: expected primary-expression before '?' token
    4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
      |   ^
a.cc:4:4: error: expected primary-expression before '?' token
    4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
      |    ^
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
      |     ^~~
a.cc:5:1: error: expected primary-expression before '?' token
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      | ^
a.cc:5:2: error: expected primary-expression before '?' token
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |  ^
a.cc:5:3: error: expected primary-expression before '?' token
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |   ^
a.cc:5:4: error: expected primary-expression before '?' token
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |    ^
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |     ^~~
a.cc:5:20: error: expected primary-expression before ',' token
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |                    ^
a.cc:5:21: error: 'b' was not declared in this scope
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |                     ^
a.cc:5:33: error: 'w' was not declared in this scope
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |                                 ^
a.cc:5:45: error: 'e' was not declared in this scope
    5 | ????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
      |                                             ^
a.cc:6:1: error: expected primary-expression before '?' token
    6 | ????for(i=0;i<6;i++){
      | ^
a.cc:6:2: error: expected primary-expression before '?' token
    6 | ????for(i=0;i<6;i++){
      |  ^
a.cc:6:3: error: expected primary-expression before '?' token
    6 | ????for(i=0;i<6;i++){
      |   ^
a.cc:6:4: error: expected primary-expression before '?' token
    6 | ????for(i=0;i<6;i++){
      |    ^
a.cc:6:5: error: expected primary-expression before 'for'
    6 | ????for(i=0;i<6;i++){
      |     ^~~
a.cc:6:5: error: expected ':' before 'for'
    6 | ????for(i=0;i<6;i++){
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'for'
    6 | ????for(i=0;i<6;i++){
      |     ^~~
a.cc:6:5: error: expected ':' before 'for'
    6 | ????for(i=0;i<6;i++){
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'for'
    6 | ????for(i=0;i<6;i++){
      |     ^~~
a.cc:6:5: error: expected ':' before 'for'
    6 | ????for(i=0;i<6;i++){
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'for'
    6 | ????for(i=0;i<6;i++){
      |     ^~~
a.cc:6:5: error: expected ':' before 'for'
    6 | ????for(i=0;i<6;i++){
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'for'
    6 | ????for(i=0;i<6;i++){
      |     ^~~
a.cc:6:13: error: 'i' was not declared in this scope
    6 | ????for(i=0;i<6;i++){
      |             ^
a.cc:13:1: error: expected primary-expression before '?' token
   13 | ????for(i=0;i<1001;i++){
      | ^
a.cc:13:2: error: expected primary-expression before '?' token
   13 | ????for(i=0;i<1001;i++){
      |  ^
a.cc:13:3: error: expected primary-expression before '?' token
   13 | ????for(i=0;i<1001;i++){
      |   ^
a.cc:13:4: error: expected primary-expression before '?' token
   13 | ????for(i=0;i<1001;i++){
      |    ^
a.cc:13:5: error: expected primary-expression before 'for'
   13 | ????for(i=0;i<1001;i++){
      |     ^~~
a.cc:13:5: error: expected ':' before 'for'
   13 | ????for(i=0;i<1001;i++){
      |     ^~~
      |     :
a.cc:13:5: error: expected primary-expression before 'for'
   13 | ????for(i=0;i<1001;i++){
      |     ^~~
a.cc:13:5: error: expected ':' before 'for'
   13 | ????for(i=0;i<1001;i++){
      |     ^~~
      |     :
a.cc:13:5: error: expected primary-expression before 'for'
   13 | ????for(i=0;i<1001;i++){
      |     ^~~
a.cc:13:5: error: expected ':' before 'for'
   13 | ????for(i=0;i<1001;i++){
      |     ^~~
      |     :
a.cc:13:5: error: expected primary-expression before 'for'
   13 | ????for(i=0;i<1001;i++){
      |     ^~~
a.cc:13:5: error: expected ':' before 'for'
   13 | ????for(i=0;i<1001;i++){
      |     ^~~
      |     :
a.cc:13:5: error: expected primary-expression before 'for'
   13 | ????for(i=0;i<1001;i++){
      |     ^~~
a.cc:19:1: error: expected primary-expression before '?' token
   19 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      | ^
a.cc:19:2: error: expected primary-expression before '?' token
   19 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |  ^
a.cc:19:3: error: expected primary-expression before '?' token
   19 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |   ^
a.cc:19:4: error: expected primary-expression before '?' token
   19 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |    ^
a.cc:19:5: error: expected primary-expression before 'if'
   19 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
a.cc:19:5: error: expected ':' before 'if'
   19 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
      |     :
a.cc:19:5: error: expected primary-expression before 'if'
   19 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
a.cc:19:5: error: expected ':' before 'if'
   19 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
      |     :
a.cc:19:5: error: expected primary-expression before 'if'
   19 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
a.cc:19:5: error: expected ':' before 'if'
   19 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
      |     :
a.cc:19:5: error: expected primary-expression before 'if'
   19 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
a.cc:19:5: error: expected ':' before 'if'
   19 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
      |     :
a.cc:19:5: error: expected primary-expression before 'if'
   19 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
a.cc:20:1: error: expected primary-expression before '?' token
   20 | ????if(k)cout<<"yes"<<endl;
      | ^
a.cc:20:2: error: expected primary-expression before '?' token
   20 | ????if(k)cout<<"yes"<<endl;
      |  ^
a.cc:20:3: error: expected primary-expression before '?' token
   20 | ????if(k)cout<<"yes"<<endl;
      |   ^
a.cc:20:4: error: expected primary-expression before '?' token
   20 | ????if(k)cout<<"yes"<<endl;
      |    ^
a.cc:20:5: error: expected primary-expression before 'if'
   20 | ????if(k)cout<<"yes"<<endl;
      |     ^~
a.cc:20:5: error: expected ':' before 'if'
   20 | ????if(k)cout<<"yes"<<endl;
      |     ^~
      |     :
a.cc:20:5: error: expected primary-expression before 'if'
   20 | ????if(k)cout<<"yes"<<endl;
      |     ^~
a.cc:20:5: error: expected ':' before 'if'
   20 | ????if(k)cout<<"yes"<<endl;
      |     ^~
      |     :
a.cc:20:5: error: expected primary-expression before 'if'
   20 | ????if(k)cout<<"yes"<<endl;
      |     ^~
a.cc:20:5: error: expected ':' before 'if'
   20 | ????if(k)cout<<"yes"<<endl;
      |     ^~
      |     :
a.cc:20:5: error: expected primary-expression before 'if'
   20 | ????if(k)cout<<"yes"<<endl;
      |     ^~
a.cc:20:5: error: expected ':' before 'if'
   20 | ????if(k)cout<<"yes"<<endl;
      |     ^~
      |     :
a.cc:20:5: error: expected primary-expres