Language: C++

#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <bitset>
#include <deque>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <vector>
#include <algorithm>
#include <iterator>
#include <string>
using namespace std;

int main(){
int X,Y;
if (X == "A"){X = 10;} else if (X=="B"){X=11;}else if (X=="C"){X=12;} else if(X=="D"){X=13;} else if(X=="E"){X=14;}else if(X=="F"){X=15}
  
if (Y == "A"){Y= 10;} else if (Y=="B"){Y=11;}else if (Y=="C"){Y=12;} else if(Y=="D"){Y=13;} else if(Y=="E"){Y=14;}else if(Y=="F"){Y=15}
  
 if ( X > Y ) {cout << Y << endl;} else {cout << X << endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 | if (X == "A"){X = 10;} else if (X=="B"){X=11;}else if (X=="C"){X=12;} else if(X=="D"){X=13;} else if(X=="E"){X=14;}else if(X=="F"){X=15}
      |     ~~^~~~~~
a.cc:21:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 | if (X == "A"){X = 10;} else if (X=="B"){X=11;}else if (X=="C"){X=12;} else if(X=="D"){X=13;} else if(X=="E"){X=14;}else if(X=="F"){X=15}
      |                                 ~^~~~~
a.cc:21:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 | if (X == "A"){X = 10;} else if (X=="B"){X=11;}else if (X=="C"){X=12;} else if(X=="D"){X=13;} else if(X=="E"){X=14;}else if(X=="F"){X=15}
      |                                                        ~^~~~~
a.cc:21:80: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 | if (X == "A"){X = 10;} else if (X=="B"){X=11;}else if (X=="C"){X=12;} else if(X=="D"){X=13;} else if(X=="E"){X=14;}else if(X=="F"){X=15}
      |                                                                               ~^~~~~
a.cc:21:103: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 | if (X == "A"){X = 10;} else if (X=="B"){X=11;}else if (X=="C"){X=12;} else if(X=="D"){X=13;} else if(X=="E"){X=14;}else if(X=="F"){X=15}
      |                                                                                                      ~^~~~~
a.cc:21:125: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 | if (X == "A"){X = 10;} else if (X=="B"){X=11;}else if (X=="C"){X=12;} else if(X=="D"){X=13;} else if(X=="E"){X=14;}else if(X=="F"){X=15}
      |                                                                                                                            ~^~~~~
a.cc:21:136: error: expected ';' before '}' token
   21 | if (X == "A"){X = 10;} else if (X=="B"){X=11;}else if (X=="C"){X=12;} else if(X=="D"){X=13;} else if(X=="E"){X=14;}else if(X=="F"){X=15}
      |                                                                                                                                        ^
      |                                                                                                                                        ;
a.cc:23:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 | if (Y == "A"){Y= 10;} else if (Y=="B"){Y=11;}else if (Y=="C"){Y=12;} else if(Y=="D"){Y=13;} else if(Y=="E"){Y=14;}else if(Y=="F"){Y=15}
      |     ~~^~~~~~
a.cc:23:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 | if (Y == "A"){Y= 10;} else if (Y=="B"){Y=11;}else if (Y=="C"){Y=12;} else if(Y=="D"){Y=13;} else if(Y=="E"){Y=14;}else if(Y=="F"){Y=15}
      |                                ~^~~~~
a.cc:23:56: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 | if (Y == "A"){Y= 10;} else if (Y=="B"){Y=11;}else if (Y=="C"){Y=12;} else if(Y=="D"){Y=13;} else if(Y=="E"){Y=14;}else if(Y=="F"){Y=15}
      |                                                       ~^~~~~
a.cc:23:79: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 | if (Y == "A"){Y= 10;} else if (Y=="B"){Y=11;}else if (Y=="C"){Y=12;} else if(Y=="D"){Y=13;} else if(Y=="E"){Y=14;}else if(Y=="F"){Y=15}
      |                                                                              ~^~~~~
a.cc:23:102: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 | if (Y == "A"){Y= 10;} else if (Y=="B"){Y=11;}else if (Y=="C"){Y=12;} else if(Y=="D"){Y=13;} else if(Y=="E"){Y=14;}else if(Y=="F"){Y=15}
      |                                                                                                     ~^~~~~
a.cc:23:124: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 | if (Y == "A"){Y= 10;} else if (Y=="B"){Y=11;}else if (Y=="C"){Y=12;} else if(Y=="D"){Y=13;} else if(Y=="E"){Y=14;}else if(Y=="F"){Y=15}
      |                                                                                                                           ~^~~~~
a.cc:23:135: error: expected ';' before '}' token
   23 | if (Y == "A"){Y= 10;} else if (Y=="B"){Y=11;}else if (Y=="C"){Y=12;} else if(Y=="D"){Y=13;} else if(Y=="E"){Y=14;}else if(Y=="F"){Y=15}
      |                                                                                                                                       ^
      |                                                                                                                                       ;