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

#include<stdio.h>
int main(void){
    int a,b;
    char op;
    scanf("%d%c%d",&a,&op,&b);
    while(c!='?'){
        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=='/' && b!=0){
            printf("%d\n",a/b);
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: 'c' undeclared (first use in this function)
    6 |     while(c!='?'){
      |           ^
main.c:6:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
    int m,f,r,p;
    char g;
    scanf("%d%d%d",&m,&f,&r);
    while(m!=-1 || f!=-1 || r!=-1){
        p=m+f;
        if(m==-1 || f==-1 || p<30 ){
            printf("F\n;");
        }else if(p>=80){
            printf("A\n;");
        }else if(p<80 && p>=65){
            printf("B\n;");
        }else if((p<65 && p>=50) || (p<50 && p>=30 && r>=50)){
            printf("C\n;");
        }else if(p<50 && p>=30 && r<50){
            printf("D\n;");
        }
        scanf("%d%d%d",&m,&f,&r);
    }
    return 0;
}
}

Compiler output:
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C

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

scanf("%d %c %op", &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",a%b); break;
default break;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:8: error: expected ':' before 'break'
   14 | default break;
      |        ^~~~~~
      |        :
Language: C

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

scanf("%d %c %op", &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",a%b); break;
default: break;
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:16:1: error: expected declaration or statement at end of input
   16 | return 0;
      | ^~~~~~
Language: C

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

scanf("%d %c %op", &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",a*b); break;
default: break;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:7: warning: missing terminating ' character
   13 | case *': printf("%d\n",a*b); break;
      |       ^
main.c:13:7: error: missing terminating ' character
   13 | case *': printf("%d\n",a*b); break;
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:14:1: error: expected expression before 'default'
   14 | default: break;
      | ^~~~~~~
Language: C

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

while(1){
scanf("%d %c %op", &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:
main.c: In function 'main':
main.c:12:13: warning: missing terminating ' character
   12 | else if(op=='\'){ printf("%d\n",a/b); }
      |             ^
main.c:12:13: error: missing terminating ' character
   12 | else if(op=='\'){ printf("%d\n",a/b); }
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:13:1: error: expected expression before 'else'
   13 | else if(op=='*'){ printf("%d\n",a*b); }
      | ^~~~
main.c:15:1: error: expected expression before '}' token
   15 | }
      | ^
Language: C

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

while(1){
scanf("%d %c %op", &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:
main.c: In function 'main':
main.c:12:13: warning: missing terminating ' character
   12 | else if(op=='\'){ printf("%d\n",a/b); }
      |             ^
main.c:12:13: error: missing terminating ' character
   12 | else if(op=='\'){ printf("%d\n",a/b); }
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:13:1: error: expected expression before 'else'
   13 | else if(op=='*'){ printf("%d\n",a*b); }
      | ^~~~
main.c:15:1: error: expected expression before '}' token
   15 | }
      | ^
Language: C

#include<stdio.h>
 
int main(void)
{
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{ break; }

}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:13: warning: missing terminating ' character
   13 | else if(op=='\'){ printf("%d\n",a/b); }
      |             ^
main.c:13:13: error: missing terminating ' character
   13 | else if(op=='\'){ printf("%d\n",a/b); }
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:14:1: error: expected expression before 'else'
   14 | else if(op=='*'){ printf("%d\n",a*b); }
      | ^~~~
main.c:17:1: error: expected expression before '}' token
   17 | }
      | ^
Language: C

#include <stdio.h>

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

	scanf("%d %d %c",&a,&b,&op);
	while(op!='?'){
		if(op=='+') pritnf("%d\n",a+b);
		if(op=='-') pritnf("%d\n",a-b);
		if(op=='*') pritnf("%d\n",a*b);
		if(op=='/') pritnf("%d\n",a/b);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:29: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |                 if(op=='+') pritnf("%d\n",a+b);
      |                             ^~~~~~
      |                             printf
Language: C

#include<stdio.h>

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

Compiler output:
main.c:18:10: error: expected identifier or '(' before 'else'
   18 |         }else{ return 0;}
      |          ^~~~
main.c:21:16: error: expected declaration specifiers or '...' before string constant
   21 |         printf("%d\n", sum);
      |                ^~~~~~
main.c:21:24: error: unknown type name 'sum'
   21 |         printf("%d\n", sum);
      |                        ^~~
main.c:22:9: error: expected identifier or '(' before 'return'
   22 |         return 0;
      |         ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C

#include <stdio.h>

int main(){
char c[2];
int a,b,x;
while(1){
scanf("%d %s %d",&a,c,&b);
if(a[0]=='?')break;
else if(a[0]=='+'){
x=a+b;
printf("%d\n",x);
}
else if(a[0]=='-'){
x=a-b;
printf("%d\n",x);
}
else if(a[0]=='*'){
x=a*b;
printf("%d\n",x);
}
else if(a[0]=='/'){
x=a/b;
printf("%d\n",x);
}
}


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: subscripted value is neither array nor pointer nor vector
    8 | if(a[0]=='?')break;
      |     ^
main.c:9:10: error: subscripted value is neither array nor pointer nor vector
    9 | else if(a[0]=='+'){
      |          ^
main.c:13:10: error: subscripted value is neither array nor pointer nor vector
   13 | else if(a[0]=='-'){
      |          ^
main.c:17:10: error: subscripted value is neither array nor pointer nor vector
   17 | else if(a[0]=='*'){
      |          ^
main.c:21:10: error: subscripted value is neither array nor pointer nor vector
   21 | else if(a[0]=='/'){
      |          ^
Language: C

#include <stdio.h>

int main(void)
{
	int a, b;
	char op;
	while (1){
		scanf("%d %c %d", &a, &op, %b);
		if(op == '?'){
			break;
		}
		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);
		}
		
	}
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:8:44: error: expected expression before '%' token
    8 |                 scanf("%d %c %d", &a, &op, %b);
      |                                            ^
Language: C

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

return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:16:1: error: stray '\343' in program
   16 | <U+3000><U+3000><U+3000>break;
      | ^~~~~~~~
main.c:16:3: error: stray '\343' in program
   16 | <U+3000><U+3000><U+3000>break;
      |         ^~~~~~~~
main.c:16:5: error: stray '\343' in program
   16 | <U+3000><U+3000><U+3000>break;
      |                 ^~~~~~~~
Language: C

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

return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:16:1: error: stray '\343' in program
   16 | <U+3000><U+3000><U+3000>break;
      | ^~~~~~~~
main.c:16:3: error: stray '\343' in program
   16 | <U+3000><U+3000><U+3000>break;
      |         ^~~~~~~~
main.c:16:5: error: stray '\343' in program
   16 | <U+3000><U+3000><U+3000>break;
      |                 ^~~~~~~~
Language: C

#include <stdio.h>

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

        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 if(op == '?'){
               break;
        }
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:10: error: stray '\343' in program
   23 |         }<U+3000>else if(op == '?'){
      |          ^~~~~~~~
main.c:24:16: error: break statement not within loop or switch
   24 |                break;
      |                ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:26:10: error: expected declaration or statement at end of input
   26 |          return 0;
      |          ^~~~~~
Language: C

include<stdio.h>
 int main(void)
 {
	 int a,b;
	 char op;
	 while(1)
	 {
		 scanf_s("%d %c %d",&a ,&op ,&b);
		 if(op=='?')break;
		 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",a/b);
			 break;
		 }
	 }
	 return 0;
 }

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:24:9: error: expected declaration or statement at end of input
   24 |         return 0;
      |         ^~~~~~
Language: C

#include<stdio.h>
int main(void)
{
   int a,b;
   char op;
   for(;;){
      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:
main.c: In function 'main':
main.c:24:4: error: expected declaration or statement at end of input
   24 |    return 0;
      |    ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:24:4: error: expected declaration or statement at end of input
   24 |    return 0;
      |    ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected expression before '?' token
    8 |         if(op == ?){
      |                  ^
main.c:15:19: error: expected expression before ')' token
   15 |         if(op == +){
      |                   ^
main.c:16:13: error: too many arguments to function 'puts'
   16 |             puts("%d",c);
      |             ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:18:24: error: expected expression before ')' token
   18 |         else if(op == -){
      |                        ^
main.c:19:13: error: too many arguments to function 'puts'
   19 |             puts("%d",d);
      |             ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:21:24: error: expected expression before ')' token
   21 |         else if(op == *){
      |                        ^
main.c:22:13: error: too many arguments to function 'puts'
   22 |             puts("%d",e);
      |             ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:24:23: error: expected expression before '/' token
   24 |         else if(op == /){
      |                       ^
main.c:25:13: error: too many arguments to function 'puts'
   25 |             puts("%d",f);
      |             ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include<stdio.h)
main(){
  int a,b;
  char op;
  while(1){
  scanf("%d %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:
main.c:1:18: error: missing terminating > character
    1 | #include<stdio.h)
      |                  ^
main.c:1:9: fatal error: stdio.h): No such file or directory
    1 | #include<stdio.h)
      |         ^
compilation terminated.
Language: C

nclude<stdio.h>

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

Compiler output:
main.c:1:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | nclude<stdio.h>
      |       ^
Language: C

#include <stdio.h>

int main(void)
{
  int a, b;

  char op;

  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(op == '?'){
    }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:18: error: expected ';' before '{' token
   23 |   else(op == '?'){
      |                  ^
      |                  ;
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:24: error: expected expression before '?' token
    8 |                 if(op==?) break;
      |                        ^
main.c:12:31: error: expected expression before ':' token
   12 |                         case -:
      |                               ^
main.c:14:31: error: expected expression before ':' token
   14 |                         case *:
      |                               ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:31: error: expected expression before ':' token
   10 |                         case +:
      |                               ^
main.c:12:31: error: expected expression before ':' token
   12 |                         case -:
      |                               ^
main.c:14:31: error: expected expression before ':' token
   14 |                         case *:
      |                               ^
Language: C++

#include <stdio.h>
#include <math.h>

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

Compiler output:
a.cc:18:32: warning: missing terminating " character
   18 |                         printf("%d\n2, a / b);break;
      |                                ^
a.cc:18:32: error: missing terminating " character
   18 |                         printf("%d\n2, a / b);break;
      |                                ^~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:19:17: error: expected primary-expression before '}' token
   19 |                 }
      |                 ^
Language: C++

#include <iostream>
using namespace std;

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

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

        if (op == '?'){
            break;
        }
        else if(op == '+'){
            d = a + b;
        }
        else if(op == '-'){
            d = a - b;
        }
        else if(op == '*'){
            d = a * b;
        }
        else if(op == '/'){
            d = (int)a / b;
        }
        cout << d << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: 'd' was not declared in this scope
   15 |             d = a + b;
      |             ^
a.cc:18:13: error: 'd' was not declared in this scope
   18 |             d = a - b;
      |             ^
a.cc:21:13: error: 'd' was not declared in this scope
   21 |             d = a * b;
      |             ^
a.cc:24:13: error: 'd' was not declared in this scope
   24 |             d = (int)a / b;
      |             ^
a.cc:26:17: error: 'd' was not declared in this scope
   26 |         cout << d << endl;
      |                 ^
Language: C++

#include<stdio.h>

int main(){

int x,y;
char c;
while(1){

scanf("%d %c %d",&x,&c,&y);
if(c=='?')break;
if(c=='+')printf("%d\n",(x+y));
if(c=='-')printf("%d\n",(x-y));
if(c=='*')printf("%d\n",(x*y));
if(c=='/')printf("%d\n",(x/y));
}
return 0:
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: expected ';' before ':' token
   16 | return 0:
      |         ^
      |         ;
a.cc:16:9: error: expected primary-expression before ':' token
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
	int a = 0;
	int b = 0;
	string op;
	cin >> a >> b >> op;
	if (op?)
	brean
	if (op + )
	{
		cout << a + b << endl;
	}
	if (op - )(a<b)
	{
		cout << b - a << endl;
	}
	if (op - )(a > b)
	{
		cout << a - b << endl;
	}
	if (op - )(a == b)
	{
		cout << "0" << endl;
	}
	if (op*)
	{
		cout << a*b << endl;
	}
	if (op / )(a < b)
	{
		cout << b / a << endl;
	}
	if (op / )(a > b)
	{
		cout << a / b << endl;
	}
	if (op / )(a == b)
	{
		cout << "1" << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected primary-expression before ')' token
   12 |         if (op?)
      |                ^
a.cc:12:16: error: expected ':' before ')' token
   12 |         if (op?)
      |                ^
      |                :
a.cc:12:16: error: expected primary-expression before ')' token
a.cc:13:9: error: 'brean' was not declared in this scope
   13 |         brean
      |         ^~~~~
a.cc:18:18: error: expected primary-expression before ')' token
   18 |         if (op - )(a<b)
      |                  ^
a.cc:18:24: error: expected ';' before '{' token
   18 |         if (op - )(a<b)
      |                        ^
      |                        ;
   19 |         {
      |         ~               
a.cc:22:18: error: expected primary-expression before ')' token
   22 |         if (op - )(a > b)
      |                  ^
a.cc:22:26: error: expected ';' before '{' token
   22 |         if (op - )(a > b)
      |                          ^
      |                          ;
   23 |         {
      |         ~                 
a.cc:26:18: error: expected primary-expression before ')' token
   26 |         if (op - )(a == b)
      |                  ^
a.cc:26:27: error: expected ';' before '{' token
   26 |         if (op - )(a == b)
      |                           ^
      |                           ;
   27 |         {
      |         ~                  
a.cc:30:16: error: expected primary-expression before ')' token
   30 |         if (op*)
      |                ^
a.cc:34:18: error: expected primary-expression before ')' token
   34 |         if (op / )(a < b)
      |                  ^
a.cc:34:26: error: expected ';' before '{' token
   34 |         if (op / )(a < b)
      |                          ^
      |                          ;
   35 |         {
      |         ~                 
a.cc:38:18: error: expected primary-expression before ')' token
   38 |         if (op / )(a > b)
      |                  ^
a.cc:38:26: error: expected ';' before '{' token
   38 |         if (op / )(a > b)
      |                          ^
      |                          ;
   39 |         {
      |         ~                 
a.cc:42:18: error: expected primary-expression before ')' token
   42 |         if (op / )(a == b)
      |                  ^
a.cc:42:27: error: expected ';' before '{' token
   42 |         if (op / )(a == b)
      |                           ^
      |                           ;
   43 |         {
      |         ~
Language: C++

int main(){
	int a , b;
	char op;
	int 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 'x':
				ans=a*b;
			case '/':
				ans=a/b;
				break;
		}
		cout << ans << endl;
	}
	return 0; 
}

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

#include<iostream>
#include<string>
using namespace std;
int main(){
int x,y;
char op;
while(1){
cin>>x>>op>>y;
if(op=='?') break;
switch(op){
case '+':
  cout<<x+y<<ndl;
  break;
case '-':
  cout<<x-y<<endl;
  break;
case '*':
  cout<<x*y<<endl;
  break;
case '/':
  cout<<x/y<<endl;
  break;
}
}
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'ndl' was not declared in this scope
   12 |   cout<<x+y<<ndl;
      |              ^~~
Language: C++

#include <iostream>
#include <stdio.h>

using namespace std;

int main()
{
	
	int x, y, z, op;

	while (1){
		cin >> x >> op >> y;

		if (op == '?'){ break; }
		
		if (op == '+'){
			z = x + y;
			cout << z << endl;
		}
		if (op == '-'){
			z = x - y;
			cout << z << endl;
		}
		if (op == '*'){
			z = x * y;
			cout << z << endl;
		}
		if (op == '/'){
			z = x / y;
			cout << z << endl;
		}
		
	}

	printf("%f %f\n", s, t);


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:27: error: 's' was not declared in this scope
   35 |         printf("%f %f\n", s, t);
      |                           ^
a.cc:35:30: error: 't' was not declared in this scope
   35 |         printf("%f %f\n", s, t);
      |                              ^
Language: C++


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'scanf' was not declared in this scope
   10 |         scanf("%d %c %d", &a, &op, &b);
      |         ^~~~~
a.cc:13:9: error: 'printf' was not declared in this scope
   13 |         printf("a+b=%d\n",a+b);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | 
a.cc:15:17: error: 'printf' was not declared in this scope
   15 |                 printf("a-b=%d\n",a-b);
      |                 ^~~~~~
a.cc:15:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:17:17: error: 'printf' was not declared in this scope
   17 |                 printf("a*b=%d\n",a*b);
      |                 ^~~~~~
a.cc:17:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:19:17: error: 'printf' was not declared in this scope
   19 |                 printf("a/b=%d\n",a/b);
      |                 ^~~~~~
a.cc:19:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <stdio.h>
#include <iostream.h>

using namespace std;

int main(void) {
	
	int a;
string op;
	int b;


	while(1){
		
	sin >> a >> op >> b;
	
	if(b == '+'){
	printf("%d\n",a+b);
	}else if(b == '-'){
		printf("%d\n",a-b);
	}else if(b == '*'){
		printf("%d\n",a*b);
	}else if(b == '/'){
		printf("%d\n",(double)a/(double)b);
	}else{
		return (0);
	}
	
	}
	
}

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

#include <stdio.h>
#include <iostream>

using namespace std;

int main(void) {
	
	int a;
string op;
	int b;


	while(1){
		
	sin >> a >> op >> b;
	
	if(b == '+'){
	printf("%d\n",a+b);
	}else if(b == '-'){
		printf("%d\n",a-b);
	}else if(b == '*'){
		printf("%d\n",a*b);
	}else if(b == '/'){
		printf("%d\n",(double)a/(double)b);
	}else{
		return (0);
	}
	
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'sin' was not declared in this scope
   15 |         sin >> a >> op >> b;
      |         ^~~
Language: C++

#include <stdio.h>
#include <iostream>

using namespace std;

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


	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",(double)a/(double)b);
	}else{
		break;
	}
	
	}
	return(0);
}

Compiler output:
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main(void) {
      | ^~~~
a.cc: In function 'int main()':
a.cc:15:26: error: invalid operands of types 'const char [9]' and 'int' to binary 'operator&'
   15 |         scanf("%d %c %d" &a,&op,&b);
      |               ~~~~~~~~~~ ^~
      |               |           |
      |               |           int
      |               const char [9]
Language: C++

#include <stdio.h>
#include <iostream>

using namespace std;

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


	while( scanf("%d %c %d", &a, &op, &b) != EOF ){
	
	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);
	}
	return(0);
}

Compiler output:
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main(void) {
      | ^~~~
a.cc: In function 'int main()':
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:6:12: note: to match this '{'
    6 | main(void) {
      |            ^
Language: C++

import java.io.*;
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        while (true){
            Scanner sc=new Scanner(System.in);
            String s=sc.nextLine();
            Scanner kb=new Scanner(s);
            int a[]=new int[2];
            int i=0;
            String op="";
            while (kb.hasNext()){
                if (kb.hasNextInt()==false){
                    op=kb.next();
                }
                a[i]=kb.nextInt();
                i++;
            }
            switch(op){
            case "+":
                System.out.println(a[0]+a[1]);
                break;
            case "-":
                System.out.println(a[0]-a[1]);
                break;
            case "*":
                System.out.println(a[0]*a[1]);
                break;
            case "/":
                System.out.println(a[0]/a[1]);
                break;
            case "?":
                break;
            }
            if (op.equals("?")){
                break;
            }
        }
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

import java.io.*;
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
            Scanner sc=new Scanner(System.in);
            String s=sc.nextLine();
            Scanner kb=new Scanner(s);
            int a[]=new int[2];
            int i=0;
            String op="";
            while (kb.hasNext()){
                if (kb.hasNextInt()==false){
                    op=kb.next();
                }
                a[i]=kb.nextInt();
                i++;
            }
            switch(op){
            case "+":
                System.out.println(a[0]+a[1]);
                break;
            case "-":
                System.out.println(a[0]-a[1]);
                break;
            case "*":
                System.out.println(a[0]*a[1]);
                break;
            case "/":
                System.out.println(a[0]/a[1]);
                break;
        }   
            if (op.equals("?")){
                break;
            }
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main{
public static void main(String [] args) throws Exception{
BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
while(true){
String str = reader.readLine(); 
String array[]=new String[3];
array = str.split(" ");
int x = Integer.parseInt(array[0]);
int y = Integer.parseInt(array[2]);
String op = array[1];

if (op.equals("?")){
break;
}else if(op.equals("+")){
System.out.println(x+y);

}else if(op.equals("-")){
System.out.println(x-y);

}else if(op.equals("*")){
System.out.println(x*y);

}else if(op.equals("/")){
System.out.println(x/y);
}
}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main{
      | ^~~~~~
Language: C++

str = input()
l = []
while not "?" in str:
    templ = str.split(' ')
    a = int(templ[0])
    b = int(templ[2])
    ope = templ[1]
    if ope == "+":
        str = a + b
    elif ope == "-":
        str = a - b
    elif ope == "*":
        str = a * b
    else:
        str = a // b
    l.append(str)
    str = input()

for i in range(len(l)):
    print(l[i])

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

int main(){
	int a, b;
    char op;
	while (1) {
		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:5:17: error: 'cin' was not declared in this scope
    5 |                 cin >> a >> op >> b;
      |                 ^~~
a.cc:8:25: error: 'cout' was not declared in this scope
    8 |                         cout << a + b << endl;
      |                         ^~~~
a.cc:8:42: error: 'endl' was not declared in this scope
    8 |                         cout << a + b << endl;
      |                                          ^~~~
a.cc:11:25: error: 'cout' was not declared in this scope
   11 |                         cout << a - b << endl;
      |                         ^~~~
a.cc:11:42: error: 'endl' was not declared in this scope
   11 |                         cout << a - b << endl;
      |                                          ^~~~
a.cc:14:25: error: 'cout' was not declared in this scope
   14 |                         cout << a * b << endl;
      |                         ^~~~
a.cc:14:42: error: 'endl' was not declared in this scope
   14 |                         cout << a * b << endl;
      |                                          ^~~~
a.cc:17:25: error: 'cout' was not declared in this scope
   17 |                         cout << a / b << endl;
      |                         ^~~~
a.cc:17:42: error: 'endl' was not declared in this scope
   17 |                         cout << a / b << endl;
      |                                          ^~~~
Language: C++

#include <iostream>
#include <cmath>
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 cout<<a/b<<endl;
  }
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ':' before ';' token
   11 | case '+';
      |         ^
      |         :
a.cc:14:1: error: case label ''-'' not within a switch statement
   14 | case '-';
      | ^~~~
a.cc:14:9: error: expected ':' before ';' token
   14 | case '-';
      |         ^
      |         :
a.cc:17:1: error: case label ''*'' not within a switch statement
   17 | case '*';
      | ^~~~
a.cc:17:9: error: expected ':' before ';' token
   17 | case '*';
      |         ^
      |         :
a.cc:20:1: error: case label ''/'' not within a switch statement
   20 | case '/';
      | ^~~~
a.cc:20:9: error: expected ':' before ';' token
   20 | case '/';
      |         ^
      |         :
a.cc:21:6: error: expected ';' before 'break'
   21 | r=a/b
      |      ^
      |      ;
   22 | break;
      | ~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ':' before ';' token
   11 | case '+';
      |         ^
      |         :
a.cc:14:1: error: case label ''-'' not within a switch statement
   14 | case '-';
      | ^~~~
a.cc:14:9: error: expected ':' before ';' token
   14 | case '-';
      |         ^
      |         :
a.cc:17:1: error: case label ''*'' not within a switch statement
   17 | case '*';
      | ^~~~
a.cc:17:9: error: expected ':' before ';' token
   17 | case '*';
      |         ^
      |         :
a.cc:20:1: error: case label ''/'' not within a switch statement
   20 | case '/';
      | ^~~~
a.cc:20:9: error: expected ':' before ';' token
   20 | case '/';
      |         ^
      |         :
a.cc:21:6: error: expected ';' before 'break'
   21 | r=a/b
      |      ^
      |      ;
   22 | break;
      | ~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ':' before ';' token
   11 | case '+';
      |         ^
      |         :
a.cc:14:1: error: case label ''-'' not within a switch statement
   14 | case '-';
      | ^~~~
a.cc:14:9: error: expected ':' before ';' token
   14 | case '-';
      |         ^
      |         :
a.cc:17:1: error: case label ''*'' not within a switch statement
   17 | case '*';
      | ^~~~
a.cc:17:9: error: expected ':' before ';' token
   17 | case '*';
      |         ^
      |         :
a.cc:20:1: error: case label ''/'' not within a switch statement
   20 | case '/';
      | ^~~~
a.cc:20:9: error: expected ':' before ';' token
   20 | case '/';
      |         ^
      |         :
Language: C++

#include<stdio.h>
int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),b[0]-63)printf("%d\n",b[0]-43?b[0]-45?b[0]-42?a\b:a*b:a-b:a+b);}

Compiler output:
a.cc:2:107: error: stray '\' in program
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),b[0]-63)printf("%d\n",b[0]-43?b[0]-45?b[0]-42?a\b:a*b:a-b:a+b);}
      |                                                                                                           ^
a.cc: In function 'int main()':
a.cc:2:61: error: invalid types 'int[int]' for array subscript
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),b[0]-63)printf("%d\n",b[0]-43?b[0]-45?b[0]-42?a\b:a*b:a-b:a+b);}
      |                                                             ^
a.cc:2:83: error: invalid types 'int[int]' for array subscript
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),b[0]-63)printf("%d\n",b[0]-43?b[0]-45?b[0]-42?a\b:a*b:a-b:a+b);}
      |                                                                                   ^
a.cc:2:91: error: invalid types 'int[int]' for array subscript
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),b[0]-63)printf("%d\n",b[0]-43?b[0]-45?b[0]-42?a\b:a*b:a-b:a+b);}
      |                                                                                           ^
a.cc:2:99: error: invalid types 'int[int]' for array subscript
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),b[0]-63)printf("%d\n",b[0]-43?b[0]-45?b[0]-42?a\b:a*b:a-b:a+b);}
      |                                                                                                   ^
a.cc:2:107: error: expected ':' before 'b'
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),b[0]-63)printf("%d\n",b[0]-43?b[0]-45?b[0]-42?a\b:a*b:a-b:a+b);}
      |                                                                                                           ^~
      |                                                                                                           :
a.cc:2:117: error: found ':' in nested-name-specifier, expected '::'
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),b[0]-63)printf("%d\n",b[0]-43?b[0]-45?b[0]-42?a\b:a*b:a-b:a+b);}
      |                                                                                                                     ^
      |                                                                                                                     ::
a.cc:2:116: error: 'b' is not a class, namespace, or enumeration
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),b[0]-63)printf("%d\n",b[0]-43?b[0]-45?b[0]-42?a\b:a*b:a-b:a+b);}
      |                                                                                                                    ^
Language: C++

#include<stdio.h>
int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),c[0]-63)printf("%d\n",c[0]-43?c[0]-45?c[0]-42?a\b:a*b:a-b:a+b);}

Compiler output:
a.cc:2:107: error: stray '\' in program
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),c[0]-63)printf("%d\n",c[0]-43?c[0]-45?c[0]-42?a\b:a*b:a-b:a+b);}
      |                                                                                                           ^
a.cc: In function 'int main()':
a.cc:2:107: error: expected ':' before 'b'
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),c[0]-63)printf("%d\n",c[0]-43?c[0]-45?c[0]-42?a\b:a*b:a-b:a+b);}
      |                                                                                                           ^~
      |                                                                                                           :
a.cc:2:117: error: found ':' in nested-name-specifier, expected '::'
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),c[0]-63)printf("%d\n",c[0]-43?c[0]-45?c[0]-42?a\b:a*b:a-b:a+b);}
      |                                                                                                                     ^
      |                                                                                                                     ::
