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

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

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


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,c;
      |         ^
main.c:5:13: error: array size missing in 'b'
    5 |     int a[],b[],i=0,j,c;
      |             ^
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:9: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration]
   13 |         swich(op){
      |         ^~~~~
main.c:13:18: error: expected ';' before '{' token
   13 |         swich(op){
      |                  ^
      |                  ;
Language: C

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


Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:3:9: error: array size missing in 'a'
    3 |     int a[],b[],i=0,j,c;
      |         ^
main.c:3:13: error: array size missing in 'b'
    3 |     int a[],b[],i=0,j,c;
      |             ^
main.c:4:10: error: array size missing in 'op'
    4 |     char op[];
      |          ^~
main.c:8:8: error: expected ';' before '}' token
    8 |     i++
      |        ^
      |        ;
    9 |     }
      |     ~   
main.c:11:9: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration]
   11 |         swich(op){
      |         ^~~~~
main.c:11:18: error: expected ';' before '{' token
   11 |         swich(op){
      |                  ^
      |                  ;
Language: C

#include<stdio.h>

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


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:9: error: array size missing in 'a'
    4 |     int a[],b[],i=0,j,c;
      |         ^
main.c:4:13: error: array size missing in 'b'
    4 |     int a[],b[],i=0,j,c;
      |             ^
main.c:5:10: error: array size missing in 'op'
    5 |     char op[];
      |          ^~
main.c:9:8: error: expected ';' before '}' token
    9 |     i++
      |        ^
      |        ;
   10 |     }
      |     ~   
main.c:12:16: error: switch quantity not an integer
   12 |         switch(op){
      |                ^~
main.c:13:23: error: invalid operands to binary + (have 'int *' and 'int *')
   13 |         case '+' : c=a+b break;
      |                      ~^
      |                      ||
      |                      |int *
      |                      int *
main.c:13:25: error: expected ';' before 'break'
   13 |         case '+' : c=a+b break;
      |                         ^~~~~~
      |                         ;
main.c:14:25: error: expected ';' before 'break'
   14 |         case '-' : c=a-b break;
      |                         ^~~~~~
      |                         ;
main.c:15:23: error: invalid operands to binary * (have 'int *' and 'int *')
   15 |         case '*' : c=a*b break;
      |                      ~^
      |                      ||
      |                      |int *
      |                      int *
main.c:15:25: error: expected ';' before 'break'
   15 |         case '*' : c=a*b break;
      |                         ^~~~~~
      |                         ;
main.c:16:23: error: invalid operands to binary / (have 'int *' and 'int *')
   16 |         case '/' : c=a/b break;
      |                      ~^
      |                      ||
      |                      |int *
      |                      int *
main.c:16:25: error: expected ';' before 'break'
   16 |         case '/' : c=a/b break;
      |                         ^~~~~~
      |                         ;
main.c:17:23: error: invalid operands to binary % (have 'int *' and 'int *')
   17 |         case '%' : c=a%b break;
      |                      ~^
      |                      ||
      |                      |int *
      |                      int *
main.c:17:25: error: expected ';' before 'break'
   17 |         case '%' : c=a%b break;
      |                         ^~~~~~
      |                         ;
Language: C

#include<stdio.h>

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


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:9:8: error: expected ';' before '}' token
    9 |     i++
      |        ^
      |        ;
   10 |     }
      |     ~   
main.c:13:25: error: expected ';' before 'break'
   13 |         case '+' : c=a+b break;
      |                         ^~~~~~
      |                         ;
main.c:14:25: error: expected ';' before 'break'
   14 |         case '-' : c=a-b break;
      |                         ^~~~~~
      |                         ;
main.c:15:25: error: expected ';' before 'break'
   15 |         case '*' : c=a*b break;
      |                         ^~~~~~
      |                         ;
main.c:16:25: error: expected ';' before 'break'
   16 |         case '/' : c=a/b break;
      |                         ^~~~~~
      |                         ;
Language: C

#include<stdio.h>

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


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:9:8: error: expected ';' before '}' token
    9 |     i++
      |        ^
      |        ;
   10 |     }
      |     ~   
