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

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

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 | scanf("%d%d", &a, &b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d%d", &a, &b);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:7: warning: comparison between pointer and integer
    6 | if(op == "+"){printf("%d%c%d", a+b);}
      |       ^~
main.c:6:15: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | if(op == "+"){printf("%d%c%d", a+b);}
      |               ^~~~~~
main.c:6:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:15: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:13: warning: comparison between pointer and integer
    7 | else if (op == "-"){printf("%d%c%d", a-b);}
      |             ^~
main.c:7:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 | else if (op == "-"){printf("%d%c%d", a-b);}
      |                     ^~~~~~
main.c:7:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:13: warning: comparison between pointer and integer
    8 | else if (op == "*"){printf("%d%c%d", a*b);}
      |             ^~
main.c:8:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 | else if (op == "*"){printf("%d%c%d", a*b);}
      |                     ^~~~~~
main.c:8:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:13: warning: comparison between pointer and integer
    9 | else if (op == "/"){printf("%d%c%d", a/b);}
      |             ^~
main.c:9:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 | else if (op == "/"){printf("%d%c%d", a/b);}
      |                     ^~~~~~
main.c:9:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:6: error: break statement not within loop or switch
   10 | else{break;}
      |      ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 | scanf("%d%c%d", &a, &op, &b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d%c%d", &a, &op, &b);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:7: warning: comparison between pointer and integer
    5 | if(op == "+"){printf("%d%c%d", a+b);}
      |       ^~
main.c:5:15: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 | if(op == "+"){printf("%d%c%d", a+b);}
      |               ^~~~~~
main.c:5:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:15: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:13: warning: comparison between pointer and integer
    6 | else if (op == "-"){printf("%d%c%d", a-b);}
      |             ^~
main.c:6:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 | else if (op == "-"){printf("%d%c%d", a-b);}
      |                     ^~~~~~
main.c:6:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:13: warning: comparison between pointer and integer
    7 | else if (op == "*"){printf("%d%c%d", a*b);}
      |             ^~
main.c:7:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 | else if (op == "*"){printf("%d%c%d", a*b);}
      |                     ^~~~~~
main.c:7:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:13: warning: comparison between pointer and integer
    8 | else if (op == "/"){printf("%d%c%d", a/b);}
      |             ^~
main.c:8:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 | else if (op == "/"){printf("%d%c%d", a/b);}
      |                     ^~~~~~
main.c:8:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:6: error: break statement not within loop or switch
    9 | else{break;}
      |      ^~~~~
Language: C

int main(){
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{break;}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 | scanf("%d %c %d", &a, &op, &b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d %c %d", &a, &op, &b);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:7: warning: comparison between pointer and integer
    5 | if(op == "+"){printf("%d\n", a+b);}
      |       ^~
main.c:5:15: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 | if(op == "+"){printf("%d\n", a+b);}
      |               ^~~~~~
main.c:5:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:15: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:13: warning: comparison between pointer and integer
    6 | else if (op == "-"){printf("%d\n", a-b);}
      |             ^~
main.c:6:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 | else if (op == "-"){printf("%d\n", a-b);}
      |                     ^~~~~~
main.c:6:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:13: warning: comparison between pointer and integer
    7 | else if (op == "*"){printf("%d\n", a*b);}
      |             ^~
main.c:7:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 | else if (op == "*"){printf("%d\n", a*b);}
      |                     ^~~~~~
main.c:7:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:13: warning: comparison between pointer and integer
    8 | else if (op == "/"){printf("%d\n", a/b);}
      |             ^~
main.c:8:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 | else if (op == "/"){printf("%d\n", a/b);}
      |                     ^~~~~~
main.c:8:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:6: error: break statement not within loop or switch
    9 | else{break;}
      |      ^~~~~
Language: C

int main(){
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{break;}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 | scanf("%d %c %d", &a, &op, &b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d %c %d", &a, &op, &b);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:15: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 | if(op == '+'){printf("%d\n", a+b);}
      |               ^~~~~~
main.c:5:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:15: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 | else if (op == '-'){printf("%d\n", a-b);}
      |                     ^~~~~~
main.c:6:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 | else if (op == '*'){printf("%d\n", a*b);}
      |                     ^~~~~~
main.c:7:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 | else if (op == '/'){printf("%d\n", a/b);}
      |                     ^~~~~~
main.c:8:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:6: error: break statement not within loop or switch
    9 | else{break;}
      |      ^~~~~
Language: C

#include <stdio.h>

int cmp(const char* str_1, const char* str_2){
   
   int count=0;
   
   while(*str_1 = *str_2){
     if(*str_1 != *str_2)
       count++;
     
     str_1++;
     str_2++;  
   }

 return count;
}

int main(void){
  int a,b;
  char* str;

  scanf("%d %s %d",&a,str,&b);

  while(1){
   
   if(cmp(str,"?")== 0)
      break;
   else if(cmp(str,"+") == 0)
      printf("%d\n",a + b);
    else if(cmp(str,"-") == 0)
      printf("%d\n",a - b);
     else if(cmp(str,"*") == 0)
      printf("%d\n",a * b);
    else if(cmp(str,"/") == 0)
      printf("%d\n",a / b);
   

  }

  return 0;
}

Compiler output:
main.c: In function 'cmp':
main.c:7:17: error: assignment of read-only location '*str_1'
    7 |    while(*str_1 = *str_2){
      |                 ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:13: warning: comparison between pointer and integer
    7 |   while (op != "?") {
      |             ^~
main.c:9:7: error: pointers are not permitted as case values
    9 |       case "+": printf("%d\n", a + b); break;
      |       ^~~~
main.c:10:7: error: pointers are not permitted as case values
   10 |       case "-": printf("%d\n", a - b); break;
      |       ^~~~
main.c:11:7: error: pointers are not permitted as case values
   11 |       case "*": printf("%d\n", a * b); break;
      |       ^~~~
main.c:12:7: error: pointers are not permitted as case values
   12 |       case "/": printf("%d\n", a / b); break;
      |       ^~~~
Language: C

#include <stdio.h>

int main(){

 int a, b;
 char op;

 scanf("%d%c%d", &a, &op, &b);
 switch(op){
 
 case("+"){printf("%d", a + b);}
 case("-"){printf("%d", a - b);}
 case("*"){printf("%d", a * b);}
 case("/"){printf("%d", a / b);}
 case("0"){return 0;}}

}

Compiler output:
main.c: In function 'main':
main.c:11:11: error: expected ':' or '...' before '{' token
   11 |  case("+"){printf("%d", a + b);}
      |           ^
main.c:12:11: error: expected ':' or '...' before '{' token
   12 |  case("-"){printf("%d", a - b);}
      |           ^
main.c:13:11: error: expected ':' or '...' before '{' token
   13 |  case("*"){printf("%d", a * b);}
      |           ^
main.c:14:11: error: expected ':' or '...' before '{' token
   14 |  case("/"){printf("%d", a / b);}
      |           ^
main.c:15:11: error: expected ':' or '...' before '{' token
   15 |  case("0"){return 0;}}
      |           ^
main.c:11:12: warning: statement will never be executed [-Wswitch-unreachable]
   11 |  case("+"){printf("%d", a + b);}
      |            ^~~~~~~~~~~~~~~~~~~
Language: C

#include <stdio.h>

int main(){

 int a, b;
 char op;

 scanf("%d%c%d", &a, &op, &b);
 switch(op){
 
 case("+"){printf("%d", a + b);};
 case("-"){printf("%d", a - b);};
 case("*"){printf("%d", a * b);};
 case("/"){printf("%d", a / b);};
 case("0"){return 0;}}

}

Compiler output:
main.c: In function 'main':
main.c:11:11: error: expected ':' or '...' before '{' token
   11 |  case("+"){printf("%d", a + b);};
      |           ^
main.c:12:11: error: expected ':' or '...' before '{' token
   12 |  case("-"){printf("%d", a - b);};
      |           ^
main.c:13:11: error: expected ':' or '...' before '{' token
   13 |  case("*"){printf("%d", a * b);};
      |           ^
main.c:14:11: error: expected ':' or '...' before '{' token
   14 |  case("/"){printf("%d", a / b);};
      |           ^
main.c:15:11: error: expected ':' or '...' before '{' token
   15 |  case("0"){return 0;}}
      |           ^
main.c:11:12: warning: statement will never be executed [-Wswitch-unreachable]
   11 |  case("+"){printf("%d", a + b);};
      |            ^~~~~~~~~~~~~~~~~~~
Language: C

#include <stdio.h>

int main(){

 int a, b;
 char op;

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

 case "+" : printf("%d", a + b);
 case "-" : printf("%d", a - b);
 case "*" : printf("%d", a * b);
 case "/" : printf("%d", a / b);
 case "0" : return 0;}
}

Compiler output:
main.c: In function 'main':
main.c:11:2: error: pointers are not permitted as case values
   11 |  case "+" : printf("%d", a + b);
      |  ^~~~
main.c:12:2: error: pointers are not permitted as case values
   12 |  case "-" : printf("%d", a - b);
      |  ^~~~
main.c:13:2: error: pointers are not permitted as case values
   13 |  case "*" : printf("%d", a * b);
      |  ^~~~
main.c:14:2: error: pointers are not permitted as case values
   14 |  case "/" : printf("%d", a / b);
      |  ^~~~
main.c:15:2: error: pointers are not permitted as case values
   15 |  case "0" : return 0;}
      |  ^~~~
Language: C

#include <stdio.h>

int main(){

 int a, b;
 char op;

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

 case "+" : printf("%d", a + b);break;
 case "-" : printf("%d", a - b);break;
 case "*" : printf("%d", a * b);break;
 case "/" : printf("%d", a / b);break;
 case "0" : return 0;}
}

Compiler output:
main.c: In function 'main':
main.c:11:2: error: pointers are not permitted as case values
   11 |  case "+" : printf("%d", a + b);break;
      |  ^~~~
main.c:12:2: error: pointers are not permitted as case values
   12 |  case "-" : printf("%d", a - b);break;
      |  ^~~~
main.c:13:2: error: pointers are not permitted as case values
   13 |  case "*" : printf("%d", a * b);break;
      |  ^~~~
main.c:14:2: error: pointers are not permitted as case values
   14 |  case "/" : printf("%d", a / b);break;
      |  ^~~~
main.c:15:2: error: pointers are not permitted as case values
   15 |  case "0" : return 0;}
      |  ^~~~
Language: C

#include <stdio.h>

int main(){

 int a, b;
 char op;

 scanf("%d%c%d", &a, &op, &b);
for(i=1; 1; i++){
 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;
 case '?' : return 0;break;
}}
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: 'i' undeclared (first use in this function)
    9 | for(i=1; 1; i++){
      |     ^
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

x,y;
main(){
    char c;
    for(;scanf("%d%c%d",&x,&c,&y),c!='?';){
        switch(c){
            case '+':printf("%d\n",x+y);break;
            case '-':printf("%d\n",x-y);break;
            case '-':printf("%d\n",x-y);break;
            case '-':printf("%d\n",x-y);break;
        }
    }
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | x,y;
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
    1 | x,y;
      |   ^
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:10: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |     for(;scanf("%d%c%d",&x,&c,&y),c!='?';){
      |          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | x,y;
main.c:4:10: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |     for(;scanf("%d%c%d",&x,&c,&y),c!='?';){
      |          ^~~~~
main.c:4:10: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:22: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |             case '+':printf("%d\n",x+y);break;
      |                      ^~~~~~
main.c:6:22: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:22: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:22: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:13: error: duplicate case value
    8 |             case '-':printf("%d\n",x-y);break;
      |             ^~~~
main.c:7:13: note: previously used here
    7 |             case '-':printf("%d\n",x-y);break;
      |             ^~~~
main.c:9:13: error: duplicate case value
    9 |             case '-':printf("%d\n",x-y);break;
      |             ^~~~
main.c:7:13: note: previously used here
    7 |             case '-':printf("%d\n",x-y);break;
      |             ^~~~
Language: C

int main(int argc, const char * argv[]) {
    int a,b,answer_in,num=0,t=0;
    int answer[num+1];
    char op[2];
    
    
    while(1){
        scanf("%d %c %d",&a,op,&b);
        
        if(strcmp(op,"?")==0){
            break;
        }
        
        if(strcmp(op,"+")==0){
            answer_in = a + b;
        }else if(strcmp(op,"-")==0){
            answer_in = a - b;
        }else if(strcmp(op,"*")==0){
            answer_in = a * b;
        }else if(strcmp(op,"/")==0){
            answer_in = a / b;
        }
        
        answer[num] = answer in;
        
        num++;
        
    }
    
    for(;t<num;t++){
        printf("%d\n",answer[t]);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |         scanf("%d %c %d",&a,op,&b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(int argc, const char * argv[]) {
main.c:8:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |         scanf("%d %c %d",&a,op,&b);
      |         ^~~~~
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:12: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   10 |         if(strcmp(op,"?")==0){
      |            ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strcmp'
  +++ |+#include <string.h>
    1 | int main(int argc, const char * argv[]) {
main.c:24:21: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   24 |         answer[num] = answer in;
      |                     ^
main.c:24:29: error: expected ';' before 'in'
   24 |         answer[num] = answer in;
      |                             ^~~
      |                             ;
main.c:31:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   31 |         printf("%d\n",answer[t]);
      |         ^~~~~~
main.c:31:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:31:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:16: error: expected expression before '?' token
    7 |         if(op==?){
      |                ^
main.c:9:23: error: expected expression before ')' token
    9 |         }else if(op==+){
      |                       ^
main.c:11:23: error: expected expression before ')' token
   11 |         }else if(op==-){
      |                       ^
main.c:13:23: error: expected expression before ')' token
   13 |         }else if(op==*){
      |                       ^
main.c:15:22: error: expected expression before '/' token
   15 |         }else if(op==/){
      |                      ^
Language: C

#include<stdio.h>
int main(){
    int a,b;
    char op;
    while(1){
        scanf("%d %c %d",&a,&op,&b);
        if(op==?){
            break;
        }else if(op==+){
            printf("%d\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:7:16: error: expected expression before '?' token
    7 |         if(op==?){
      |                ^
main.c:9:23: error: expected expression before ')' token
    9 |         }else if(op==+){
      |                       ^
main.c:11:23: error: expected expression before ')' token
   11 |         }else if(op==-){
      |                       ^
main.c:13:23: error: expected expression before ')' token
   13 |         }else if(op==*){
      |                       ^
main.c:15:22: error: expected expression before '/' token
   15 |         }else if(op==/){
      |                      ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:43: error: expected expression before '?' token
   16 |                 if(a = 0 && b = 0 && op = ?) break;
      |                                           ^
Language: C

include <stdio.h>
#include <math.h>
int main(  )
{
???int ans, num1, num2;
???char ope;
???
???scanf( "%d", &num1 );
???scanf( "%c", &ope );
???scanf( "%d", &num2 );
???
???switch ( ope ){
??????case '+':???ans = num1 + num2;???break;
??????case '-':???ans = num1 - num2;???break;
??????case '*':???ans = num1 * num2;???break;
??????case '/':???ans = num1 / num2;???break;
??????case '%':???ans = num1 % num2;???break;
??????default:??? printf( "???????????¨????????§??????\n" );
???}
???printf( "%d %c %d = %d\n", num1, ope, num2, ans );
???return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ???int ans, num1, num2;
      | ^
main.c:6:1: error: expected expression before '?' token
    6 | ???char ope;
      | ^
main.c:7:1: error: expected expression before '?' token
    7 | ???
      | ^
main.c:8:4: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 | ???scanf( "%d", &num1 );
      |    ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include <math.h>
  +++ |+#include <stdio.h>
    3 | int main(  )
main.c:8:4: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 | ???scanf( "%d", &num1 );
      |    ^~~~~
main.c:8:4: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:18: error: 'num1' undeclared (first use in this function)
    8 | ???scanf( "%d", &num1 );
      |                  ^~~~
main.c:8:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:1: error: expected expression before '?' token
    9 | ???scanf( "%c", &ope );
      | ^
main.c:9:18: error: 'ope' undeclared (first use in this function)
    9 | ???scanf( "%c", &ope );
      |                  ^~~
main.c:10:1: error: expected expression before '?' token
   10 | ???scanf( "%d", &num2 );
      | ^
main.c:10:18: error: 'num2' undeclared (first use in this function)
   10 | ???scanf( "%d", &num2 );
      |                  ^~~~
main.c:11:1: error: expected expression before '?' token
   11 | ???
      | ^
main.c:21:1: error: expected expression before '?' token
   21 | ???return 0;
      | ^
Language: C

#include<stdio.h>
int main(){
  int a, b, i;
  char op;
  scanf("%d %d %c", &a, &b, &op);
  for(i=0;;i++){
    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:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

include<stdio.h>
int main(){
  int a, b, i;
  char op;
  scanf("%d %d %c", &a, &b, &op);
  for(i=0;;i++){
    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:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include<stdio.h>
int main(){
  int a, b, i, n, data[3000];
  char op;
  for(i=0;;i++){
    scanf("%d %d %c", &a, &b, &op);
    if(op=='+'){
      data[i] = a+b;
    }else if(op=='-'){
      data[i] =  a-b;
    }else if(op=='*'){
      data[i] = a*b;
    }else if(op=='/'){
      data[i] = a/b;
    }else if(op=='?'){
      break;
    }
  }
  n=i;
  for(i=0;i<n;++){
    printf("%d\n", data[i]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:17: error: expected expression before ')' token
   20 |   for(i=0;i<n;++){
      |                 ^
Language: C

#include<stdio.h>
int main(){
  int a, b, i, n, data[3000];
  char op;
  for(i=0;;i++){
    scanf("%d %c %d", &a, &op, %b);
    if(op=='+'){
      data[i] = a+b;
    }else if(op=='-'){
      data[i] =  a-b;
    }else if(op=='*'){
      data[i] = a*b;
    }else if(op=='/'){
      data[i] = a/b;
    }else if(op=='?'){
      break;
    }
  }
  n=i;
  for(i=0;i<n;i++){
    printf("%d\n", data[i]);
  }
  return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |         scanf("%d %c %d",&a,&d,&b);
      |         ^~~~~
main.c:5:30: error: 'd' undeclared (first use in this function)
    5 |         scanf("%d %c %d",&a,&d,&b);
      |                              ^
main.c:5:30: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
	int a,b;
	char c;
	for(;scanf("%d%d%c",&a,&b,&c);)
	if(a==0&&b==0)
	     break;
	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);
	}
	return 0;
}
Chat Conversation End
Type a message...






Compiler output:
main.c: In function 'main':
main.c:21:15: warning: missing terminating ' character
   21 |         if(c=='\')
      |               ^
main.c:21:15: error: missing terminating ' character
   21 |         if(c=='\')
      |               ^~~~
main.c:22:9: error: expected expression before '{' token
   22 |         {
      |         ^
main.c:23:32: error: stray '\' in program
   23 |                 printf("%d/n",a\b);
      |                                ^
main.c:26:1: error: expected expression before '}' token
   26 | }
      | ^
main.c: At top level:
main.c:27:1: error: unknown type name 'Chat'
   27 | Chat Conversation End
      | ^~~~
main.c:27:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'End'
   27 | Chat Conversation End
      |                   ^~~
main.c:27:19: error: unknown type name 'End'
Language: C

#include<stdio.h>

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



Compiler output:
main.c: In function 'main':
main.c:19:33: error: expected ':' or '...' before ';' token
   19 |                         case '-';
      |                                 ^
Language: C

#include<stdio.h>
int main(){
  int a, b;
  char op;
  while(1){
    if(op == ?){
      break();
    }
    scanf("%d %c %d");
    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:6:14: error: expected expression before '?' token
    6 |     if(op == ?){
      |              ^
main.c:10:11: warning: comparison between pointer and integer
   10 |     if(op == "+"){
      |           ^~
main.c:12:17: warning: comparison between pointer and integer
   12 |     }else if(op == "-"){
      |                 ^~
main.c:14:17: warning: comparison between pointer and integer
   14 |     }else if(op == "*"){
      |                 ^~
main.c:16:17: warning: comparison between pointer and integer
   16 |     }else if(op == "/"){
      |                 ^~
Language: C

#include<stdio.h>
int main(){
  int a, b;
  char op;
  while(1){
    if(op == "?"){
      break();
    }
    scanf("%d %c %d");
    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:6:11: warning: comparison between pointer and integer
    6 |     if(op == "?"){
      |           ^~
main.c:7:12: error: expected ';' before '(' token
    7 |       break();
      |            ^
      |            ;
main.c:10:11: warning: comparison between pointer and integer
   10 |     if(op == "+"){
      |           ^~
main.c:12:17: warning: comparison between pointer and integer
   12 |     }else if(op == "-"){
      |                 ^~
main.c:14:17: warning: comparison between pointer and integer
   14 |     }else if(op == "*"){
      |                 ^~
main.c:16:17: warning: comparison between pointer and integer
   16 |     }else if(op == "/"){
      |                 ^~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:3: error: unknown type name 'string'; did you mean 'stdin'?
    4 |   string op;
      |   ^~~~~~
      |   stdin
main.c:6:12: warning: comparison between pointer and integer
    6 |   while(op == "?"){
      |            ^~
main.c:7:11: warning: comparison between pointer and integer
    7 |     if(op == "+"){
      |           ^~
main.c:9:17: warning: comparison between pointer and integer
    9 |     }else if(op == "-"){
      |                 ^~
main.c:11:17: warning: comparison between pointer and integer
   11 |     }else if(op == "*"){
      |                 ^~
main.c:13:17: warning: comparison between pointer and integer
   13 |     }else if(op == "/"){
      |                 ^~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:3: error: unknown type name 'String'
    4 |   String op;
      |   ^~~~~~
main.c:6:12: warning: comparison between pointer and integer
    6 |   while(op == "?"){
      |            ^~
main.c:7:11: warning: comparison between pointer and integer
    7 |     if(op == "+"){
      |           ^~
main.c:9:17: warning: comparison between pointer and integer
    9 |     }else if(op == "-"){
      |                 ^~
main.c:11:17: warning: comparison between pointer and integer
   11 |     }else if(op == "*"){
      |                 ^~
main.c:13:17: warning: comparison between pointer and integer
   13 |     }else if(op == "/"){
      |                 ^~
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:10:15: warning: comparison between pointer and integer
   10 |         if(op != '?') break;
      |               ^~
main.c:15:15: warning: comparison between pointer and integer
   15 |         if(op != '?') break;
      |               ^~
main.c:16:16: error: switch quantity not an integer
   16 |         switch(op){
      |                ^~
main.c:17:37: error: invalid operands to binary + (have 'int *' and 'int *')
   17 |             case '+': printf("%d", a+b); break;
      |                                    ~^
      |                                    ||
      |                                    |int *
      |                                    int *
main.c:19:37: error: invalid operands to binary * (have 'int *' and 'int *')
   19 |             case '*': printf("%d", a*b); break;
      |                                    ~^
      |                                    ||
      |                                    |int *
      |                                    int *
main.c:20:37: error: invalid operands to binary / (have 'int *' and 'int *')
   20 |             case '/': printf("%d", a/b); break;
      |                                    ~^
      |                                    ||
      |                                    |int *
      |                                    int *
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:11:15: warning: comparison between pointer and integer
   11 |         if(op != '?') break;
      |               ^~
main.c:16:15: warning: comparison between pointer and integer
   16 |         if(op != '?') break;
      |               ^~
main.c:17:16: error: switch quantity not an integer
   17 |         switch(op){
      |                ^~
Language: C

include<stdio.h>

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


 for(i=1;i<10000;i++){
 scanf("%d %c %d"a,op,b);
 if(op=='+'){
  ans=a+b;
  printf("%d",ans);
  } 
 else if(op=='-'){
  ans=a-b;
  printf("%d",ans);
  } 
 else if(op=='*'){
  ans=a*b;
  printf("%d",ans);
  } 
 else if(op=='/'){
  ans=a/b;
  printf("%d",ans);
  } 
 else if(op=='?'){
  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(void){
 int a,b,ans,i;
 char op;
 
 
 for(i=1;i<10000;i++){
 scanf("%d %c %d"a,op,b);
 if(op=='+'){
  ans=a+b;
  printf("%d",ans);
  } 
 else if(op=='-'){
  ans=a-b;
  printf("%d",ans);
  } 
 else if(op=='*'){
  ans=a*b;
  printf("%d",ans);
  } 
 else if(op=='/'){
  ans=a/b;
  printf("%d",ans);
  } 
 else if(op=='?'){
  break;
  } 
 
}
 
return 0;
 
}


Compiler output:
main.c: In function 'main':
main.c:9:18: error: expected ')' before 'a'
    9 |  scanf("%d %c %d"a,op,b);
      |       ~          ^
      |                  )
Language: C

#include<stdio.h>

int main(void){
    int a,b;
    char op;
    
    for(i=0;i<20000;i++){
        scanf("%d",&a);
        scanf("%d",&b);
        scanf("%c",&op);
        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:7:9: error: 'i' undeclared (first use in this function)
    7 |     for(i=0;i<20000;i++){
      |         ^
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:13:1: error: stray '\343' in program
   13 | <U+3000>          r=a-b;
      | ^~~~~~~~
main.c:15:1: error: stray '\343' in program
   15 | <U+3000>          r=a*b;
      | ^~~~~~~~
main.c:17:1: error: stray '\343' in program
   17 | <U+3000>          r=a/b;
      | ^~~~~~~~
main.c:19:1: error: stray '\343' in program
   19 | <U+3000>          break;
      | ^~~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:13:1: error: stray '\343' in program
   13 | <U+3000>          r=a-b;
      | ^~~~~~~~
main.c:15:1: error: stray '\343' in program
   15 | <U+3000>          r=a*b;
      | ^~~~~~~~
main.c:17:1: error: stray '\343' in program
   17 | <U+3000>          r=a/b;
      | ^~~~~~~~
main.c:19:1: error: stray '\343' in program
   19 | <U+3000>          break;
      | ^~~~~~~~
Language: C

//import java.io.*;
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        int a,b;
        String op;
        boolean isEnd=true;
        //char op;
        //BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try{
            while(isEnd)
            {
                Scanner sc = new Scanner(System.in);
                a=sc.nextInt();
                op=sc.next();
                b=sc.nextInt();

            /* line=reader.readLine();
            a=Integer.parseInt(line);

            op=String.parseString(line);

           // line=reader.readLine();
            b=Integer.parseInt(line); */

                switch(op)
                {
                    case "+":
                        System.out.println(a+b);
                        break;
                    case "-":
                        System.out.println(a-b);
                        break;
                    case "*":
                        System.out.println(a*b);
                        break;
                    case "/":
                        System.out.println(a/b);
                        break;
                    case "?":
                        isEnd=false;
                        break;
                    default:
                        break;
                }
            }
            

        }catch(NumberFormatException e){
            System.out.println(e);
        /* }catch(UTILLException e){
            System.out.println(e); */
        }
    }
}


Compiler output:
main.c:2:1: error: unknown type name 'import'
    2 | import java.util.Scanner;
      | ^~~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | import java.util.Scanner;
      |            ^
main.c:4:1: error: unknown type name 'public'
    4 | public class Main{
      | ^~~~~~
main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    4 | public class Main{
      |              ^~~~
Language: C

#include <stdio.h>

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


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


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

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



Compiler output:
main.c:23:5: error: redefinition of 'main'
   23 | int main(){
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int()'
    3 | int main(){
      |     ^~~~
Language: C

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

main(){
    int a[],b[],i=0,j;
    char op[];
    while(1){
    scanf("%d %c %d",&a,&op,&b);
    if(op[i]=='?') break;
    i++
    }
    for(j=0;j<i;j++){
        printf("%d\n",a'op'b);
    
    


Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:9: error: array size missing in 'a'
    5 |     int a[],b[],i=0,j;
      |         ^
main.c:5:13: error: array size missing in 'b'
    5 |     int a[],b[],i=0,j;
      |             ^
main.c:6:10: error: array size missing in 'op'
    6 |     char op[];
      |          ^~
main.c:10:8: error: expected ';' before '}' token
   10 |     i++
      |        ^
      |        ;
   11 |     }
      |     ~   
main.c:13:24: warning: multi-character character constant [-Wmultichar]
   13 |         printf("%d\n",a'op'b);
      |                        ^~~~
main.c:13:24: error: expected ')' before '\x6f70'
   13 |         printf("%d\n",a'op'b);
      |               ~        ^~~~
      |                        )
main.c:13:9: error: expected declaration or statement at end of input
   13 |         printf("%d\n",a'op'b);
      |         ^~~~~~
main.c:13:9: error: expected declaration or statement at end of input
Language: C

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

main(){
    int a[],b[],i=0,j;
    char op[];
    while(1){
    scanf("%d %c %d",&a,&op,&b);
    if(op[i]=='?') break;
    i++
    }
    for(j=0;j<i;j++){
        printf("%d\n",a'op'b);
    }
}
    


Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:9: error: array size missing in 'a'
    5 |     int a[],b[],i=0,j;
      |         ^
main.c:5:13: error: array size missing in 'b'
    5 |     int a[],b[],i=0,j;
      |             ^
main.c:6:10: error: array size missing in 'op'
    6 |     char op[];
      |          ^~
main.c:10:8: error: expected ';' before '}' token
   10 |     i++
      |        ^
      |        ;
   11 |     }
      |     ~   
main.c:13:24: warning: multi-character character constant [-Wmultichar]
   13 |         printf("%d\n",a'op'b);
      |                        ^~~~
main.c:13:24: error: expected ')' before '\x6f70'
   13 |         printf("%d\n",a'op'b);
      |               ~        ^~~~
      |                        )