Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){

    while(1){
           int a,b;
           string op;
           cin>>a>>op>>b;
           if(op == “?”) break;
            
           int ans;
           if(op == “+”) ans = a + b;
           if(op == “-“) ans = a - b;
           if(op == “*”) ans = a * b;
           if(op == “/“) ans = a / b;

           cout<<ans<<endl;
    }
    return 0;
}


Compiler output:
a.cc:10:21: error: extended character “ is not valid in an identifier
   10 |            if(op == “?”) break;
      |                     ^
a.cc:10:23: error: extended character ” is not valid in an identifier
   10 |            if(op == “?”) break;
      |                       ^
a.cc:13:21: error: extended character “ is not valid in an identifier
   13 |            if(op == “+”) ans = a + b;
      |                     ^
a.cc:13:23: error: extended character ” is not valid in an identifier
   13 |            if(op == “+”) ans = a + b;
      |                       ^
a.cc:14:21: error: extended character “ is not valid in an identifier
   14 |            if(op == “-“) ans = a - b;
      |                     ^
a.cc:14:23: error: extended character “ is not valid in an identifier
   14 |            if(op == “-“) ans = a - b;
      |                       ^
a.cc:15:21: error: extended character “ is not valid in an identifier
   15 |            if(op == “*”) ans = a * b;
      |                     ^
a.cc:15:23: error: extended character ” is not valid in an identifier
   15 |            if(op == “*”) ans = a * b;
      |                       ^
a.cc:16:21: error: extended character “ is not valid in an identifier
   16 |            if(op == “/“) ans = a / b;
      |                     ^
a.cc:16:23: error: extended character “ is not valid in an identifier
   16 |            if(op == “/“) ans = a / b;
      |                       ^
a.cc: In function 'int main()':
a.cc:10:21: error: '\U0000201c' was not declared in this scope
   10 |            if(op == “?”) break;
      |                     ^
a.cc:10:23: error: '\U0000201d' was not declared in this scope
   10 |            if(op == “?”) break;
      |                       ^
a.cc:10:24: error: expected ':' before ')' token
   10 |            if(op == “?”) break;
      |                        ^
      |                        :
a.cc:10:24: error: expected primary-expression before ')' token
a.cc:13:21: error: '\U0000201c' was not declared in this scope
   13 |            if(op == “+”) ans = a + b;
      |                     ^
a.cc:13:23: error: '\U0000201d' was not declared in this scope
   13 |            if(op == “+”) ans = a + b;
      |                       ^
a.cc:14:21: error: '\U0000201c' was not declared in this scope
   14 |            if(op == “-“) ans = a - b;
      |                     ^
a.cc:15:21: error: '\U0000201c' was not declared in this scope
   15 |            if(op == “*”) ans = a * b;
      |                     ^
a.cc:15:23: error: '\U0000201d' was not declared in this scope
   15 |            if(op == “*”) ans = a * b;
      |                       ^
a.cc:16:21: error: '\U0000201c' was not declared in this scope
   16 |            if(op == “/“) ans = a / b;
      |                     ^