main.c:13:24: error: expected ';' before 'break'
   13 |         case '+': c=a+b break;
      |                        ^~~~~~
      |                        ;
main.c:14:24: error: expected ';' before 'break'
   14 |         case '-': c=a-b break;
      |                        ^~~~~~
      |                        ;
main.c:15:24: error: expected ';' before 'break'
   15 |         case '*': c=a*b break;
      |                        ^~~~~~
      |                        ;
main.c:16:24: error: expected ';' before 'break'
   16 |         case '/': c=a/b break;
      |                        ^~~~~~
      |                        ;
Language: C

#include<stdio.h>

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


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:9: error: array size missing in 'a'
    4 |     int a[],b[],i=0,j,c;
      |         ^
main.c:4:13: error: array size missing in 'b'
    4 |     int a[],b[],i=0,j,c;
      |             ^
main.c:5:10: error: array size missing in 'op'
    5 |     char op[];
      |          ^~
main.c:9:16: error: switch quantity not an integer
    9 |         switch(op){
      |                ^~
main.c:10:27: error: invalid operands to binary + (have 'int *' and 'int *')
   10 |             case '+' : c=a+b break;
      |                          ~^
      |                          ||
      |                          |int *
      |                          int *
main.c:10:29: error: expected ';' before 'break'
   10 |             case '+' : c=a+b break;
      |                             ^~~~~~
      |                             ;
main.c:11:29: error: expected ';' before 'break'
   11 |             case '-' : c=a-b break;
      |                             ^~~~~~
      |                             ;
main.c:12:27: error: invalid operands to binary * (have 'int *' and 'int *')
   12 |             case '*' : c=a*b break;
      |                          ~^
      |                          ||
      |                          |int *
      |                          int *
main.c:12:29: error: expected ';' before 'break'
   12 |             case '*' : c=a*b break;
      |                             ^~~~~~
      |                             ;
main.c:13:27: error: invalid operands to binary / (have 'int *' and 'int *')
   13 |             case '/' : c=a/b break;
      |                          ~^
      |                          ||
      |                          |int *
      |                          int *
main.c:13:29: error: expected ';' before 'break'
   13 |             case '/' : c=a/b break;
      |                             ^~~~~~
      |                             ;
main.c:16:6: error: '\U0000ff5d' undeclared (first use in this function)
   16 |      ｝
      |      ^~
main.c:16:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:8: error: expected ';' before '}' token
   16 |      ｝
      |        ^
      |        ;
   17 | }
      | ~       
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include<stdio.h>

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


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:9: error: array size missing in 'a'
    4 |     int a[],b[],i=0,j,c;
      |         ^
main.c:4:13: error: array size missing in 'b'
    4 |     int a[],b[],i=0,j,c;
      |             ^
main.c:5:10: error: array size missing in 'op'
    5 |     char op[];
      |          ^~
main.c:9:16: error: switch quantity not an integer
    9 |         switch(op){
      |                ^~
main.c:10:27: error: invalid operands to binary + (have 'int *' and 'int *')
   10 |             case '+' : c=a+b break;
      |                          ~^
      |                          ||
      |                          |int *
      |                          int *
main.c:10:29: error: expected ';' before 'break'
   10 |             case '+' : c=a+b break;
      |                             ^~~~~~
      |                             ;
main.c:11:29: error: expected ';' before 'break'
   11 |             case '-' : c=a-b break;
      |                             ^~~~~~
      |                             ;
main.c:12:27: error: invalid operands to binary * (have 'int *' and 'int *')
   12 |             case '*' : c=a*b break;
      |                          ~^
      |                          ||
      |                          |int *
      |                          int *
main.c:12:29: error: expected ';' before 'break'
   12 |             case '*' : c=a*b break;
      |                             ^~~~~~
      |                             ;
main.c:13:27: error: invalid operands to binary / (have 'int *' and 'int *')
   13 |             case '/' : c=a/b break;
      |                          ~^
      |                          ||
      |                          |int *
      |                          int *
main.c:13:29: error: expected ';' before 'break'
   13 |             case '/' : c=a/b break;
      |                             ^~~~~~
      |                             ;
main.c:16:6: error: '\U0000ff5d' undeclared (first use in this function)
   16 |      ｝
      |      ^~
main.c:16:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:8: error: expected ';' before '}' token
   16 |      ｝
      |        ^
      |        ;
   17 | }
      | ~       
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include<stdio.h>

