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

#include <iostream>
#include <string>
using namespace std;

int main(){
	int a, b;
	char op;
	while (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:9:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |                 if (op == "+"){
      |                     ~~~^~~~~~
a.cc:12:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |                 else if (op == "-"){
      |                          ~~~^~~~~~
a.cc:15:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |                 else if (op == "*"){
      |                          ~~~^~~~~~
a.cc:18:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |                 else if (op == "/"){
      |                          ~~~^~~~~~
Language: C++

#include <cstdio>
#include <cstring>
int main()
{
 int a,b,c;
 char v[3];
 while(treu){
  scanf("%d %s %d\n",&a,v,&b);
  if (strcmp(v,"?")==0) break;
  if (strcmp(v,"+")==0) c=a+b;
  if (strcmp(v,"-")==0) c=a-b;
  if (strcmp(v,"*")==0) c=a*b;
  if (strcmp(v,"/")==0) c=a/b;
  printf("%d\n",c);
 }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'treu' was not declared in this scope
    7 |  while(treu){
      |        ^~~~
Language: C++

#include <iostream>
#include <iomanip>
#define _USE_MATH_DEFINES
#include <math.h>

using namespace std;
 
int main(){

int a,b,result;
char op;

cin >> a >> op >> b;

if(op == "+"){
	result = a+b;
}else if(op == "-"){
	result = a-b;
}else if(op == "*"){
	result = a*b;
}else if(op == "/"){
	result = a/b;
}

cout << result << endl;


return 0;
}

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

str = raw_input()
a = map(int, str[0])
op = str[1]
b = map(int, str[2])

if op == '+':
  print a+b
elif op == '-':
  print a-b
elif op == '*':
  print a*b
elif op == '/':
  print a/b

Compiler output:
a.cc:1:1: error: 'str' does not name a type
    1 | str = raw_input()
      | ^~~
Language: C++

#include <iostream>
#include <utility>
#include <cstdio>

using namespace std;

int main(void) {

    while (true) {
        int a, op, b, result;
//        cin >> a >> op >> b;
        scanf("%d %c %d", &a, &op, &b)g;
        switch (op) {
            case '+':
                result = a + b;
                break;
            case '-':
                result = a - b;
                break;
            case '*':
                result = a * b;
                break;
            case '/':
                result = a / b;
                break;
            default:
                goto END;
                break;
        }
        printf("%d\n", result);
    }

END:
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:39: error: expected ';' before 'g'
   12 |         scanf("%d %c %d", &a, &op, &b)g;
      |                                       ^
      |                                       ;
Language: C++

#include<cstdio>
int main() {
    int a, b;
    char op;
    while (true) {
        scanf_s("%d %c %d", &a, &op, &b);
        if (op == '?' )break;
        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 if (op == '/')printf("%d\n", a / b);
        else {}
    }
    return 0;
}

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

#include<iostream>
#include<iomanip>
using namespace std;

int main(){
	int a,b;
	char op;
	cin >> a >> op >> b;
	while(op != "?"){
		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;
		}
		cin >> a >> op >> b;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         while(op != "?"){
      |               ~~~^~~~~~
a.cc:10:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |                 if (op == "+"){
      |                     ~~~^~~~~~
a.cc:12:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |                 }else if(op == "-"){
      |                          ~~~^~~~~~
a.cc:14:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |                 }else if(op == "*"){
      |                          ~~~^~~~~~
a.cc:16:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                 }else if(op == "/"){
      |                          ~~~^~~~~~
Language: C++

#include <cstdio>

using namespace std;

int main(void) {
    int a, b;
    char op;
    
    while(1){
        scanf("%d%c%d", a, op, b);
    
        switch(op){
            case '+':
                printf("%d\n", a + b);
                break;
            case '*':
                printf("%d\n", a * b);
                break;
            case '-':
                printf("%d\n", a - b);
                break;
            case '/':
                printf("%d\n", (int)((float)a / b);
                break;
        }
        if(op == '?'){
            break;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:51: error: expected ')' before ';' token
   23 |                 printf("%d\n", (int)((float)a / b);
      |                       ~                           ^
      |                                                   )
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main() {

  int x, y;
  char op;
  

  cin >> x >> op >> y;

  switch(op) {
  case '+':
    cout << x + y << endl;
    break;
  case '-':
    cout << x - y << endl;
    break;
  case '*':
    cout << x * y << endl;
    break;
  case '/':
    cout << x / y << endl;
    Break;
  default:
    cout << 0 << endl;    
    break;
  }
      
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:5: error: 'Break' was not declared in this scope
   25 |     Break;
      |     ^~~~~
Language: C++

#include<iostream>
using namespace std;

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

	while (true) {
		cin >> a >> op >> b;
		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:10:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |                 if (op == "?")  break;
      |                     ~~~^~~~~~
a.cc:11:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |                 else if (op == "+") cout << a + b << endl;
      |                          ~~~^~~~~~
a.cc:12:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |                 else if (op == "-")     cout << a - b << endl;
      |                          ~~~^~~~~~
a.cc:13:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |                 else if (op == "*")     cout << a * b << endl;
      |                          ~~~^~~~~~
a.cc:14:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |                 else if (op == "/") cout << a / b << endl;
      |                          ~~~^~~~~~
Language: C++

#include <stdio.h>
main()
{
  int a,b;
  char op;
  while(1){ 
     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 if( op == '?')
      break ;}
  return 0;
}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:35: error: expected ';' before 'if'
    7 |      scanf("%d %c %d",&a, &op, &b)
      |                                   ^
      |                                   ;
    8 |     if ( op =='+' ){
      |     ~~                             
a.cc:10:7: error: 'else' without a previous 'if'
   10 |     } else if ( op =='-' ){
      |       ^~~~
Language: C++

 #include <iostream>
using namespace std;
 int main(){
 	int a , b ;
 	char op ;
 	cin >> a >> op >> b ;
		0 <= a , b <= 20000 ;
		b != 0 ; 	
 	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 if ( op == '?' )break;

 }

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

#include <stdio.h>

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |        if(op == "?") return 0;
      |           ~~~^~~~~~
Language: C++

#include <iostream>
#include <fstream>
#include <string>


using namespace std;

int main(){
#ifdef CIN
	ifstream cin("input.txt");
	 ofstream cout("output.txt");
	
#endif

	int a, b;
	string op;


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

		if (op[0] == '?') break;

		switch (op[0]){
		case '+':
		{
					cout << a + b <<endl;
				  break;

		}
		case '-':
		{
					cout << a - b << endl;
				  break;

		}
		case '*':
		{
					cout << a * b << endl;
				  break;
		}
		case '/':
		{
					cout << a / b << endl;
				   break;
		}
		
		
	}
}

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

#include<iostream>
#include<stdio.h>
using namespace std;

int main()
{
	int a,b;
	int c;
	char d;

	while(d == '?'){
		cin >> a >> c >> b;

		if(c == '+'){
			d = a + b;
		}
		if(c == '-'){
			d = a - b
		}
		if(c == '*'){
			d = a * b;
		}
		if(c == '/'){
			d = a / b;
		}

		cout << d;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:34: error: expected ';' before '}' token
   18 |                         d = a - b
      |                                  ^
      |                                  ;
   19 |                 }
      |                 ~
Language: C++

#include<iostream>
using namespace std;

int main()
{
	int a,b;
	int c;
	char d;

	while(d == '?'){
		cin >> a >> c >> b;

		if(c == '+'){
			d = a + b;
		}
		if(c == '-'){
			d = a - b
		}
		if(c == '*'){
			d = a * b;
		}
		if(c == '/'){
			d = a / b;
		}

		cout << d << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:34: error: expected ';' before '}' token
   17 |                         d = a - b
      |                                  ^
      |                                  ;
   18 |                 }
      |                 ~
Language: C++

#include<iostream>
using namespace std;

int main()
{
	int a,b;
	int c;
	char d;

	while(d == '?'){
		cin >> a >> d >> b;

		if(d == '+'){
			c = a + b;
		}
		if(d == '-'){
			c = a - b
		}
		if(d == '*'){
			c = a * b;
		}
		if(d == '/'){
			c = a / b;
		}

		cout << c << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:34: error: expected ';' before '}' token
   17 |                         c = a - b
      |                                  ^
      |                                  ;
   18 |                 }
      |                 ~
Language: C++

#include<iostream>
#include<srting>

using namespace std;

int main()
{
	int a,b;
	string 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 if (op=="?")
    	break;
}
return 0;
}

Compiler output:
a.cc:2:9: fatal error: srting: No such file or directory
    2 | #include<srting>
      |         ^~~~~~~~
compilation terminated.
Language: C++

#include<stdio.h>
int main() {
	int a[i],b[i];
	char c[i];
do{
	scanf("%d",&a[i]);
	scanf("%c",&c[i]);
	scanf("%d",&b[i]);
}while(c[i-1]!='?');
if (c =='+') printf("%d", a + b);
if (c =='-') printf("%d", a - b);
if (c =='*') printf("%d", a * b);
if (c =='/') printf("%d", a / b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:15: error: 'i' was not declared in this scope
    3 |         int a[i],b[i];
      |               ^
a.cc:6:21: error: 'a' was not declared in this scope
    6 |         scanf("%d",&a[i]);
      |                     ^
a.cc:7:21: error: 'c' was not declared in this scope
    7 |         scanf("%c",&c[i]);
      |                     ^
a.cc:8:21: error: 'b' was not declared in this scope
    8 |         scanf("%d",&b[i]);
      |                     ^
a.cc:9:8: error: 'c' was not declared in this scope
    9 | }while(c[i-1]!='?');
      |        ^
a.cc:10:27: error: 'a' was not declared in this scope
   10 | if (c =='+') printf("%d", a + b);
      |                           ^
a.cc:10:31: error: 'b' was not declared in this scope
   10 | if (c =='+') printf("%d", a + b);
      |                               ^
a.cc:11:27: error: 'a' was not declared in this scope
   11 | if (c =='-') printf("%d", a - b);
      |                           ^
a.cc:11:31: error: 'b' was not declared in this scope
   11 | if (c =='-') printf("%d", a - b);
      |                               ^
a.cc:12:27: error: 'a' was not declared in this scope
   12 | if (c =='*') printf("%d", a * b);
      |                           ^
a.cc:12:31: error: 'b' was not declared in this scope
   12 | if (c =='*') printf("%d", a * b);
      |                               ^
a.cc:13:27: error: 'a' was not declared in this scope
   13 | if (c =='/') printf("%d", a / b);
      |                           ^
a.cc:13:31: error: 'b' was not declared in this scope
   13 | if (c =='/') printf("%d", a / b);
      |                               ^
Language: C++

#include<stdio.h>
int main() {
	int a[100],b[100];
	char c[100];
do{
	scanf("%d",&a[i]);
	scanf("%c",&c[i]);
	scanf("%d",&b[i]);
}while(c[i-1]!='?');
if (c =='+') printf("%d", a + b);
if (c =='-') printf("%d", a - b);
if (c =='*') printf("%d", a * b);
if (c =='/') printf("%d", a / b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'i' was not declared in this scope
    6 |         scanf("%d",&a[i]);
      |                       ^
a.cc:9:10: error: 'i' was not declared in this scope
    9 | }while(c[i-1]!='?');
      |          ^
a.cc:10:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 | if (c =='+') printf("%d", a + b);
      |     ~~^~~~~
a.cc:10:29: error: invalid operands of types 'int [100]' and 'int [100]' to binary 'operator+'
   10 | if (c =='+') printf("%d", a + b);
      |                           ~ ^ ~
      |                           |   |
      |                           |   int [100]
      |                           int [100]
a.cc:11:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 | if (c =='-') printf("%d", a - b);
      |     ~~^~~~~
a.cc:12:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 | if (c =='*') printf("%d", a * b);
      |     ~~^~~~~
a.cc:12:29: error: invalid operands of types 'int [100]' and 'int [100]' to binary 'operator*'
   12 | if (c =='*') printf("%d", a * b);
      |                           ~ ^ ~
      |                           |   |
      |                           |   int [100]
      |                           int [100]
a.cc:13:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 | if (c =='/') printf("%d", a / b);
      |     ~~^~~~~
a.cc:13:29: error: invalid operands of types 'int [100]' and 'int [100]' to binary 'operator/'
   13 | if (c =='/') printf("%d", a / b);
      |                           ~ ^ ~
      |                           |   |
      |                           |   int [100]
      |                           int [100]
Language: C++

#include<stdio.h>
int main() {
	int a[100],b[100];
	char c[100];
do{
	scanf("%d",&a[i]);
	scanf("%c",&c[i]);
	scanf("%d",&b[i]);
}while(c[i-1]!=='?');
if (c =='+') printf("%d\n", a + b);
if (c =='-') printf("%d\n", a - b);
if (c =='*') printf("%d\n", a * b);
if (c =='/') printf("%d\n", a / b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'i' was not declared in this scope
    6 |         scanf("%d",&a[i]);
      |                       ^
a.cc:9:10: error: 'i' was not declared in this scope
    9 | }while(c[i-1]!=='?');
      |          ^
a.cc:9:16: error: expected primary-expression before '=' token
    9 | }while(c[i-1]!=='?');
      |                ^
a.cc:10:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 | if (c =='+') printf("%d\n", a + b);
      |     ~~^~~~~
a.cc:10:31: error: invalid operands of types 'int [100]' and 'int [100]' to binary 'operator+'
   10 | if (c =='+') printf("%d\n", a + b);
      |                             ~ ^ ~
      |                             |   |
      |                             |   int [100]
      |                             int [100]
a.cc:11:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 | if (c =='-') printf("%d\n", a - b);
      |     ~~^~~~~
a.cc:12:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 | if (c =='*') printf("%d\n", a * b);
      |     ~~^~~~~
a.cc:12:31: error: invalid operands of types 'int [100]' and 'int [100]' to binary 'operator*'
   12 | if (c =='*') printf("%d\n", a * b);
      |                             ~ ^ ~
      |                             |   |
      |                             |   int [100]
      |                             int [100]
a.cc:13:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 | if (c =='/') printf("%d\n", a / b);
      |     ~~^~~~~
a.cc:13:31: error: invalid operands of types 'int [100]' and 'int [100]' to binary 'operator/'
   13 | if (c =='/') printf("%d\n", a / b);
      |                             ~ ^ ~
      |                             |   |
      |                             |   int [100]
      |                             int [100]
Language: C++

#include<stdio.h>
int main() {
	int a[100],b[100],i=0;
	char c[100];
do{
	scanf("%d",&a[i]);
	scanf("%c",&c[i]);
	scanf("%d",&b[i]);
i++;
}while(c[i-1]!=='?');
if (c =='+') printf("%d\n", a + b);
if (c =='-') printf("%d\n", a - b);
if (c =='*') printf("%d\n", a * b);
if (c =='/') printf("%d\n", a / b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected primary-expression before '=' token
   10 | }while(c[i-1]!=='?');
      |                ^
a.cc:11:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 | if (c =='+') printf("%d\n", a + b);
      |     ~~^~~~~
a.cc:11:31: error: invalid operands of types 'int [100]' and 'int [100]' to binary 'operator+'
   11 | if (c =='+') printf("%d\n", a + b);
      |                             ~ ^ ~
      |                             |   |
      |                             |   int [100]
      |                             int [100]
a.cc:12:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 | if (c =='-') printf("%d\n", a - b);
      |     ~~^~~~~
a.cc:13:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 | if (c =='*') printf("%d\n", a * b);
      |     ~~^~~~~
a.cc:13:31: error: invalid operands of types 'int [100]' and 'int [100]' to binary 'operator*'
   13 | if (c =='*') printf("%d\n", a * b);
      |                             ~ ^ ~
      |                             |   |
      |                             |   int [100]
      |                             int [100]
a.cc:14:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 | if (c =='/') printf("%d\n", a / b);
      |     ~~^~~~~
a.cc:14:31: error: invalid operands of types 'int [100]' and 'int [100]' to binary 'operator/'
   14 | if (c =='/') printf("%d\n", a / b);
      |                             ~ ^ ~
      |                             |   |
      |                             |   int [100]
      |                             int [100]
Language: C++

#include<stdio.h>
int main() {
	int a[100], b[100],i=0;
	char c[100];
	do {
		scanf_s("%d", &a[i]);
		scanf_s("%c", &c[i]);
		scanf_s("%d", &b[i]);
		
			i++;
	} while (c[i - 1] != '?');
	for (int z = 0; z < i - 1; z++) {
		if (c[z] == '+') printf("%d\n", a[z] + b[z]);
		else if (c[z] == '-') printf("%d\n", a[z] - b[z]);
		else if (c[z] == '*') printf("%d\n", a[z] * b[z]);
		else if (c[z] == '/') printf("%d\n", a[z] / b[z]);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |                 scanf_s("%d", &a[i]);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include <iostream>
#include <algorithm>
#include <iomanip>
#include <string>
#include <cmath>
using namespace std;
int main(){
	int a,b,i;
	string op;
	cin>>a>>op>>b;
	if(op == "+"){
		i = a+b;
	} else if(op == "-"){
		i = a-b;
	} else if(op == "*"){
		i = a*b;
	} else if(op == "/"){
		(double)i =(double)a/b;
	} else{
		return 0;
	}
	cout<<i<<endl;

	


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: lvalue required as left operand of assignment
   18 |                 (double)i =(double)a/b;
      |                 ^~~~~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int a,b;
  string op;
  cin >> a >> op >> b;
  cout << a op b <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'op'
    8 |   cout << a op b <<endl;
      |            ^~~
      |            ;
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int a,b;
  string op;
  cin >> a >> op >> b;
  cout << (a op b) <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ')' before 'op'
    8 |   cout << (a op b) <<endl;
      |           ~ ^~~
      |             )
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b;
  char op;
while(int i=1;;i++){
  cin >> a >> op >> b;
    swicth(op){
      case "?":break;
      case "+":cout << a+b << endl;
               continue;
      case "-":cout << a-b << endl;
               continue;
      case "*":cout << a*b << endl;
               continue;
      case "/":cout << a/b << endl;
               continue;
    }
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected ')' before ';' token
    6 | while(int i=1;;i++){
      |      ~       ^
      |              )
a.cc:6:16: error: 'i' was not declared in this scope
    6 | while(int i=1;;i++){
      |                ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b;
  char op;
  while(cin >> a >> op >> b;){
    swicth(op){
      case "?":break;
      case "+":cout << a+b << endl;
               continue;
      case "-":cout << a-b << endl;
               continue;
      case "*":cout << a*b << endl;
               continue;
      case "/":cout << a/b << endl;
               continue;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: expected ')' before ';' token
    6 |   while(cin >> a >> op >> b;){
      |        ~                   ^
      |                            )
a.cc:6:29: error: expected primary-expression before ')' token
    6 |   while(cin >> a >> op >> b;){
      |                             ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b;
  char op;
  while(cin >> a >> op >> b){
    swicth(op){
      case "?":break;
      case "+":cout << a+b << endl;
               continue;
      case "-":cout << a-b << endl;
               continue;
      case "*":cout << a*b << endl;
               continue;
      case "/":cout << a/b << endl;
               continue;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'swicth' was not declared in this scope
    7 |     swicth(op){
      |     ^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b;
  char op;
  while(cin >> a >> op >> b){
    switch(op){
      case "?":break;
      case "+":cout << a+b << endl;
               continue;
      case "-":cout << a-b << endl;
               continue;
      case "*":cout << a*b << endl;
               continue;
      case "/":cout << a/b << endl;
               continue;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: conversion from 'const char*' to 'int' in a converted constant expression
    8 |       case "?":break;
      |            ^~~
a.cc:8:12: error: could not convert '"?"' from 'const char [2]' to 'int'
    8 |       case "?":break;
      |            ^~~
      |            |
      |            const char [2]
a.cc:9:12: error: conversion from 'const char*' to 'int' in a converted constant expression
    9 |       case "+":cout << a+b << endl;
      |            ^~~
a.cc:9:12: error: could not convert '"+"' from 'const char [2]' to 'int'
    9 |       case "+":cout << a+b << endl;
      |            ^~~
      |            |
      |            const char [2]
a.cc:11:12: error: conversion from 'const char*' to 'int' in a converted constant expression
   11 |       case "-":cout << a-b << endl;
      |            ^~~
a.cc:11:12: error: could not convert '"-"' from 'const char [2]' to 'int'
   11 |       case "-":cout << a-b << endl;
      |            ^~~
      |            |
      |            const char [2]
a.cc:13:12: error: conversion from 'const char*' to 'int' in a converted constant expression
   13 |       case "*":cout << a*b << endl;
      |            ^~~
a.cc:13:12: error: could not convert '"*"' from 'const char [2]' to 'int'
   13 |       case "*":cout << a*b << endl;
      |            ^~~
      |            |
      |            const char [2]
a.cc:15:12: error: conversion from 'const char*' to 'int' in a converted constant expression
   15 |       case "/":cout << a/b << endl;
      |            ^~~
a.cc:15:12: error: could not convert '"/"' from 'const char [2]' to 'int'
   15 |       case "/":cout << a/b << endl;
      |            ^~~
      |            |
      |            const char [2]
Language: C++

while 1:
    a,op,b = input().split()
    if a == b == 0: break

    if op == '+':
        print("{}".format(int(a)+int(b)))
    elif op == '-':
        print("{}".format(int(a)-int(b)))
    elif op == '*':
        print("{}".format(int(a)*int(b)))
    else:
        print("{}".format(int(a)/int(b)))

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:44: error: expected ';' before 'if'
   10 |                         cin >> a >> op >> b
      |                                            ^
      |                                            ;
   11 |                         if (op == '+') {
      |                         ~~                  
a.cc:15:25: error: 'else' without a previous 'if'
   15 |                         else if (op == '-'){
      |                         ^~~~
Language: C++

#include <iostream>
using namespace std;
int ()
{
	int a,b,c,x,y;
	char op;
	for ( ; ; y++ ){
		cin >> a >> op >> b
		if ( op == '+' ){
			x = a + b;
            cout << x << endl; 
    }
        else if ( op == '-' ){
            x = a - b;
            cout << x << endl;  
    }
        else if ( op == '*' ){
        	x = a * b;
        	cout << x << endl;
    }
        else if ( op == '/' ){
        	x = a / b;
        	cout << x << endl;
    }
        if ( op???== '?' ) break;{

    }   
}

Compiler output:
a.cc:25:17: warning: trigraph ??= ignored, use -trigraphs to enable [-Wtrigraphs]
   25 |         if ( op???== '?' ) break;{
a.cc:3:6: error: expected unqualified-id before ')' token
    3 | int ()
      |      ^
Language: C++

#include <iostream>
using namespace std;
int ()
{
	int a,b,c,x,y;
	char op;
	for ( ; ; y++ ){
		cin >> a >> op >> b
		if ( op == '+' ){
			x = a + b;
            cout << x << endl; 
    }
        else if ( op == '-' ){
            x = a - b;
            cout << x << endl;  
    }
        else if ( op == '*' ){
        	x = a * b;
        	cout << x << endl;
    }
        else if ( op == '/' ){
        	x = a / b;
        	cout << x << endl;
    }
        if ( op???== '?' ) break;{

    }
}    
}

Compiler output:
a.cc:25:17: warning: trigraph ??= ignored, use -trigraphs to enable [-Wtrigraphs]
   25 |         if ( op???== '?' ) break;{
a.cc:3:6: error: expected unqualified-id before ')' token
    3 | int ()
      |      ^
Language: C++

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

}
    }
}    

Compiler output:
a.cc:25:22: warning: trigraph ??= ignored, use -trigraphs to enable [-Wtrigraphs]
   25 |         else if ( op???== '?' ) break;{
a.cc: In function 'int main()':
a.cc:25:22: error: expected primary-expression before '?' token
   25 |         else if ( op???== '?' ) break;{
      |                      ^
a.cc:25:23: error: expected primary-expression before '?' token
   25 |         else if ( op???== '?' ) break;{
      |                       ^
a.cc:25:24: error: expected primary-expression before '==' token
   25 |         else if ( op???== '?' ) break;{
      |                        ^~
a.cc:25:30: error: expected ':' before ')' token
   25 |         else if ( op???== '?' ) break;{
      |                              ^~
      |                              :
a.cc:25:31: error: expected primary-expression before ')' token
   25 |         else if ( op???== '?' ) break;{
      |                               ^
a.cc:25:30: error: expected ':' before ')' token
   25 |         else if ( op???== '?' ) break;{
      |                              ^~
      |                              :
a.cc:25:31: error: expected primary-expression before ')' token
   25 |         else if ( op???== '?' ) break;{
      |                               ^
a.cc:25:30: error: expected ':' before ')' token
   25 |         else if ( op???== '?' ) break;{
      |                              ^~
      |                              :
a.cc:25:31: error: expected primary-expression before ')' token
   25 |         else if ( op???== '?' ) break;{
      |                               ^
Language: C++

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

}
    }
} 

Compiler output:
a.cc:25:17: warning: trigraph ??= ignored, use -trigraphs to enable [-Wtrigraphs]
   25 |         if ( op???== '?' ) break;{
a.cc: In function 'int main()':
a.cc:25:17: error: expected primary-expression before '?' token
   25 |         if ( op???== '?' ) break;{
      |                 ^
a.cc:25:18: error: expected primary-expression before '?' token
   25 |         if ( op???== '?' ) break;{
      |                  ^
a.cc:25:19: error: expected primary-expression before '==' token
   25 |         if ( op???== '?' ) break;{
      |                   ^~
a.cc:25:25: error: expected ':' before ')' token
   25 |         if ( op???== '?' ) break;{
      |                         ^~
      |                         :
a.cc:25:26: error: expected primary-expression before ')' token
   25 |         if ( op???== '?' ) break;{
      |                          ^
a.cc:25:25: error: expected ':' before ')' token
   25 |         if ( op???== '?' ) break;{
      |                         ^~
      |                         :
a.cc:25:26: error: expected primary-expression before ')' token
   25 |         if ( op???== '?' ) break;{
      |                          ^
a.cc:25:25: error: expected ':' before ')' token
   25 |         if ( op???== '?' ) break;{
      |                         ^~
      |                         :
a.cc:25:26: error: expected primary-expression before ')' token
   25 |         if ( op???== '?' ) break;{
      |                          ^
Language: C++

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

}
    }
    return 0;
}    

Compiler output:
a.cc:25:17: warning: trigraph ??= ignored, use -trigraphs to enable [-Wtrigraphs]
   25 |         if ( op???== '?' ) break;{
a.cc: In function 'int main()':
a.cc:25:17: error: expected primary-expression before '?' token
   25 |         if ( op???== '?' ) break;{
      |                 ^
a.cc:25:18: error: expected primary-expression before '?' token
   25 |         if ( op???== '?' ) break;{
      |                  ^
a.cc:25:19: error: expected primary-expression before '==' token
   25 |         if ( op???== '?' ) break;{
      |                   ^~
a.cc:25:25: error: expected ':' before ')' token
   25 |         if ( op???== '?' ) break;{
      |                         ^~
      |                         :
a.cc:25:26: error: expected primary-expression before ')' token
   25 |         if ( op???== '?' ) break;{
      |                          ^
a.cc:25:25: error: expected ':' before ')' token
   25 |         if ( op???== '?' ) break;{
      |                         ^~
      |                         :
a.cc:25:26: error: expected primary-expression before ')' token
   25 |         if ( op???== '?' ) break;{
      |                          ^
a.cc:25:25: error: expected ':' before ')' token
   25 |         if ( op???== '?' ) break;{
      |                         ^~
      |                         :
a.cc:25:26: error: expected primary-expression before ')' token
   25 |         if ( op???== '?' ) break;{
      |                          ^
Language: C++

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

}
    }
    return 0;
}    

Compiler output:
a.cc:26:17: warning: trigraph ??= ignored, use -trigraphs to enable [-Wtrigraphs]
   26 |         if ( op???== '?' ) break;{
a.cc: In function 'int main()':
a.cc:26:17: error: expected primary-expression before '?' token
   26 |         if ( op???== '?' ) break;{
      |                 ^
a.cc:26:18: error: expected primary-expression before '?' token
   26 |         if ( op???== '?' ) break;{
      |                  ^
a.cc:26:19: error: expected primary-expression before '==' token
   26 |         if ( op???== '?' ) break;{
      |                   ^~
a.cc:26:25: error: expected ':' before ')' token
   26 |         if ( op???== '?' ) break;{
      |                         ^~
      |                         :
a.cc:26:26: error: expected primary-expression before ')' token
   26 |         if ( op???== '?' ) break;{
      |                          ^
a.cc:26:25: error: expected ':' before ')' token
   26 |         if ( op???== '?' ) break;{
      |                         ^~
      |                         :
a.cc:26:26: error: expected primary-expression before ')' token
   26 |         if ( op???== '?' ) break;{
      |                          ^
a.cc:26:25: error: expected ':' before ')' token
   26 |         if ( op???== '?' ) break;{
      |                         ^~
      |                         :
a.cc:26:26: error: expected primary-expression before ')' token
   26 |         if ( op???== '?' ) break;{
      |                          ^
Language: C++

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

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | V#include <iostream>
      |  ^
a.cc:1:1: error: 'V' does not name a type
    1 | V#include <iostream>
      | ^
a.cc: In function 'int main()':
a.cc:9:17: error: 'cin' was not declared in this scope
    9 |                 cin >> a >> op >> b;
      |                 ^~~
a.cc:13:13: error: 'cout' was not declared in this scope
   13 |             cout << x << endl;
      |             ^~~~
a.cc:13:26: error: 'endl' was not declared in this scope
   13 |             cout << x << endl;
      |                          ^~~~
a.cc:17:13: error: 'cout' was not declared in this scope
   17 |             cout << x << endl;
      |             ^~~~
a.cc:17:26: error: 'endl' was not declared in this scope
   17 |             cout << x << endl;
      |                          ^~~~
a.cc:21:17: error: 'cout' was not declared in this scope
   21 |                 cout << x << endl;
      |                 ^~~~
a.cc:21:30: error: 'endl' was not declared in this scope
   21 |                 cout << x << endl;
      |                              ^~~~
a.cc:25:17: error: 'cout' was not declared in this scope
   25 |                 cout << x << endl;
      |                 ^~~~
a.cc:25:30: error: 'endl' was not declared in this scope
   25 |                 cout << x << endl;
      |                              ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'i' was not declared in this scope
    7 |         for ( ; ; i++ )
      |                   ^
Language: C++

using System;
class Aoj
{
    static void Main()
    {
        for (;;)
        {
            int a = int.Parse(Console.ReadLine());
            char op = char.Parse(Console.ReadLine());
            int b = int.Parse(Console.ReadLine());
            int c = 0;
            if (op == '+')
            {
                c = a + b;
                Console.WriteLine(c);
            }
            else if (op == '-')
            {
                c = a - b;
                Console.WriteLine(c);
            }
            else if (op == '*')
            {
                c = a * b;
                Console.WriteLine(c);
            }
            else if (op == '/')
            {
                c = a / b;
                Console.WriteLine(c);
            }
            else if (op == '?') break;

            else Console.WriteLine("error\a");
        }


    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:39:2: error: expected ';' after class definition
   39 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Aoj::Main()':
a.cc:8:21: error: expected primary-expression before 'int'
    8 |             int a = int.Parse(Console.ReadLine());
      |                     ^~~
a.cc:9:23: error: expected primary-expression before 'char'
    9 |             char op = char.Parse(Console.ReadLine());
      |                       ^~~~
a.cc:10:21: error: expected primary-expression before 'int'
   10 |             int b = int.Parse(Console.ReadLine());
      |                     ^~~
a.cc:15:17: error: 'Console' was not declared in this scope
   15 |                 Console.WriteLine(c);
      |                 ^~~~~~~
a.cc:20:17: error: 'Console' was not declared in this scope
   20 |                 Console.WriteLine(c);
      |                 ^~~~~~~
a.cc:25:17: error: 'Console' was not declared in this scope
   25 |                 Console.WriteLine(c);
      |                 ^~~~~~~
a.cc:30:17: error: 'Console' was not declared in this scope
   30 |                 Console.WriteLine(c);
      |                 ^~~~~~~
a.cc:34:18: error: 'Console' was not declared in this scope
   34 |             else Console.WriteLine("error\a");
      |                  ^~~~~~~
Language: C++

#include<stdio.h>

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

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

def main():
    operator = {
        "+":lambda x, y: x + y,
        "-":lambda x, y: x - y,
        "*":lambda x, y: x * y,
        "/":lambda x, y: x / y,
    }

    while True:
        (a, op, b) = [int(i) for i in input().split()]
        if op == "?":
            break
        print "%d" % operator[op](int(a), int(b))

if __name__ == '__main__':
    main()

Compiler output:
a.cc:15:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   15 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def main():
      | ^~~
a.cc:9:5: error: expected unqualified-id before 'while'
    9 |     while True:
      |     ^~~~~
Language: C++

while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)

    if op == '?':
        break

    if op == '+':
        print(a + b)

    if op == '-':
        print(a - b)

    if op == '*':
        print(a * b)

    if op == '%':
        print(a % b)

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

while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)

    if op == '?':
        break

    if op == '+':
        print("a + b")

    if op == '-':
        print("a - b")

    if op == '*':
        print("a * b")

    if op == '//':
        print("a // b")

Compiler output:
a.cc:18:14: warning: multi-character character constant [-Wmultichar]
   18 |     if op == '//':
      |              ^~~~
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while True:
      | ^~~~~
Language: C++

while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)

    if op == '?':
        break

    if op == '+':
        print(a + b)

    if op == '-':
        print(a - b)

    if op == '*':
        print(a * b)

    if op == '//':
        print(a / b)

Compiler output:
a.cc:18:14: warning: multi-character character constant [-Wmultichar]
   18 |     if op == '//':
      |              ^~~~
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while True:
      | ^~~~~
Language: C++

#inlcude <iostream>
using namespace std;

int main()
{
int a,b;
char op;
cin >> a >> op >> b;
whlie(op!='?')
{
if(op=='+')
cout << a+b;
if(op=='-')
cout << a-b;
if(op=='*')
cout << a*b;
if(op=='/')
cout << a/b;
cout << endl;
cin >> a >> op >> b;
}

return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin >> a >> op >> b;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude <iostream>
a.cc:9:1: error: 'whlie' was not declared in this scope
    9 | whlie(op!='?')
      | ^~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
int a,b;
char op;
cin >> a >> op >> b;
whlie(op!='?')
{
if(op=='+')
cout << a+b;
if(op=='-')
cout << a-b;
if(op=='*')
cout << a*b;
if(op=='/')
cout << a/b;
cout << endl;
cin >> a >> op >> b;
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'whlie' was not declared in this scope
    9 | whlie(op!='?')
      | ^~~~~