criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<stdio.h>

int main (void){
int a,b;
    char c;
scanf("%d %c %d",&a,&c,&b);
    if(c=='+'){
        printf("%d\n",a+b);
    }
        else if(c=='-'){
        printf("%d\n",a-b);
    }
     else if(c=='*'){
        printf("%d\n",a*b);
    }
        else if(c=='/'){
        printf("%d\n",a/b);
    }
    else if(c=='?'){ printf(" \n")

        
    }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:35: error: expected ';' before '}' token
   19 |     else if(c=='?'){ printf(" \n")
      |                                   ^
      |                                   ;
......
   22 |     }
      |     ~
Language: C++

#include<stdio.h>

int main (void){
int a,b;
    char c;
scanf("%d %c %d",&a,&c,&b);
    if(c=='+'){
        printf("%d\n",a+b);
    }
        else if(c=='-'){
        printf("%d\n",a-b);
    }
     else if(c=='*'){
        printf("%d\n",a*b);
    }
        else if(c=='/'){
        printf("%d\n",a/b);
    }
    else if(c=='?'){ 
        system("cls");
    }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: 'system' was not declared in this scope
   20 |         system("cls");
      |         ^~~~~~
Language: C++

#include <stdio.h>
int main()
{
int a, b, ans;
char op;
while(1)
{
scanf("%d", &a);
scanf("%d", &b);
scanf("%c", &op);
if (op == +)
{
ans = a + b;
}
else if (op == -)
{
ans = a - b;
}
else if (op == *)
{
ans = a * b;
}
else if (op == /)
{
ans = a / b;
}
else if (op == ?)
{break;}
printf("%d",ans);
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected primary-expression before ')' token
   11 | if (op == +)
      |            ^
a.cc:15:17: error: expected primary-expression before ')' token
   15 | else if (op == -)
      |                 ^
a.cc:19:17: error: expected primary-expression before ')' token
   19 | else if (op == *)
      |                 ^
a.cc:23:16: error: expected primary-expression before '/' token
   23 | else if (op == /)
      |                ^
a.cc:23:17: error: expected primary-expression before ')' token
   23 | else if (op == /)
      |                 ^
a.cc:27:16: error: expected primary-expression before '?' token
   27 | else if (op == ?)
      |                ^
a.cc:27:17: error: expected primary-expression before ')' token
   27 | else if (op == ?)
      |                 ^
a.cc:27:17: error: expected ':' before ')' token
   27 | else if (op == ?)
      |                 ^
      |                 :
a.cc:27:17: error: expected primary-expression before ')' token
Language: C++

#include <stdio.h>
int main()
{
int a, b, ans;
char op;
while(1)
{
scanf("%d", &a);
scanf("%c", &op);
scanf("%d", &b);
if (op == "+")
{
ans = a + b;
}
else if (op == "-")
{
ans = a - b;
}
else if (op == "*")
{
ans = a * b;
}
else if (op == "/")
{
ans = a / b;
}
else if (op == "?")
{break;}
printf("%d",ans);
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 | if (op == "+")
      |     ~~~^~~~~~
a.cc:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 | else if (op == "-")
      |          ~~~^~~~~~
a.cc:19:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 | else if (op == "*")
      |          ~~~^~~~~~
a.cc:23:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 | else if (op == "/")
      |          ~~~^~~~~~
a.cc:27:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   27 | else if (op == "?")
      |          ~~~^~~~~~
Language: C++

#include <stdio.h>
int main()
{
int a, b, ans;
char op;
while(1)
{
scanf("%d", &a);
scanf("%c", &op);
scanf("%d", &b);
if (op == `+')
{
ans = a + b;
}
else if (op == `-')
{
ans = a - b;
}
else if (op == `*')
{
ans = a * b;
}
else if (op == `/')
{
ans = a / b;
}
else if (op == `?')
{break;}
printf("%d",ans);
}
return 0;
}

Compiler output:
a.cc:11:11: error: stray '`' in program
   11 | if (op == `+')
      |           ^
a.cc:11:13: warning: missing terminating ' character
   11 | if (op == `+')
      |             ^
a.cc:11:13: error: missing terminating ' character
   11 | if (op == `+')
      |             ^~
a.cc:15:16: error: stray '`' in program
   15 | else if (op == `-')
      |                ^
a.cc:15:18: warning: missing terminating ' character
   15 | else if (op == `-')
      |                  ^
a.cc:15:18: error: missing terminating ' character
   15 | else if (op == `-')
      |                  ^~
a.cc:19:16: error: stray '`' in program
   19 | else if (op == `*')
      |                ^
a.cc:19:18: warning: missing terminating ' character
   19 | else if (op == `*')
      |                  ^
a.cc:19:18: error: missing terminating ' character
   19 | else if (op == `*')
      |                  ^~
a.cc:23:16: error: stray '`' in program
   23 | else if (op == `/')
      |                ^
a.cc:23:18: warning: missing terminating ' character
   23 | else if (op == `/')
      |                  ^
a.cc:23:18: error: missing terminating ' character
   23 | else if (op == `/')
      |                  ^~
a.cc:27:16: error: stray '`' in program
   27 | else if (op == `?')
      |                ^
a.cc:27:18: warning: missing terminating ' character
   27 | else if (op == `?')
      |                  ^
a.cc:27:18: error: missing terminating ' character
   27 | else if (op == `?')
      |                  ^~
a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before '{' token
   12 | {
      | ^
a.cc:11:13: error: expected ')' before '{' token
   11 | if (op == `+')
      |    ~        ^
      |             )
   12 | {
      | ~
Language: C++

#include<stdio.h>
int main()
{
int a b ans;
char c;
while(1)
{scanf("%d %c %d",&a,&c,&b ;
if(c==+){ans=a+b;}
else if(c==-){ans=a-b;}
else if(c==*){ans=a*b;}
else if(c==/){ans=a/b;}
else{break;]
printf("%d",ans);}
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: expected initializer before 'b'
    4 | int a b ans;
      |       ^
a.cc:7:20: error: 'a' was not declared in this scope
    7 | {scanf("%d %c %d",&a,&c,&b ;
      |                    ^
a.cc:7:26: error: 'b' was not declared in this scope
    7 | {scanf("%d %c %d",&a,&c,&b ;
      |                          ^
a.cc:8:8: error: expected primary-expression before ')' token
    8 | if(c==+){ans=a+b;}
      |        ^
a.cc:8:10: error: 'ans' was not declared in this scope
    8 | if(c==+){ans=a+b;}
      |          ^~~
a.cc:9:13: error: expected primary-expression before ')' token
    9 | else if(c==-){ans=a-b;}
      |             ^
a.cc:9:15: error: 'ans' was not declared in this scope
    9 | else if(c==-){ans=a-b;}
      |               ^~~
a.cc:10:13: error: expected primary-expression before ')' token
   10 | else if(c==*){ans=a*b;}
      |             ^
a.cc:10:15: error: 'ans' was not declared in this scope
   10 | else if(c==*){ans=a*b;}
      |               ^~~
a.cc:11:12: error: expected primary-expression before '/' token
   11 | else if(c==/){ans=a/b;}
      |            ^
a.cc:11:13: error: expected primary-expression before ')' token
   11 | else if(c==/){ans=a/b;}
      |             ^
a.cc:11:15: error: 'ans' was not declared in this scope
   11 | else if(c==/){ans=a/b;}
      |               ^~~
a.cc:12:12: error: expected primary-expression before ']' token
   12 | else{break;]
      |            ^
a.cc:14:1: error: 'return0' was not declared in this scope
   14 | return0;
      | ^~~~~~~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include<stdio.h>
int main()
{
int a b ans;
char c;
while(1)
{scanf("%d %c %d",&a,&c,&b ;
if(c==+){ans=a+b;};
else if(c==-){ans=a-b;};
else if(c==*){ans=a*b;};
else if(c==/){ans=a/b;};
else{break;];
printf("%d",ans);};
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: expected initializer before 'b'
    4 | int a b ans;
      |       ^
a.cc:7:20: error: 'a' was not declared in this scope
    7 | {scanf("%d %c %d",&a,&c,&b ;
      |                    ^
a.cc:7:26: error: 'b' was not declared in this scope
    7 | {scanf("%d %c %d",&a,&c,&b ;
      |                          ^
a.cc:8:8: error: expected primary-expression before ')' token
    8 | if(c==+){ans=a+b;};
      |        ^
a.cc:8:10: error: 'ans' was not declared in this scope
    8 | if(c==+){ans=a+b;};
      |          ^~~
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else if(c==-){ans=a-b;};
      | ^~~~
a.cc:9:13: error: expected primary-expression before ')' token
    9 | else if(c==-){ans=a-b;};
      |             ^
a.cc:9:15: error: 'ans' was not declared in this scope
    9 | else if(c==-){ans=a-b;};
      |               ^~~
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else if(c==*){ans=a*b;};
      | ^~~~
a.cc:10:13: error: expected primary-expression before ')' token
   10 | else if(c==*){ans=a*b;};
      |             ^
a.cc:10:15: error: 'ans' was not declared in this scope
   10 | else if(c==*){ans=a*b;};
      |               ^~~
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else if(c==/){ans=a/b;};
      | ^~~~
a.cc:11:12: error: expected primary-expression before '/' token
   11 | else if(c==/){ans=a/b;};
      |            ^
a.cc:11:13: error: expected primary-expression before ')' token
   11 | else if(c==/){ans=a/b;};
      |             ^
a.cc:11:15: error: 'ans' was not declared in this scope
   11 | else if(c==/){ans=a/b;};
      |               ^~~
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else{break;];
      | ^~~~
a.cc:12:12: error: expected primary-expression before ']' token
   12 | else{break;];
      |            ^
a.cc:13:13: error: 'ans' was not declared in this scope
   13 | printf("%d",ans);};
      |             ^~~
a.cc:14:1: error: 'return0' was not declared in this scope
   14 | return0;
      | ^~~~~~~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include<stdio.h>
int main()
{
int a b ans;
char c;
while(1)
{scanf("%d %c %d",&a,&c,&b) ;
if(c==+){ans=a+b;};
else if(c==-){ans=a-b;};
else if(c==*){ans=a*b;};
else if(c==/){ans=a/b;};
else{break;];
printf("%d",ans);};
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: expected initializer before 'b'
    4 | int a b ans;
      |       ^
a.cc:7:20: error: 'a' was not declared in this scope
    7 | {scanf("%d %c %d",&a,&c,&b) ;
      |                    ^
a.cc:7:26: error: 'b' was not declared in this scope
    7 | {scanf("%d %c %d",&a,&c,&b) ;
      |                          ^
a.cc:8:8: error: expected primary-expression before ')' token
    8 | if(c==+){ans=a+b;};
      |        ^
a.cc:8:10: error: 'ans' was not declared in this scope
    8 | if(c==+){ans=a+b;};
      |          ^~~
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else if(c==-){ans=a-b;};
      | ^~~~
a.cc:9:13: error: expected primary-expression before ')' token
    9 | else if(c==-){ans=a-b;};
      |             ^
a.cc:9:15: error: 'ans' was not declared in this scope
    9 | else if(c==-){ans=a-b;};
      |               ^~~
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else if(c==*){ans=a*b;};
      | ^~~~
a.cc:10:13: error: expected primary-expression before ')' token
   10 | else if(c==*){ans=a*b;};
      |             ^
a.cc:10:15: error: 'ans' was not declared in this scope
   10 | else if(c==*){ans=a*b;};
      |               ^~~
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else if(c==/){ans=a/b;};
      | ^~~~
a.cc:11:12: error: expected primary-expression before '/' token
   11 | else if(c==/){ans=a/b;};
      |            ^
a.cc:11:13: error: expected primary-expression before ')' token
   11 | else if(c==/){ans=a/b;};
      |             ^
a.cc:11:15: error: 'ans' was not declared in this scope
   11 | else if(c==/){ans=a/b;};
      |               ^~~
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else{break;];
      | ^~~~
a.cc:12:12: error: expected primary-expression before ']' token
   12 | else{break;];
      |            ^
a.cc:13:13: error: 'ans' was not declared in this scope
   13 | printf("%d",ans);};
      |             ^~~
a.cc:14:1: error: 'return0' was not declared in this scope
   14 | return0;
      | ^~~~~~~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include<stdio.h>
int main()
{
int a b ans;
char c;
while(1)
{scanf("%d %c %d",&a,&c,&b) ;
if(c==+){ans=a+b;}
else if(c==-){ans=a-b;}
else if(c==*){ans=a*b;}
else if(c==/){ans=a/b;}
else{break;]
printf("%d",ans);}
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: expected initializer before 'b'
    4 | int a b ans;
      |       ^
a.cc:7:20: error: 'a' was not declared in this scope
    7 | {scanf("%d %c %d",&a,&c,&b) ;
      |                    ^
a.cc:7:26: error: 'b' was not declared in this scope
    7 | {scanf("%d %c %d",&a,&c,&b) ;
      |                          ^
a.cc:8:8: error: expected primary-expression before ')' token
    8 | if(c==+){ans=a+b;}
      |        ^
a.cc:8:10: error: 'ans' was not declared in this scope
    8 | if(c==+){ans=a+b;}
      |          ^~~
a.cc:9:13: error: expected primary-expression before ')' token
    9 | else if(c==-){ans=a-b;}
      |             ^
a.cc:9:15: error: 'ans' was not declared in this scope
    9 | else if(c==-){ans=a-b;}
      |               ^~~
a.cc:10:13: error: expected primary-expression before ')' token
   10 | else if(c==*){ans=a*b;}
      |             ^
a.cc:10:15: error: 'ans' was not declared in this scope
   10 | else if(c==*){ans=a*b;}
      |               ^~~
a.cc:11:12: error: expected primary-expression before '/' token
   11 | else if(c==/){ans=a/b;}
      |            ^
a.cc:11:13: error: expected primary-expression before ')' token
   11 | else if(c==/){ans=a/b;}
      |             ^
a.cc:11:15: error: 'ans' was not declared in this scope
   11 | else if(c==/){ans=a/b;}
      |               ^~~
a.cc:12:12: error: expected primary-expression before ']' token
   12 | else{break;]
      |            ^
a.cc:14:1: error: 'return0' was not declared in this scope
   14 | return0;
      | ^~~~~~~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include<stdio.h>
int main()
{
int a, b, ans;
char c;
while(1)
{scanf("%d %c %d",&a,&c,&b) ;
if(c==+){ans=a+b;}
else if(c==-){ans=a-b;}
else if(c==*){ans=a*b;}
else if(c==/){ans=a/b;}
else{break;]
printf("%d",ans);}
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected primary-expression before ')' token
    8 | if(c==+){ans=a+b;}
      |        ^
a.cc:9:13: error: expected primary-expression before ')' token
    9 | else if(c==-){ans=a-b;}
      |             ^
a.cc:10:13: error: expected primary-expression before ')' token
   10 | else if(c==*){ans=a*b;}
      |             ^
a.cc:11:12: error: expected primary-expression before '/' token
   11 | else if(c==/){ans=a/b;}
      |            ^
a.cc:11:13: error: expected primary-expression before ')' token
   11 | else if(c==/){ans=a/b;}
      |             ^
a.cc:12:12: error: expected primary-expression before ']' token
   12 | else{break;]
      |            ^
a.cc:14:1: error: 'return0' was not declared in this scope
   14 | return0;
      | ^~~~~~~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include<stdio.h>
int main()
{
int a, b, ans;
char c;
while(1)
{scanf("%d %c %d",&a,&c,&b) ;
if(c==+){ans=a+b;};
else if(c==-){ans=a-b;};
else if(c==*){ans=a*b;};
else if(c==/){ans=a/b;};
else{break;];
printf("%d",ans);};
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected primary-expression before ')' token
    8 | if(c==+){ans=a+b;};
      |        ^
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else if(c==-){ans=a-b;};
      | ^~~~
a.cc:9:13: error: expected primary-expression before ')' token
    9 | else if(c==-){ans=a-b;};
      |             ^
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else if(c==*){ans=a*b;};
      | ^~~~
a.cc:10:13: error: expected primary-expression before ')' token
   10 | else if(c==*){ans=a*b;};
      |             ^
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else if(c==/){ans=a/b;};
      | ^~~~
a.cc:11:12: error: expected primary-expression before '/' token
   11 | else if(c==/){ans=a/b;};
      |            ^
a.cc:11:13: error: expected primary-expression before ')' token
   11 | else if(c==/){ans=a/b;};
      |             ^
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else{break;];
      | ^~~~
a.cc:12:12: error: expected primary-expression before ']' token
   12 | else{break;];
      |            ^
a.cc:14:1: error: 'return0' was not declared in this scope
   14 | return0;
      | ^~~~~~~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include<stdio.h>
int main()
{
int a, b, ans;
char c;

while(1)
{scanf("%d %c %d",&a,&c,&b) ;
if(c==+){ans=a+b;};
else if(c==-){ans=a-b;};
else if(c==*){ans=a*b;};
else if(c==/){ans=a/b;};
else{return 0;];

printf("%d",ans);};
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected primary-expression before ')' token
    9 | if(c==+){ans=a+b;};
      |        ^
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else if(c==-){ans=a-b;};
      | ^~~~
a.cc:10:13: error: expected primary-expression before ')' token
   10 | else if(c==-){ans=a-b;};
      |             ^
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else if(c==*){ans=a*b;};
      | ^~~~
a.cc:11:13: error: expected primary-expression before ')' token
   11 | else if(c==*){ans=a*b;};
      |             ^
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else if(c==/){ans=a/b;};
      | ^~~~
a.cc:12:12: error: expected primary-expression before '/' token
   12 | else if(c==/){ans=a/b;};
      |            ^
a.cc:12:13: error: expected primary-expression before ')' token
   12 | else if(c==/){ans=a/b;};
      |             ^
a.cc:13:1: error: 'else' without a previous 'if'
   13 | else{return 0;];
      | ^~~~
a.cc:13:15: error: expected primary-expression before ']' token
   13 | else{return 0;];
      |               ^
a.cc:16:1: error: 'return0' was not declared in this scope
   16 | return0;
      | ^~~~~~~
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include<stdio.h>
int main()
{
int a, b, ans;
char c;

while(1)
{scanf("%d %c %d",&a,&c,&b) ;
if(c=='+'){ans=a+b;};
else if(c=='-'){ans=a-b;};
else if(c=='*'){ans=a*b;};
else if(c=='/'){ans=a/b;};
else{return 0;];

printf("%d",ans);};
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else if(c=='-'){ans=a-b;};
      | ^~~~
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else if(c=='*'){ans=a*b;};
      | ^~~~
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else if(c=='/'){ans=a/b;};
      | ^~~~
a.cc:13:1: error: 'else' without a previous 'if'
   13 | else{return 0;];
      | ^~~~
a.cc:13:15: error: expected primary-expression before ']' token
   13 | else{return 0;];
      |               ^
a.cc:16:1: error: 'return0' was not declared in this scope
   16 | return0;
      | ^~~~~~~
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

int main(){
	int a,b;
	char c;
	cin >> a >> c >> b;
	if 	   (c == "+")cout << a + b << endl;
	else if(c == "-")cout << a - b << endl;
	else if(c == "*")cout << a * b << endl;
	else if(c == "/")cout << a / b << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if         (c == "+")cout << a + b << endl;
      |                     ~~^~~~~~
a.cc:9:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         else if(c == "-")cout << a - b << endl;
      |                 ~~^~~~~~
a.cc:10:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         else if(c == "*")cout << a * b << endl;
      |                 ~~^~~~~~
a.cc:11:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         else if(c == "/")cout << a / b << endl;
      |                 ~~^~~~~~
Language: C++

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

int main(){
	int a,b;
	char c;
	cin >> a >> c >> b;
	while(1){
	if 	   (c == '+')cout << a + b << endl;
	else if(c == '-')cout << a - b << endl;
	else if(c == '*')cout << a * b << endl;
	else if(c == '/')cout << a / b << endl;
	else(c == '?')break;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: expected ';' before 'break'
   13 |         else(c == '?')break;
      |                       ^~~~~
      |                       ;
Language: C++

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

int main(){
	int a,b;
	char c;
	while(1){
	cin >> a >> c >> b;
	if 	   (c == '+')cout << a + b << endl;
	else if(c == '-')cout << a - b << endl;
	else if(c == '*')cout << a * b << endl;
	else if(c == '/')cout << a / b << endl;
	else(c == '?')break;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: expected ';' before 'break'
   13 |         else(c == '?')break;
      |                       ^~~~~
      |                       ;
Language: C++

#include <stdio.h>

int main(){
int a,b;
char op;
while(1){
   scanf("%d %s %d",&a,&op,&b);
   if(op=="?") break;
   else if(op=="+") printf("%d",a+b);
   else if(op=="-") printf("%d",a-b);
   else if(op=="/") printf("%d",a/b);
   else if(op=="*") printf("%d",a*b);
}
return 0;
}
   
   

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |    if(op=="?") break;
      |       ~~^~~~~
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |    else if(op=="+") printf("%d",a+b);
      |            ~~^~~~~
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |    else if(op=="-") printf("%d",a-b);
      |            ~~^~~~~
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |    else if(op=="/") printf("%d",a/b);
      |            ~~^~~~~
a.cc:12:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |    else if(op=="*") printf("%d",a*b);
      |            ~~^~~~~
Language: C++

#include <stdio.h>

int main(){
int a,b;
char op;
while(1){
   scanf("%d %c %d",&a,&op,&b);
   if(op=="?") break;
   else if(op=="+") printf("%d",a+b);
   else if(op=="-") printf("%d",a-b);
   else if(op=="/") printf("%d",a/b);
   else if(op=="*") printf("%d",a*b);
}
return 0;
}
   
   

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |    if(op=="?") break;
      |       ~~^~~~~
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |    else if(op=="+") printf("%d",a+b);
      |            ~~^~~~~
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |    else if(op=="-") printf("%d",a-b);
      |            ~~^~~~~
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |    else if(op=="/") printf("%d",a/b);
      |            ~~^~~~~
a.cc:12:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |    else if(op=="*") printf("%d",a*b);
      |            ~~^~~~~
Language: C++

#include <iostream>
using namespace std;
 
int main() {
	int a,b;
	char op;
	while(1){
		cin >> a >> op >> b;
		if(op=='?') break???
 
		if(op=='+') cout << a+b << endl;
		else if(op=='-') cout << a-b << endl;
		else if(op=='/') cout << a/b << endl;
		else if(op=='*') cout << a*b << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: expected ';' before '?' token
    9 |                 if(op=='?') break???
      |                                  ^
      |                                  ;
a.cc:9:34: error: expected primary-expression before '?' token
a.cc:9:35: error: expected primary-expression before '?' token
    9 |                 if(op=='?') break???
      |                                   ^
a.cc:9:36: error: expected primary-expression before '?' token
    9 |                 if(op=='?') break???
      |                                    ^
a.cc:11:17: error: expected primary-expression before 'if'
   11 |                 if(op=='+') cout << a+b << endl;
      |                 ^~
a.cc:9:37: error: expected ':' before 'if'
    9 |                 if(op=='?') break???
      |                                     ^
      |                                     :
   10 | 
   11 |                 if(op=='+') cout << a+b << endl;
      |                 ~~                   
a.cc:11:17: error: expected primary-expression before 'if'
   11 |                 if(op=='+') cout << a+b << endl;
      |                 ^~
a.cc:9:37: error: expected ':' before 'if'
    9 |                 if(op=='?') break???
      |                                     ^
      |                                     :
   10 | 
   11 |                 if(op=='+') cout << a+b << endl;
      |                 ~~                   
a.cc:11:17: error: expected primary-expression before 'if'
   11 |                 if(op=='+') cout << a+b << endl;
      |                 ^~
a.cc:9:37: error: expected ':' before 'if'
    9 |                 if(op=='?') break???
      |                                     ^
      |                                     :
   10 | 
   11 |                 if(op=='+') cout << a+b << endl;
      |                 ~~                   
a.cc:11:17: error: expected primary-expression before 'if'
   11 |                 if(op=='+') cout << a+b << endl;
      |                 ^~
a.cc:12:17: error: 'else' without a previous 'if'
   12 |                 else if(op=='-') cout << a-b << endl;
      |                 ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int a,b=0;
  char op=0;
  do{
      cin>>a>>op>>b;
      switch(op){
          case '+':
          cout<<a+b<<endl;
          break;
          case'-':
          cout<<a-b<<endl;
          break;
          case '*':
          cout<<a*b<<endl;
          break;
          case'/':
          cout<<a/b<<endl;
          break;
        default:
        break;
      }
  }while(op='?')
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:17: error: expected ';' before 'return'
   26 |   }while(op='?')
      |                 ^
      |                 ;
   27 |   return 0;
      |   ~~~~~~
Language: C++

#include <iostream>
#include <algorithm>

int main(void)
{
	using namespace std;
	int a,b;
	char op;
	int answer;
	bool flg_break = false;

	while(1){
		cin >> a;
		cin >> op;
		cin >> b;

		switch(op){
			case '+':
				answer = a + b;
				break

			case '-':
				answer = a - b;
				break;

			case '*':
				answer = a * b;
				break;

			case '/':
				answer = a / b
				break;

			case '?':
				flg_break = true;
				break;
		}

		if(flg_break) break;

		cout << answer << endl;
	}

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:38: error: expected ';' before 'case'
   20 |                                 break
      |                                      ^
      |                                      ;
   21 | 
   22 |                         case '-':
      |                         ~~~~          
a.cc:31:47: error: expected ';' before 'break'
   31 |                                 answer = a / b
      |                                               ^
      |                                               ;
   32 |                                 break;
      |                                 ~~~~~
Language: C++

// ITP1_4_C
#include<iostream>
#define PI 3.141592653589
using namespace std;
int main(){
	while(true){
		int x,t;
		char c; // ?????????:char??§?????? 
		cin >> x >> c >> y;
		if (c=='?') break;
		int z;
		switch(c){
		  case '+':
			z=x+y;
			break;
		  case '-':
			z=x-y;
			break;
		  case '*':
			z=x*y;
			break;
		  case '/':
			z=x/y;
			break;
		}
		printf("%d\n",z);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: 'y' was not declared in this scope
    9 |                 cin >> x >> c >> y;
      |                                  ^
Language: C++

#include <iostream>
using namespace std;

int main(){
 int a,b;
 char op;

 while(1)
  cin >> a >> op >> b;
  if(op=='+')cout << a+b << endl;
  if(op=='-')cout << a-b << endl;
  if(op=='/')cout << a/b << endl;
  if(op=='*')cout << a*b << endl;
  if(op=='0')break;
 }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: break statement not within loop or switch
   14 |   if(op=='0')break;
      |              ^~~~~
a.cc: At global scope:
a.cc:16:2: error: expected unqualified-id before 'return'
   16 |  return 0;
      |  ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(){
 int a,b;
 char op;

 while(1)
  cin >> a >> op >> b;
  if(op=='+')cout << a+b << endl;
  else if(op=='-')cout << a-b << endl;
  else if(op=='/')cout << a/b << endl;
  else if(op=='*')cout << a*b << endl;
  else break;
 }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: break statement not within loop or switch
   14 |   else break;
      |        ^~~~~
a.cc: At global scope:
a.cc:16:2: error: expected unqualified-id before 'return'
   16 |  return 0;
      |  ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(){
 int a,b;
 char op;

 while(1)
  cin >> a >> op >> b;
  if(op=='+'){
   cout << a+b << endl;
  }
  else if(op=='-'){
   cout << a-b << endl;
  }
  else if(op=='/'){
   cout << a/b << endl;
  }
  else if(op=='*'){
   cout << a*b << endl;
  }
  else{
   break;
  }
 }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:4: error: break statement not within loop or switch
   23 |    break;
      |    ^~~~~
a.cc: At global scope:
a.cc:26:2: error: expected unqualified-id before 'return'
   26 |  return 0;
      |  ^~~~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(){
 int a,b;
 char op;

 while(1)
  cin >> a >> op >> b;
  if(op=='+')cout << a+b << endl;
  if(op=='-')cout << a-b << endl;
  if(op=='/')cout << a/b << endl;
  if(op=='*')cout << a*b << endl;
  if(op=='?')break;
 }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: break statement not within loop or switch
   14 |   if(op=='?')break;
      |              ^~~~~
a.cc: At global scope:
a.cc:16:2: error: expected unqualified-id before 'return'
   16 |  return 0;
      |  ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<stdio.h>

int main(){
  int a,b,i,j,x[10000];
  char op;
  for(i=0;i<10000;i++){
    scanf("%d %c %d",&a,&c,&d);
    if(op=="+"){
      x[i]=a+b;
    }
    else if(op=="-"){
      x[i]=a-b;
    }
    else if(op=="*"){
      x[i]=a*b;
    }
    else if(op=="/"){
      x[i]=a/b;
    }
    else{
      break;
    }
  }
  for(j=0;j<i;j++){
    printf("%d\n",x[j]);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: 'c' was not declared in this scope
    7 |     scanf("%d %c %d",&a,&c,&d);
      |                          ^
a.cc:7:29: error: 'd' was not declared in this scope
    7 |     scanf("%d %c %d",&a,&c,&d);
      |                             ^
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(op=="+"){
      |        ~~^~~~~
a.cc:11:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     else if(op=="-"){
      |             ~~^~~~~
a.cc:14:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else if(op=="*"){
      |             ~~^~~~~
a.cc:17:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     else if(op=="/"){
      |             ~~^~~~~
Language: C++

#include <sstdio.h>
int main(void){
	int a = 0, b = 0, c = 0;
	char op;

	while (1){
		scanf("%d %c %d", &a, &op, &b);

		if (op == '+'){
			c = a + b;
			printf("%d\n", c);
		}
		else if (op == '-'){
			c = a - b;
			printf("%d\n", c);
		}
		else if (op == '*'){
			c = a*b;
			printf("%d\n", c);
		}
		else if (op == '/'){
			c = a / b;
			printf("%d\n", c);
		}
		else{
			break;
		}
	}
}

Compiler output:
a.cc:1:10: fatal error: sstdio.h: No such file or directory
    1 | #include <sstdio.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include "cstdio"

int main(){
char op;
int a,b,ans;
while(1){
scanf("%d  %c %d",&a,&op,&b);
if(op == ?) break;
switch(op)
:+
ans = a+b;
break;

:-
ans = a-b;
break;

:*
ans = a*b;
break;

:/
ans = a/b;
break;

printf("%d",ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected primary-expression before '?' token
    8 | if(op == ?) break;
      |          ^
a.cc:8:11: error: expected primary-expression before ')' token
    8 | if(op == ?) break;
      |           ^
a.cc:8:11: error: expected ':' before ')' token
    8 | if(op == ?) break;
      |           ^
      |           :
a.cc:8:11: error: expected primary-expression before ')' token
a.cc:10:1: error: expected primary-expression before ':' token
   10 | :+
      | ^
a.cc:14:1: error: expected primary-expression before ':' token
   14 | :-
      | ^
a.cc:18:1: error: expected primary-expression before ':' token
   18 | :*
      | ^
a.cc:22:1: error: expected primary-expression before ':' token
   22 | :/
      | ^
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include "cstdio"

int main(){
char op;
int a,b,ans;
while(1){
scanf("%d  %c %d",&a,&op,&b);
if(op == "?") break;
switch(op)
case +:
ans = a+b;
break;

case -:
ans = a-b;
break;

case *:
ans = a*b;
break;

case /:
ans = a/b;
break;

printf("%d",ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 | if(op == "?") break;
      |    ~~~^~~~~~
a.cc:10:7: error: expected primary-expression before ':' token
   10 | case +:
      |       ^
a.cc:14:7: error: expected primary-expression before ':' token
   14 | case -:
      |       ^
a.cc:14:1: error: case label '<expression error>' not within a switch statement
   14 | case -:
      | ^~~~
a.cc:18:7: error: expected primary-expression before ':' token
   18 | case *:
      |       ^
a.cc:18:1: error: case label '<expression error>' not within a switch statement
   18 | case *:
      | ^~~~
a.cc:22:6: error: expected primary-expression before '/' token
   22 | case /:
      |      ^
a.cc:22:7: error: expected primary-expression before ':' token
   22 | case /:
      |       ^
a.cc:22:1: error: case label '<expression error>' not within a switch statement
   22 | case /:
      | ^~~~
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include "cstdio"

int main(){
char op;
int a,b,ans;
while(1){
scanf("%d  %c %d",&a,&op,&b);
if(op == '?') break;
switch(op)
case +:
ans = a+b;
break;

case -:
ans = a-b;
break;

case *:
ans = a*b;
break;

case /:
ans = a/b;
break;

printf("%d",ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: expected primary-expression before ':' token
   10 | case +:
      |       ^
a.cc:14:7: error: expected primary-expression before ':' token
   14 | case -:
      |       ^
a.cc:14:1: error: case label '<expression error>' not within a switch statement
   14 | case -:
      | ^~~~
a.cc:18:7: error: expected primary-expression before ':' token
   18 | case *:
      |       ^
a.cc:18:1: error: case label '<expression error>' not within a switch statement
   18 | case *:
      | ^~~~
a.cc:22:6: error: expected primary-expression before '/' token
   22 | case /:
      |      ^
a.cc:22:7: error: expected primary-expression before ':' token
   22 | case /:
      |       ^
a.cc:22:1: error: case label '<expression error>' not within a switch statement
   22 | case /:
      | ^~~~
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include "cstdio"

int main(){
char op;
int a,b,ans;
while(1){
scanf("%d  %c %d",&a,&op,&b);
if(op == '?') break;
switch(op){
case +:
ans = a+b;
break;

case -:
ans = a-b;
break;

case *:
ans = a*b;
break;

case /:
ans = a/b;
break;
}
printf("%d",ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: expected primary-expression before ':' token
   10 | case +:
      |       ^
a.cc:14:7: error: expected primary-expression before ':' token
   14 | case -:
      |       ^
a.cc:18:7: error: expected primary-expression before ':' token
   18 | case *:
      |       ^
a.cc:22:6: error: expected primary-expression before '/' token
   22 | case /:
      |      ^
a.cc:22:7: error: expected primary-expression before ':' token
   22 | case /:
      |       ^
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include "cstdio"

int main(){
char op;
int a,b,ans;
while(1){
scanf("%d  %c %d",&a,&op,&b);
if(op == '?') break;
switch(op){
case '+':
ans = a+b;
break;

case '-':
ans = a-b;
break;

case '*':
ans = a*b;
break;

case '/':
ans = a/b;
break;
}
printf("%d",ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <stdio.h>

int a,b;

int main(){
  scanf("%d %c %d",&a,&op,&b);
  if(op == '+'){
    printf("%d",a+b);
  } else if(op == '-'){
    printf("%d",a-b);
  } else if(op == '*'){
    printf("%d",a*b);
  } else if(op == '/'){
    printf("%d",a/b);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: 'op' was not declared in this scope
    6 |   scanf("%d %c %d",&a,&op,&b);
      |                        ^~
Language: C++

#include <stdio.h>

int a,b;
char op;

int main(){
  scanf("%d %c %d",&a,&op,&b);
  if(op == '+'){
    printf("%d\n",a+b);
  } else if(op == '-'){
    printf("%d\n",a-b);
  } else if(op == '*'){
    printf("%d\n",a*b);
  } else if(op == '/'){
    printf("%d\n",a/b);
  } else {
    break;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: break statement not within loop or switch
   17 |     break;
      |     ^~~~~
Language: C++

int main(){

    int a, b;
    char op;

    while(1){

    cin >> a >> op >> b;
    
    if( op == '?' ) break;	 

    if( op == '+' ) cout << a + b << endl;

    else if( op == '-' ) cout << a - b << endl;

    else if( op == '*' ) cout << a * b << endl;

    else if( op == '/' ) cout << a / b << endl;

    /*else {
    	
    	cout << "Invaid Input!" << endl;

    	break;
        
         }*/ //??¨?????????????????¨????????£?????????break???????????¨?????????Invaid??¨???????¶???????
             //??\??????????????¢??¨cin?????¨?????????????????¢???????????¨????????????
             //??????????????¨?????????????????????????????¶???????????¨???????????°????????????????????????
    }

	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> a >> op >> b;
      |     ^~~
a.cc:12:21: error: 'cout' was not declared in this scope
   12 |     if( op == '+' ) cout << a + b << endl;
      |                     ^~~~
a.cc:12:38: error: 'endl' was not declared in this scope
   12 |     if( op == '+' ) cout << a + b << endl;
      |                                      ^~~~
a.cc:14:26: error: 'cout' was not declared in this scope
   14 |     else if( op == '-' ) cout << a - b << endl;
      |                          ^~~~
a.cc:14:43: error: 'endl' was not declared in this scope
   14 |     else if( op == '-' ) cout << a - b << endl;
      |                                           ^~~~
a.cc:16:26: error: 'cout' was not declared in this scope
   16 |     else if( op == '*' ) cout << a * b << endl;
      |                          ^~~~
a.cc:16:43: error: 'endl' was not declared in this scope
   16 |     else if( op == '*' ) cout << a * b << endl;
      |                                           ^~~~
a.cc:18:26: error: 'cout' was not declared in this scope
   18 |     else if( op == '/' ) cout << a / b << endl;
      |                          ^~~~
a.cc:18:43: error: 'endl' was not declared in this scope
   18 |     else if( op == '/' ) cout << a / b << endl;
      |                                           ^~~~
Language: C++

#include<bits/stdc++.h>
#define ll long long int
#define FOR(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++)
#define REP(i,n) FOR(i,0,n)
#define REP1(i,n) FOR(i,1,n)
using namespace std;

int main () {
  int a, b, ans;
  char op;

  do {
    cin >> a >> op >> b;
    if (op == '?') {
      break;
    }

    switch (op) {
      case '+': 
        ans = a + b;
        break;
      case '-': 
        ans = a - b;
        break;
      case '*': 
        ans = a*b;
        break;
      case '/': 
        ans = a/b;
        break;
    }
    cout << ans << endl;
  } while (op != '?')

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:22: error: expected ';' before 'return'
   33 |   } while (op != '?')
      |                      ^
      |                      ;
   34 | 
   35 |   return 0;
      |   ~~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <iomanip>
using namespace std;
const int M = 100000;
const double pi = 3.141592653589;

int main()
{
	int a, b;
	char c;
	while (1) {
		cin >> a >> c >> b;
		if (c == '?') break;
		if (c == '+') {
			cout << a + b < , endl;
		}
		else if (c == '-') {
			cout << a - b;
		}
		else if (c == '*') {
			cout << a*b;
		}
		else if (c == '/') {
			cout << a / b;
		}

	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:41: error: expected primary-expression before ',' token
   16 |                         cout << a + b < , endl;
      |                                         ^
Language: C++

public class Main {

	public static void main(String[] args) {
		{
			Scanner stdin = new Scanner(System.in);
			List<Integer> result = new ArrayList<>();
			int i = 0, count = 0;
			while (true) {
				String[] input = stdin.nextLine().split(" ");
				int a = 0;
				int b = 0;
				char operation = 0;
				a = Integer.parseInt(input[0]);
			    operation = input[1].charAt(0);
			    b = Integer.parseInt(input[2]);
				if (operation == '?') {
					break;
				}
				switch (operation) {
				case '+':
					result.add(a + b);
					break;

				case '-':
					result.add(a - b);
					break;
				case '*':
					result.add(a * b);
					break;
				case '/':
					result.add(a / b);
					break;
				}
				count = i;
				i++;
			}
			for (int j = 0; j < result.size(); j++) {
				System.out.println(result.get(j));
			}
		}
	}
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'public'
    1 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>

int main()
{
	int a, b, c;
	char o;
	for (;;) {
		std::cin >> a >> o >> b;
		switch (o) {
		case '+':
			c = a + b;
			break;
		case '-':
			c = a - b;
			break;
		case '*':
			c = a * b;
			break;
		case '/':
			c = a / b;
			break;
		case'?':
			return;
		}
		std::cout << c << '\n';
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   23 |                         return;
      |                         ^~~~~~
Language: C++

while True:
    a, op, b=map(int, input().split())
    if op=='+':
        result=a+b
    if op=='-':
        result=a-b
    if op=='*':
        result=a*b
    if op=='/':
        result=a/b
    if op=='?':
        break
    print("{0}".format(result))

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while True:
      | ^~~~~
Language: C++

#include<iostream>

using namespace std;

int main() {
    cin >> a >> op >> b;
    while (true) {
        if (op == "?") {
            break;
        }
        else if (op == "+") {
            cout << a + b << endl;
        }
        else if (op == "-") {
            cout << a - b << endl;
        }
        else if (op == "*") {
            cout << a * b << endl;
        }
        else if (op == "/") {
            cout << a / b << endl;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'a' was not declared in this scope
    6 |     cin >> a >> op >> b;
      |            ^
a.cc:6:17: error: 'op' was not declared in this scope
    6 |     cin >> a >> op >> b;
      |                 ^~
a.cc:6:23: error: 'b' was not declared in this scope
    6 |     cin >> a >> op >> b;
      |                       ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(int argc, char const *argv[])
{
    int a, b, ans;
    char op;
    cin >> a >> op >> b;
    while (true) {
        if (op == "?") {
            break;
        }

        if (op == "+") {
            ans = a + b;
        } else if (op == "-"){
            ans = a - b;
        } else if (op == "*") {
            ans = a * b;
        } else if (op == "/") {
            ans = a / b;
        }
        cout << ans << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:11:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if (op == "?") {
      |             ~~~^~~~~~
a.cc:15:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if (op == "+") {
      |             ~~~^~~~~~
a.cc:17:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         } else if (op == "-"){
      |                    ~~~^~~~~~
a.cc:19:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |         } else if (op == "*") {
      |                    ~~~^~~~~~
a.cc:21:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |         } else if (op == "/") {
      |                    ~~~^~~~~~