main(){
    int a,b,i=0,j,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;
            case '/' : c=a/b break;
        }
      printf("%d\n",c);
     ｝
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:10:29: error: expected ';' before 'break'
   10 |             case '+' : c=a+b break;
      |                             ^~~~~~
      |                             ;
main.c:11:29: error: expected ';' before 'break'
   11 |             case '-' : c=a-b break;
      |                             ^~~~~~
      |                             ;
main.c:12:29: error: expected ';' before 'break'
   12 |             case '*' : c=a*b break;
      |                             ^~~~~~
      |                             ;
main.c:13:29: error: expected ';' before 'break'
   13 |             case '/' : c=a/b break;
      |                             ^~~~~~
      |                             ;
main.c:16:6: error: '\U0000ff5d' undeclared (first use in this function)
   16 |      ｝
      |      ^~
main.c:16:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:8: error: expected ';' before '}' token
   16 |      ｝
      |        ^
      |        ;
   17 | }
      | ~       
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include<stdio.h>

main(){
    int a,b,i=0,j,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;
            case '/' : c=a/b break;
        }
      printf("%d\n",c);
      }
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:10:29: error: expected ';' before 'break'
   10 |             case '+' : c=a+b break;
      |                             ^~~~~~
      |                             ;
main.c:11:29: error: expected ';' before 'break'
   11 |             case '-' : c=a-b break;
      |                             ^~~~~~
      |                             ;
main.c:12:29: error: expected ';' before 'break'
   12 |             case '*' : c=a*b break;
      |                             ^~~~~~
      |                             ;
main.c:13:29: error: expected ';' before 'break'
   13 |             case '/' : c=a/b break;
      |                             ^~~~~~
      |                             ;
Language: C

#include<stdio.h>

main(){
    int a,b,i=0,j,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;
            case '/' : c=a/b break;
        }
      printf("%d\n",c);
      
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:10:29: error: expected ';' before 'break'
   10 |             case '+' : c=a+b break;
      |                             ^~~~~~
      |                             ;
main.c:11:29: error: expected ';' before 'break'
   11 |             case '-' : c=a-b break;
      |                             ^~~~~~
      |                             ;
main.c:12:29: error: expected ';' before 'break'
   12 |             case '*' : c=a*b break;
      |                             ^~~~~~
      |                             ;
main.c:13:29: error: expected ';' before 'break'
   13 |             case '/' : c=a/b break;
      |                             ^~~~~~
      |                             ;
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include<stdio.h>

main(){
    int a,b,i=0,j,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;
            case '/' : c=a/b; break;
        }
      printf("%d\n",c);
      
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include<stdio.h>

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


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:15:12: error: expected ';' before '}' token
   15 |         j++
      |            ^
      |            ;
   16 |      }
      |      ~
Language: C

#include<stdio.h>

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


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:15:12: error: expected ';' before '}' token
   15 |         j++
      |            ^
      |            ;
   16 |      }
      |      ~
Language: C

#include<stdio.h>

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


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:13:10: error: 'else' without a previous 'if'
   13 |         }else{
      |          ^~~~
main.c:15:10: error: 'else' without a previous 'if'
   15 |         }else{
      |          ^~~~
main.c:18:12: error: expected ';' before '}' token
   18 |         j++
      |            ^
      |            ;
   19 |      }
      |      ~
Language: C