a.cc:2:116: error: 'b' is not a class, namespace, or enumeration
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),c[0]-63)printf("%d\n",c[0]-43?c[0]-45?c[0]-42?a\b:a*b:a-b:a+b);}
      |                                                                                                                    ^
Language: C++

#include<stdio.h>
int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),c[0]-63)printf("%d\n",c[0]-43?c[0]-45?c[0]-42?(a\b):(a*b):(a-b):(a+b));}

Compiler output:
a.cc:2:108: error: stray '\' in program
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),c[0]-63)printf("%d\n",c[0]-43?c[0]-45?c[0]-42?(a\b):(a*b):(a-b):(a+b));}
      |                                                                                                            ^
a.cc: In function 'int main()':
a.cc:2:108: error: expected ')' before 'b'
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),c[0]-63)printf("%d\n",c[0]-43?c[0]-45?c[0]-42?(a\b):(a*b):(a-b):(a+b));}
      |                                                                                                          ~ ^~
      |                                                                                                            )
a.cc:2:130: error: expected ':' before ';' token
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),c[0]-63)printf("%d\n",c[0]-43?c[0]-45?c[0]-42?(a\b):(a*b):(a-b):(a+b));}
      |                                                                                                                                  ^
      |                                                                                                                                  :
a.cc:2:130: error: expected primary-expression before ';' token
a.cc:2:130: error: expected ':' before ';' token
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),c[0]-63)printf("%d\n",c[0]-43?c[0]-45?c[0]-42?(a\b):(a*b):(a-b):(a+b));}
      |                                                                                                                                  ^
      |                                                                                                                                  :
a.cc:2:130: error: expected primary-expression before ';' token
a.cc:2:130: error: expected ':' before ';' token
    2 | int main(){int a,b;char c[2];while(scanf("%d%s%d",&a,c,&b),c[0]-63)printf("%d\n",c[0]-43?c[0]-45?c[0]-42?(a\b):(a*b):(a-b):(a+b));}
      |                                                                                                                                  ^
      |                                                                                                                                  :
a.cc:2:130: error: expected primary-expression before ';' token