Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
        int a,b;
        while(cin>>a>>b){
                if((a==1&&b==14) || (a==14&&b==1)cout<<'+'<<endl;
                else if((a==2&&b==13) || (a==13&&b==2)cout<<'+'<<endl;
                else if((a==3&&b==12) || (a==12&&b==4)cout<<'+'<<endl;
                else if((a==4&&b==11) || (a==11&&b==4)cout<<'+'<<endl;
                else if((a==5&&b==10) || (a==10&&b==5)cout<<'+'<<endl;
                else if((a==6&&b==9) || (a==9&&b==6)cout<<'+'<<endl;
                else if((a==7&&b==8) || (a==8&&b==7)cout<<'+'<<endl;
                else if((a==8&&b==7) || (a==7&&b==8)cout<<'+'<<endl;
                else if((a==9&&b==6) || (a==6&&b==9)cout<<'+'<<endl;
                else if((a==10&&b==5) || (a==5&&b==10)cout<<'+'<<endl;
                else if((a==11&&b==4) || (a==4&&b==11)cout<<'+'<<endl;
                else if((a==12&&b==3) || (a==3&&b==12)cout<<'+'<<endl;
                else if((a==13&&b==2) || (a==2&&b==13)cout<<'+'<<endl;
                else if((a==14&&b==1) || (a==1&&b==14)cout<<'+'<<endl;



                else if((a==3 && b == 5) || (b==3&&a==5))cout<<'*'<<endl;

                else cout<<'X'<<endl;
        }

        return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:50: error: expected ';' before 'cout'
    8 |                 if((a==1&&b==14) || (a==14&&b==1)cout<<'+'<<endl;
      |                                                  ^~~~
      |                                                  ;
a.cc:9:17: error: expected primary-expression before 'else'
    9 |                 else if((a==2&&b==13) || (a==13&&b==2)cout<<'+'<<endl;
      |                 ^~~~
a.cc:8:66: error: expected ')' before 'else'
    8 |                 if((a==1&&b==14) || (a==14&&b==1)cout<<'+'<<endl;
      |                   ~                                              ^
      |                                                                  )
    9 |                 else if((a==2&&b==13) || (a==13&&b==2)cout<<'+'<<endl;
      |                 ~~~~                                              
a.cc:10:55: error: expected ';' before 'cout'
   10 |                 else if((a==3&&b==12) || (a==12&&b==4)cout<<'+'<<endl;
      |                                                       ^~~~
      |                                                       ;
a.cc:11:17: error: expected primary-expression before 'else'
   11 |                 else if((a==4&&b==11) || (a==11&&b==4)cout<<'+'<<endl;
      |                 ^~~~
a.cc:10:71: error: expected ')' before 'else'
   10 |                 else if((a==3&&b==12) || (a==12&&b==4)cout<<'+'<<endl;
      |                        ~                                              ^
      |                                                                       )
   11 |                 else if((a==4&&b==11) || (a==11&&b==4)cout<<'+'<<endl;
      |                 ~~~~                                                   
a.cc:12:55: error: expected ';' before 'cout'
   12 |                 else if((a==5&&b==10) || (a==10&&b==5)cout<<'+'<<endl;
      |                                                       ^~~~
      |                                                       ;
a.cc:13:17: error: expected primary-expression before 'else'
   13 |                 else if((a==6&&b==9) || (a==9&&b==6)cout<<'+'<<endl;
      |                 ^~~~
a.cc:12:71: error: expected ')' before 'else'
   12 |                 else if((a==5&&b==10) || (a==10&&b==5)cout<<'+'<<endl;
      |                        ~                                              ^
      |                                                                       )
   13 |                 else if((a==6&&b==9) || (a==9&&b==6)cout<<'+'<<endl;
      |                 ~~~~                                                   
a.cc:14:53: error: expected ';' before 'cout'
   14 |                 else if((a==7&&b==8) || (a==8&&b==7)cout<<'+'<<endl;
      |                                                     ^~~~
      |                                                     ;
a.cc:15:17: error: expected primary-expression before 'else'
   15 |                 else if((a==8&&b==7) || (a==7&&b==8)cout<<'+'<<endl;
      |                 ^~~~
a.cc:14:69: error: expected ')' before 'else'
   14 |                 else if((a==7&&b==8) || (a==8&&b==7)cout<<'+'<<endl;
      |                        ~                                            ^
      |                                                                     )
   15 |                 else if((a==8&&b==7) || (a==7&&b==8)cout<<'+'<<endl;
      |                 ~~~~                                                 
a.cc:16:53: error: expected ';' before 'cout'
   16 |                 else if((a==9&&b==6) || (a==6&&b==9)cout<<'+'<<endl;
      |                                                     ^~~~
      |                                                     ;
a.cc:17:17: error: expected primary-expression before 'else'
   17 |                 else if((a==10&&b==5) || (a==5&&b==10)cout<<'+'<<endl;
      |                 ^~~~
a.cc:16:69: error: expected ')' before 'else'
   16 |                 else if((a==9&&b==6) || (a==6&&b==9)cout<<'+'<<endl;
      |                        ~                                            ^
      |                                                                     )
   17 |                 else if((a==10&&b==5) || (a==5&&b==10)cout<<'+'<<endl;
      |                 ~~~~                                                 
a.cc:18:55: error: expected ';' before 'cout'
   18 |                 else if((a==11&&b==4) || (a==4&&b==11)cout<<'+'<<endl;
      |                                                       ^~~~
      |                                                       ;
a.cc:19:17: error: expected primary-expression before 'else'
   19 |                 else if((a==12&&b==3) || (a==3&&b==12)cout<<'+'<<endl;
      |                 ^~~~
a.cc:18:71: error: expected ')' before 'else'
   18 |                 else if((a==11&&b==4) || (a==4&&b==11)cout<<'+'<<endl;
      |                        ~                                              ^
      |                                                                       )
   19 |                 else if((a==12&&b==3) || (a==3&&b==12)cout<<'+'<<endl;
      |                 ~~~~                                                   
a.cc:20:55: error: expected ';' before 'cout'
   20 |                 else if((a==13&&b==2) || (a==2&&b==13)cout<<'+'<<endl;
      |                                                       ^~~~
      |                                                       ;
a.cc:21:17: error: expected primary-expression before 'else'
   21 |                 else if((a==14&&b==1) || (a==1&&b==14)cout<<'+'<<endl;
      |                 ^~~~
a.cc:20:71: error: expected ')' before 'else'
   20 |                 else if((a==13&&b==2) || (a==2&&b==13)cout<<'+'<<endl;
      |                        ~                                              ^
      |                                                                       )
   21 |                 else if((a==14&&b==1) || (a==1&&b==14)cout<<'+'<<endl;
      |                 ~~~~