#include<stdio.h>

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


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:11:10: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   11 |         }elseif(op=='-'){
      |          ^~~~~~
main.c:11:25: error: expected ';' before '{' token
   11 |         }elseif(op=='-'){
      |                         ^
      |                         ;
Language: C

#include<stdio.h>

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

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

switch(op)
{
case '?':
goto END;
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;
}

end:

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:33:1: error: expected declaration or statement at end of input
   33 | }
      | ^
main.c:15:1: error: label 'END' used but not defined
   15 | goto END;
      | ^~~~
Language: C

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


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

#include<stdio.h>
 
int main()
{
int a, b, flag = 1;
char op;
 
while(flag)
{
scanf("%d %c %d ", &a, &op, &b);
 
switch(op)
{
case '?':
flag = 0;
break;
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:32:1: error: expected declaration or statement at end of input
   32 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected expression before '%' token
    5 | scanf(%d %c %d, &a, &op, &b);
      |       ^
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include <stdio.h>

int main(void) {

	int a, b, op;
	int ans = 0;

	while (1) {
		scanf("%d %c %d", &a, &op, &b);
		ans = a op b;
		if (op = "?" ) {
			break;
		}
	
	}

	printf("%d\n", ans);

	return(0);

}


Compiler output:
main.c: In function 'main':
main.c:10:24: error: expected ';' before 'op'
   10 |                 ans = a op b;
      |                        ^~~
      |                        ;
main.c:11:24: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   11 |                 if (op = "?" ) {
      |                        ^
Language: C

#include <stdio.h>

int main(void) {

	int a, b, op;
	int ans = 0;
        ans = a op b;
	while (1) {
		scanf("%d %c %d", &a, &op, &b);
		
		if (op = "?" ) {
			break;
		}
	
	}

	printf("%d\n", ans);

	return(0);

}


Compiler output:
main.c: In function 'main':
main.c:7:16: error: expected ';' before 'op'
    7 |         ans = a op b;
      |                ^~~
      |                ;
main.c:11:24: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   11 |                 if (op = "?" ) {
      |                        ^
Language: C

#include <stdio.h>

int main(void) {

	int a, b, op;
	int ans;

	

	while (1) {
		scanf("%d %c %d", &a, &op, &b);
		ans = a op b;
		if (op = "?" ) {
			break;
		}
	
	}

	printf("%d", ans);

	return(0);

}


Compiler output:
main.c: In function 'main':
main.c:12:24: error: expected ';' before 'op'
   12 |                 ans = a op b;
      |                        ^~~
      |                        ;
main.c:13:24: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   13 |                 if (op = "?" ) {
      |                        ^
Language: C

#include<stdio.h>
int main(){
int a,b,c;
char op;
scanf("%d %c %d",&a,&op,&b);

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

return 0;
}





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

#include<stdio.h>
int main(){
int a,b,c;
char op;
scanf("%d %c %d",&a,&op,&b);

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

return 0;
}



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

#include<stdio.h>
int main(void){
int a,b,A;
char op;
scanf("%d %c %d",&a,&op,&b);

for(;;){
if(op=='?')break;
switch(op){
case '+': A=a+b;
break;
case '-': A=a-b;
break;
case '/': A=a/b;
break;
case '*': A=a*b;
break;
}
printf("%d\n",A);

return 0;
}



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

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:10:14: error: expected expression before ')' token
   10 |     if(b == +){
      |              ^
main.c:13:19: error: expected expression before ')' token
   13 |     else if(b == -){
      |                   ^
main.c:16:19: error: expected expression before ')' token
   16 |     else if(b == *){
      |                   ^
main.c:19:18: error: expected expression before '/' token
   19 |     else if(b == /){
      |                  ^
main.c:22:18: error: expected expression before '?' token
   22 |     else if(b == ?){
      |                  ^
Language: C

#include <stdio.h>

int main() {


int a,b,c;
char op;

 for (;;) {
    scanf("%d %c %d\n", &a,&op,&b);
   
   switch (op) 
   {
     case +:
      c=a+b;

     case -:
      c=a-b;

     case *:
      c=a*b;

     case /:
      c=a/b;

     default:
     exit(1);
   }  
    printf("%d\n",c);
  
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:12: error: expected expression before ':' token
   14 |      case +:
      |            ^
main.c:17:12: error: expected expression before ':' token
   17 |      case -:
      |            ^
main.c:20:12: error: expected expression before ':' token
   20 |      case *:
      |            ^
main.c:23:11: error: expected expression before '/' token
   23 |      case /:
      |           ^
main.c:23:11: error: expected expression before '/' token
main.c:27:6: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   27 |      exit(1);
      |      ^~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:27:6: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   27 |      exit(1);
      |      ^~~~
main.c:27:6: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

#include <stdio.h>

int main() {


int a,b,c;
char op;

 for (;;) {
    scanf("%d %c %d\n", &a,&op,&b);
   
   switch (op) 
   {
     case "+":
      c=a+b;

     case "-":
      c=a-b;

     case "*":
      c=a*b;

     case "/":
      c=a/b;

     default:
     exit(1);
   }  
    printf("%d\n",c);
  
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:6: error: pointers are not permitted as case values
   14 |      case "+":
      |      ^~~~
main.c:17:6: error: pointers are not permitted as case values
   17 |      case "-":
      |      ^~~~
main.c:20:6: error: pointers are not permitted as case values
   20 |      case "*":
      |      ^~~~
main.c:23:6: error: pointers are not permitted as case values
   23 |      case "/":
      |      ^~~~
main.c:27:6: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   27 |      exit(1);
      |      ^~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:27:6: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   27 |      exit(1);
      |      ^~~~
main.c:27:6: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

#include <stdio.h>

int main() {


int a,b,c;
char op;

 for (;;) {
    scanf("%d %c %d\n", &a,&op,&b);
   
   switch (op) 
   {
     case "+":
      c=a+b;
      break;
      
     case "-":
      c=a-b;
      break;
      
     case "*":
      c=a*b;
      break;
      
     case "/":
      c=a/b;
      break;
      
     default:
     exit(1);
   }  
    printf("%d\n",c);
  
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:6: error: pointers are not permitted as case values
   14 |      case "+":
      |      ^~~~
main.c:18:6: error: pointers are not permitted as case values
   18 |      case "-":
      |      ^~~~
main.c:22:6: error: pointers are not permitted as case values
   22 |      case "*":
      |      ^~~~
main.c:26:6: error: pointers are not permitted as case values
   26 |      case "/":
      |      ^~~~
main.c:31:6: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   31 |      exit(1);
      |      ^~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:31:6: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   31 |      exit(1);
      |      ^~~~
main.c:31:6: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

#include <stdio.h>
#include <stdlib.h>

int main() {


int a,b,c;
char op;

 for (;;) {
    scanf("%d %c %d\n", &a,&op,&b);
   
   switch (op) 
   {
     case +:
      c=a+b;
      break;
      
     case -:
      c=a-b;
      break;
      
     case *:
      c=a*b;
      break;
      
     case /:
      c=a/b;
      break;
      
     default:
     exit(1);
   }  
    printf("%d\n",c);
  
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:12: error: expected expression before ':' token
   15 |      case +:
      |            ^
main.c:19:12: error: expected expression before ':' token
   19 |      case -:
      |            ^
main.c:23:12: error: expected expression before ':' token
   23 |      case *:
      |            ^
main.c:27:11: error: expected expression before '/' token
   27 |      case /:
      |           ^
main.c:27:11: error: expected expression before '/' token
Language: C

#include <stdio.h>
#include <stdlib.h>

int main() {


int a,b,c;
char op;

 while(op!=?) {
    scanf("%d %c %d\n", &a,&op,&b);
   
   switch (op) 
   {
     case +:
      c=a+b;
      break;
      
     case -:
      c=a-b;
      break;
      
     case *:
      c=a*b;
      break;
      
     case /:
      c=a/b;
      break;
      
     default:
     break;
   }  
    printf("%d\n",c);
  
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:12: error: expected expression before '?' token
   10 |  while(op!=?) {
      |            ^
main.c:15:12: error: expected expression before ':' token
   15 |      case +:
      |            ^
main.c:19:12: error: expected expression before ':' token
   19 |      case -:
      |            ^
main.c:23:12: error: expected expression before ':' token
   23 |      case *:
      |            ^
main.c:27:11: error: expected expression before '/' token
   27 |      case /:
      |           ^
main.c:27:11: error: expected expression before '/' token
Language: C

#include <stdio.h>
#include <stdlib.h>

int main() {


int a,b,c;
char op;

 while(op!=?) {
    scanf("%d %c %d\n", &a,&op,&b);
   
   switch (op) 
   {
     case '+':
      c=a+b;
      break;
      
     case '-':
      c=a-b;
      break;
      
     case '*':
      c=a*b;
      break;
      
     case '/':
      c=a/b;
      break;
      
     default:
     break;
   }  
    printf("%d\n",c);
  
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:12: error: expected expression before '?' token
   10 |  while(op!=?) {
      |            ^
Language: C

#include <stdio.h>

int main() {


int a,b,c;
char op;

 while(op!=?) {
    scanf("%d %c %d\n", &a,&op,&b);
   
   switch (op) 
   {
     case '+':
      c=a+b;
      break;
      
     case '-':
      c=a-b;
      break;
      
     case '*':
      c=a*b;
      break;
      
     case '/':
      c=a/b;
      break;
      
     default:
     break;
   }  
    printf("%d\n",c);
  
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:12: error: expected expression before '?' token
    9 |  while(op!=?) {
      |            ^
Language: C

#include <stdio.h>

int main() {


int a,b,c;
char op;

 while(op!=?) {
    scanf("%d %c %d\n", &a,&op,&b);
   
   switch (op) 
   {
     case '+':
      c=a+b;
      break;
      
     case '-':
      c=a-b;
      break;
      
     case '*':
      c=a*b;
      break;
      
     case '/':
      c=a/b;
      break;
      
     case '?':
     break;
   }  
    printf("%d\n",c);
  
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:12: error: expected expression before '?' token
    9 |  while(op!=?) {
      |            ^
Language: C

#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>

int main()
{
    int a, b, x;
    char buf[256],*p;
    char op;

    for (;;){
        gets(buf);
        p = buf;
        a = atoi(p);
        while (isspace(*p)) p++;
        while (isdigit(*p)) p++;
        while (isspace(*p)) p++;
        op = *p++;
        b = atoi(p);

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




Compiler output:
main.c: In function 'main':
main.c:12:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   12 |         gets(buf);
      |         ^~~~
      |         fgets
Language: C

#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
 
int main()
{
    int a, b, x;
    char buf[256], *p;
    char op;
 
    for (;;) {
        gets(buf);
 
        p = buf;
        a = atoi(p);
        while (isspace(*p)) p++;
        while (isdigit(*p)) p++;
        while (isspace(*p)) p++;
        op = *p++;
        b = atoi(p);
 
        if      (op == '+') x = a + b;
        else if (op == '-') x = a - b;
        else if (op == '*') x = a * b;
        else if (op == '/') x = a / b;
        else break;
        printf("%d\n", x);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   12 |         gets(buf);
      |         ^~~~
      |         fgets
Language: C

#include <stdio.h>
int main(void){
    
    int a,b,ans;
    char op;
   
  while(op != '?') {
   scanf("%d %c %d",&a,&op,&b);
   
   switch ( op ){
　　case '+':　ans = a + b;　break;
　　case '-':　ans = a - b;　break;
　　case '*':　ans = a * b;　break;
　　case '/':　ans = a / b;　break;
   }
    printf("%d\n",ans);
   }
   return 0;
    
}



Compiler output:
main.c: In function 'main':
main.c:11:1: error: stray '\343' in program
   11 | <U+3000><U+3000>case '+':<U+3000>ans = a + b;<U+3000>break;
      | ^~~~~~~~
main.c:11:3: error: stray '\343' in program
   11 | <U+3000><U+3000>case '+':<U+3000>ans = a + b;<U+3000>break;
      |         ^~~~~~~~
main.c:11:14: error: stray '\343' in program
   11 | <U+3000><U+3000>case '+':<U+3000>ans = a + b;<U+3000>break;
      |                          ^~~~~~~~
main.c:11:28: error: stray '\343' in program
   11 | <U+3000><U+3000>case '+':<U+3000>ans = a + b;<U+3000>break;
      |                                              ^~~~~~~~
main.c:12:1: error: stray '\343' in program
   12 | <U+3000><U+3000>case '-':<U+3000>ans = a - b;<U+3000>break;
      | ^~~~~~~~
main.c:12:3: error: stray '\343' in program
   12 | <U+3000><U+3000>case '-':<U+3000>ans = a - b;<U+3000>break;
      |         ^~~~~~~~
main.c:12:14: error: stray '\343' in program
   12 | <U+3000><U+3000>case '-':<U+3000>ans = a - b;<U+3000>break;
      |                          ^~~~~~~~
main.c:12:28: error: stray '\343' in program
   12 | <U+3000><U+3000>case '-':<U+3000>ans = a - b;<U+3000>break;
      |                                              ^~~~~~~~
main.c:13:1: error: stray '\343' in program
   13 | <U+3000><U+3000>case '*':<U+3000>ans = a * b;<U+3000>break;
      | ^~~~~~~~
main.c:13:3: error: stray '\343' in program
   13 | <U+3000><U+3000>case '*':<U+3000>ans = a * b;<U+3000>break;
      |         ^~~~~~~~
main.c:13:14: error: stray '\343' in program
   13 | <U+3000><U+3000>case '*':<U+3000>ans = a * b;<U+3000>break;
      |                          ^~~~~~~~
main.c:13:28: error: stray '\343' in program
   13 | <U+3000><U+3000>case '*':<U+3000>ans = a * b;<U+3000>break;
      |                                              ^~~~~~~~
main.c:14:1: error: stray '\343' in program
   14 | <U+3000><U+3000>case '/':<U+3000>ans = a / b;<U+3000>break;
      | ^~~~~~~~
main.c:14:3: error: stray '\343' in program
   14 | <U+3000><U+3000>case '/':<U+3000>ans = a / b;<U+3000>break;
      |         ^~~~~~~~
main.c:14:14: error: stray '\343' in program
   14 | <U+3000><U+3000>case '/':<U+3000>ans = a / b;<U+3000>break;
      |                          ^~~~~~~~
main.c:14:28: error: stray '\343' in program
   14 | <U+3000><U+3000>case '/':<U+3000>ans = a / b;<U+3000>break;
      |                                              ^~~~~~~~
Language: C

#include <stdio.h>
#include <stdlib.h>

void Constraints(int a,int b,char op)
{
  if(0<=a&&a<=200000&&0<=b&&b<=200000&&(op=='+'||op=='-'||op=='*'||op=='/'||op=='?')){

  }　else　{
    printf("条件を満たす入力をしてください。\n");
    exit(0);
  }
}

int Operator(int a,int b,char op)
{
  switch(op)
  {
    case '+': return (a+b);
    break;
    case '-': return (a-b);
    break;
    case '*': return (a*b);
    break;
    case '/':
    if(b==0)
    {
      printf("0 による割り算はできません。");
      exit(0);
    }
    else{return a/b;}
    break;
    case '?': return NULL;
    break;
  }
}

int main(void)
{
  int a,b;
  char op=' ';
  while(op!='?')
  {
    scanf("%d %c %d",&a,&op,&b);
    Constraints(a,b,op);
    if(op=='?'){
      break;
    }
    printf("%d\n",Operator(a,b,op));
  }
  return 0;
}



Compiler output:
main.c: In function 'Constraints':
main.c:8:4: error: stray '\343' in program
    8 |   }<U+3000>else<U+3000>{
      |    ^~~~~~~~
main.c:8:10: error: stray '\343' in program
    8 |   }<U+3000>else<U+3000>{
      |                ^~~~~~~~
main.c: In function 'Operator':
main.c:32:22: error: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
   32 |     case '?': return NULL;
      |                      ^~~~
Language: C

#include <stdio.h>

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

  scanf("%d",&a);
  scanf("%f",&b);
  scanf("%d",&c);

  switch(b){
    case +:
      printf("%d\n",a + b);

    case -:
      printf("%d\n",a - b);

    case *:
      printf("%d\n",a * b);

    case /:
      printf("%d\n",a / b);

    case ?:
      break;
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:11: error: expected expression before ':' token
   12 |     case +:
      |           ^
main.c:15:11: error: expected expression before ':' token
   15 |     case -:
      |           ^
main.c:18:11: error: expected expression before ':' token
   18 |     case *:
      |           ^
main.c:21:10: error: expected expression before '/' token
   21 |     case /:
      |          ^
main.c:21:10: error: expected expression before '/' token
main.c:24:10: error: expected expression before '?' token
   24 |     case ?:
      |          ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:19: error: expected identifier or '(' before ';' token
    4 |         int a,b,c,;
      |                   ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:19: error: expected identifier or '(' before ';' token
    4 |         int a,b,c,;
      |                   ^
Language: C

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

		printf("%d",ans);

	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:12:22: error: 'i' undeclared (first use in this function)
   12 |                 else i{ ans=a/b;}
      |                      ^
main.c:12:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:23: error: expected ';' before '{' token
   12 |                 else i{ ans=a/b;}
      |                       ^
      |                       ;
Language: C

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

		printf("%d\n",ans);

	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:38: error: 'op' undeclared (first use in this function)
    6 |                 scanf("%d%c%d\n",&a,&op,&b);
      |                                      ^~
main.c:6:38: 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,A;
	char op;

	for (;;) {
		scanf_s("%d %c %d\n", &a,&op,&b);
		if (op == '+')A = a + b;
		 if (op == '-')A = a - b;
		 if (op == '*')A = a * b;
		 if (op == '/')A = a / b;
		 if (op == '?')break;
	}
	printf("%d\n", A);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |                 scanf_s("%d %c %d\n", &a,&op,&b);
      |                 ^~~~~~~
      |                 scanf
Language: C

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

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

#include<stdio.h>
int main(){
    int a,b;
    char op;
    while(1){
        scanf("%d%s%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:7:16: error: expected expression before '?' token
    7 |         if(op==?)break;
      |                ^
main.c:8:14: warning: comparison between pointer and integer
    8 |         if(op=="+")printf("%d\n"a+b);
      |              ^~
main.c:8:33: error: expected ')' before 'a'
    8 |         if(op=="+")printf("%d\n"a+b);
      |                          ~      ^
      |                                 )
main.c:9:19: warning: comparison between pointer and integer
    9 |         else if(op=="-")printf("%d\n"a-b);
      |                   ^~
main.c:9:38: error: expected ')' before 'a'
    9 |         else if(op=="-")printf("%d\n"a-b);
      |                               ~      ^
      |                                      )
main.c:10:19: warning: comparison between pointer and integer
   10 |         else if(op=="*")printf("%d\n"a*b);
      |                   ^~
main.c:10:38: error: expected ')' before 'a'
   10 |         else if(op=="*")printf("%d\n"a*b);
      |                               ~      ^
      |                                      )
main.c:11:19: warning: comparison between pointer and integer
   11 |         else if(op=="/")printf("%d\n"a/b);
      |                   ^~
main.c:11:38: error: expected ')' before 'a'
   11 |         else if(op=="/")printf("%d\n"a/b);
      |                               ~      ^
      |                                      )