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;
????????if(q>c)m[q][c]++;
????????else m[c][q]++;
????}
????for(i=0;i<1001;i++){
????????????for(j=0;j<1001;j++){
????????????????if(m[i][j]){
????????????if(m[i][j]==4){e[z][0]=i;e[z++][1]=j;e[z][0]=i;e[z++][1]=j;}
????????????else if(m[i][j]==6){e[z][0]=i;e[z++][1]=j;e[z][0]=i;e[z++][1]=j;e[z][0]=i;e[z++][1]=j;}
????????????else{ 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:11:1: error: expected primary-expression before '?' token
   11 | ????for(i=0;i<1001;i++){
      | ^
a.cc:11:2: error: expected primary-expression before '?' token
   11 | ????for(i=0;i<1001;i++){
      |  ^
a.cc:11:3: error: expected primary-expression before '?' token
   11 | ????for(i=0;i<1001;i++){
      |   ^
a.cc:11:4: error: expected primary-expression before '?' token
   11 | ????for(i=0;i<1001;i++){
      |    ^
a.cc:11:5: error: expected primary-expression before 'for'
   11 | ????for(i=0;i<1001;i++){
      |     ^~~
a.cc:11:5: error: expected ':' before 'for'
   11 | ????for(i=0;i<1001;i++){
      |     ^~~
      |     :
a.cc:11:5: error: expected primary-expression before 'for'
   11 | ????for(i=0;i<1001;i++){
      |     ^~~
a.cc:11:5: error: expected ':' before 'for'
   11 | ????for(i=0;i<1001;i++){
      |     ^~~
      |     :
a.cc:11:5: error: expected primary-expression before 'for'
   11 | ????for(i=0;i<1001;i++){
      |     ^~~
a.cc:11:5: error: expected ':' before 'for'
   11 | ????for(i=0;i<1001;i++){
      |     ^~~
      |     :
a.cc:11:5: error: expected primary-expression before 'for'
   11 | ????for(i=0;i<1001;i++){
      |     ^~~
a.cc:11:5: error: expected ':' before 'for'
   11 | ????for(i=0;i<1001;i++){
      |     ^~~
      |     :
a.cc:11:5: error: expected primary-expression before 'for'
   11 | ????for(i=0;i<1001;i++){
      |     ^~~
a.cc:20:1: error: expected primary-expression before '?' token
   20 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      | ^
a.cc:20:2: error: expected primary-expression before '?' token
   20 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |  ^
a.cc:20:3: error: expected primary-expression before '?' token
   20 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |   ^
a.cc:20:4: error: expected primary-expression before '?' token
   20 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |    ^
a.cc:20:5: error: expected primary-expression before 'if'
   20 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
a.cc:20:5: error: expected ':' before 'if'
   20 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
      |     :
a.cc:20:5: error: expected primary-expression before 'if'
   20 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
a.cc:20:5: error: expected ':' before 'if'
   20 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
      |     :
a.cc:20:5: error: expected primary-expression before 'if'
   20 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
a.cc:20:5: error: expected ':' before 'if'
   20 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
      |     :
a.cc:20:5: error: expected primary-expression before 'if'
   20 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
a.cc:20:5: error: expected ':' before 'if'
   20 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
      |     :
a.cc:20:5: error: expected primary-expression before 'if'
   20 | ????if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |     ^~
a.cc:21:1: error: expected primary-expression before '?' token
   21 | ????if(k)cout<<"yes"<<endl;
      | ^
a.cc:21:2: error: expected primary-expression before '?' token
   21 | ????if(k)cout<<"yes"<<endl;
      |  ^
a.cc:21:3: error: expected primary-expression before '?' token
   21 | ????if(k)cout<<"yes"<<endl;
      |   ^
a.cc:21:4: error: expected primary-expression before '?' token
   21 | ????if(k)cout<<"yes"<<endl;
      |    ^
a.cc:21:5: error: expected primary-expression before 'if'
   21 | ????if(k)cout<<"yes"<<endl;
      |     ^~
a.cc:21:5: error: expected ':' before 'if'
   21 | ????if(k)cout<<"yes"<<endl;
      |     ^~
      |     :
a.cc:21:5: error: expected primary-expression before 'if'
   21 | ????if(k)cout<<"yes"<<endl;
      |     ^~
a.cc:21:5: error: expected ':' before 'if'
   21 | ????if(k)cout<<"yes"<<endl;
      |     ^~
      |     :
a.cc:21:5: error: expected primary-expression before 'if'
   21 | ????if(k)cout<<"yes"<<endl;
      |     ^~
a.cc:21:5: error: expected ':' before 'if'
   21 | ????if(k)cout<<"yes"<<endl;
      |     ^~
      |     :
a.cc:21:5: error: expected primary-expression before 'if'
   21 | ????if(k)cout<<"yes"<<endl;
      |     ^~
a.cc:21:5: error: expected ':' before 'if'
   21 | ????if(k)cout<<"yes"<<endl;
      |     ^~
      |     :
a.cc:21:5: error: expected primary-expres