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

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


Compiler output:
main.c: In function 'main':
main.c:7:6: error: invalid operands to binary == (have 'float' and 'char *')
    7 | if(op=="?")break;
      |      ^~
      |      |
      |      char *
main.c:8:6: error: invalid operands to binary == (have 'float' and 'char *')
    8 | if(op=="+")c=a+b;
      |      ^~
      |      |
      |      char *
main.c:9:11: error: invalid operands to binary == (have 'float' and 'char *')
    9 | else if(op=="-")c=a-b;
      |           ^~
      |           |
      |           char *
main.c:10:11: error: invalid operands to binary == (have 'float' and 'char *')
   10 | else if(op=="*")c=a*b;
      |           ^~
      |           |
      |           char *
main.c:11:11: error: invalid operands to binary == (have 'float' and 'char *')
   11 | else if(op=="/")c=a/b;
      |           ^~
      |           |
      |           char *
Language: C

#include<stdio.h>
int main(void){
int a,b,c;
float op;
while(1){
scanf("%d %c %d",&a,&op,&b);
if(op=="?")break;

if(op=="+")c=a+b;
else if(op=="-")c=a-b;
else if(op=="*")c=a*b;
else if(op=="/")c=a/b;

printf("%d\n",c);
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:6: error: invalid operands to binary == (have 'float' and 'char *')
    7 | if(op=="?")break;
      |      ^~
      |      |
      |      char *
main.c:9:6: error: invalid operands to binary == (have 'float' and 'char *')
    9 | if(op=="+")c=a+b;
      |      ^~
      |      |
      |      char *
main.c:10:11: error: invalid operands to binary == (have 'float' and 'char *')
   10 | else if(op=="-")c=a-b;
      |           ^~
      |           |
      |           char *
main.c:11:11: error: invalid operands to binary == (have 'float' and 'char *')
   11 | else if(op=="*")c=a*b;
      |           ^~
      |           |
      |           char *
main.c:12:11: error: invalid operands to binary == (have 'float' and 'char *')
   12 | else if(op=="/")c=a/b;
      |           ^~
      |           |
      |           char *
Language: C

#include <stdio.h>

int main(void)
{
    int a, b;
    char op;
    
    while (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;
        }
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:17: error: expected ':' or '...' before 'printf'
   15 |                 printf("%d", a - b);
      |                 ^~~~~~
Language: C

#include<stdio.h>
int main(){
    int a,b;
    cahr 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{
            printf("%d\n",a/b);
        }
    }
    retiurn 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:5: error: unknown type name 'cahr'; did you mean 'char'?
    4 |     cahr op;
      |     ^~~~
      |     char
main.c:19:5: error: 'retiurn' undeclared (first use in this function)
   19 |     retiurn 0;
      |     ^~~~~~~
main.c:19:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:12: error: expected ';' before numeric constant
   19 |     retiurn 0;
      |            ^~
      |            ;
Language: C

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


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

int main(void) {

int a,b;char s;
scanf("%d %c %d\n",&a,&s,&b);

while(s!="?"){

switch(c){
 case "+":
  printf("%d\n",a+b);
  break;
 case "/":
  printf("%d\n",a/b);
  break;
 case "*":
  printf("%d\n",a*b);
  break;
 case "-":
  printf("%d\n",a-b);
  break;
}

scanf("%d %c %d\n",&a,&s,&b);

}


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:8: warning: comparison between pointer and integer
    8 | while(s!="?"){
      |        ^~
main.c:10:8: error: 'c' undeclared (first use in this function)
   10 | switch(c){
      |        ^
main.c:10:8: 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;char s;
scanf("%d %c %d\n",&a,&s,&b);

while(s!="?"){

switch(c){
 case "+":
  printf("%d\n",a+b);
  break;
 case "/":
  printf("%d\n",a/b);
  break;
 case "*":
  printf("%d\n",a*b);
  break;
 case "-":
  printf("%d\n",a-b);
  break;
default:
break;
}

scanf("%d %c %d\n",&a,&s,&b);

}


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:8: warning: comparison between pointer and integer
    8 | while(s!="?"){
      |        ^~
main.c:10:8: error: 'c' undeclared (first use in this function)
   10 | switch(c){
      |        ^
main.c:10:8: 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;char s;
scanf("%d %c %d\n",&a,&s,&b);

while(s!="?"){

switch(s){
 case "+":
  printf("%d\n",a+b);
  break;
 case "/":
  printf("%d\n",a/b);
  break;
 case "*":
  printf("%d\n",a*b);
  break;
 case "-":
  printf("%d\n",a-b);
  break;
default:
break;
}

scanf("%d %c %d\n",&a,&s,&b);

}


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:8: warning: comparison between pointer and integer
    8 | while(s!="?"){
      |        ^~
main.c:11:2: error: pointers are not permitted as case values
   11 |  case "+":
      |  ^~~~
main.c:14:2: error: pointers are not permitted as case values
   14 |  case "/":
      |  ^~~~
main.c:17:2: error: pointers are not permitted as case values
   17 |  case "*":
      |  ^~~~
main.c:20:2: error: pointers are not permitted as case values
   20 |  case "-":
      |  ^~~~
Language: C

#include <stdio.h>

int main(){

int a,b;

char op;

while(1){

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

if(op==+)

printf("%d",a+b);

else if(op==-)

printf("%d",a-b);

else if(op==*)

printf("%d",a*b);

else if(op==/)

printf("%d",a/b);

else if(op==?)

break;

}

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: expected expression before ')' token
   13 | if(op==+)
      |         ^
main.c:17:14: error: expected expression before ')' token
   17 | else if(op==-)
      |              ^
main.c:21:14: error: expected expression before ')' token
   21 | else if(op==*)
      |              ^
main.c:25:13: error: expected expression before '/' token
   25 | else if(op==/)
      |             ^
main.c:29:13: error: expected expression before '?' token
   29 | else if(op==?)
      |             ^
Language: C

#include<studio.h>

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

   n=0;

   for(n==0)
      {
         scanf("%d %c %d", &a, &op, &b);

         if(op==+)
            printf("%d\n", a+b);

         else if(op==-)
            printf("%d\n", a-b);

         else if(op==*)
            printf("%d\n", a*b);

         else if(op==/)
            printf("%d\n", a/b);

         else if(op==?)
            n=1;
      }
   return (0);
}

Compiler output:
main.c:1:9: fatal error: studio.h: No such file or directory
    1 | #include<studio.h>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

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

int main(){

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

Compiler output:
main.c: In function 'main':
main.c:23:12: error: expected ';' before '}' token
   23 |       break
      |            ^
      |            ;
   24 |         }
      |         ~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:25:18: error: expected ';' before 'return'
   25 |         }while(1)
      |                  ^
      |                  ;
   26 |         return 0;
      |         ~~~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:26:18: error: expected ';' before 'return'
   26 |         }while(1)
      |                  ^
      |                  ;
   27 |         return 0;
      |         ~~~~~~
Language: C

#include<stdio.h>

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

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

#include<stdio.h>
 
int main(){
 while(1){
  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 '?': return 0; break
   default: break;
  }
 }
}

Compiler output:
main.c: In function 'main':
main.c:13:29: error: expected ';' before 'default'
   13 |    case '?': return 0; break
      |                             ^
      |                             ;
   14 |    default: break;
      |    ~~~~~~~
Language: C

#include<stdio.h>
int main(void)
{
    int a,b,op;
    scanf("%d%d%c",&a,&b,&op);
    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:6:12: error: expected expression before '?' token
    6 |     if(op==?)
      |            ^
main.c:8:9: error: break statement not within loop or switch
    8 |         break;
      |         ^~~~~
main.c:10:18: error: expected expression before ')' token
   10 |     else if(op==+)
      |                  ^
main.c:14:18: error: expected expression before ')' token
   14 |     else if(op==-)
      |                  ^
main.c:18:18: error: expected expression before ')' token
   18 |     else if(op==*)
      |                  ^
main.c:22:17: error: expected expression before '/' token
   22 |     else if(op==/)
      |                 ^
Language: C

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

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:21: error: expected ';' before '{' token
   16 |   } else (op == '/'){
      |                     ^
      |                     ;
Language: C

#include<iostream>
using namespace std;
int main(){
	bool nc = 1;
	int na,nb;
	char c;
	while(nc){
	std::cin>>na>>c>>nb;
	switch(c){
	case '+':
		cout<<na + nb<<endl;
		break;
	case '-':
		cout<<na - nb<<endl;
		break;
	case '*':
		cout<<na * nb<<endl;
		break;
	case '/':
		cout<<na / nb<<endl;
		break;
	case '?':
		nc = 0;
	}
	}
	return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

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

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

Compiler output:
main.c: In function 'main':
main.c:8:46: error: 'c' undeclared (first use in this function)
    8 | while(scanf("%d %c %d", &a, &op, &b)!=EOF && c!='?'){
      |                                              ^
main.c:8:46: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

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

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(void){int a, b;char op; while(scanf("%d %c %d", &a, &op, &b)!=EOF && 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;}return 0;}
      |                    ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:9:21: error: 'c' undeclared (first use in this function)
    9 |                 if( c == "?" ){
      |                     ^
main.c:9:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:32: warning: missing terminating " character
   17 |                 }else if( c == "\" ){
      |                                ^
main.c:17:32: error: missing terminating " character
   17 |                 }else if( c == "\" ){
      |                                ^~~~~~
main.c:18:25: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |                         prinf( "%d\n", a \ b );
      |                         ^~~~~
      |                         printf
main.c:18:42: error: stray '\' in program
   18 |                         prinf( "%d\n", a \ b );
      |                                          ^
main.c:18:41: error: expected ')' before 'b'
   18 |                         prinf( "%d\n", a \ b );
      |                              ~          ^  ~
      |                                         )
main.c:18:47: error: expected ')' before ';' token
   18 |                         prinf( "%d\n", a \ b );
      |                                               ^
      |                                               )
main.c:17:25: note: to match this '('
   17 |                 }else if( c == "\" ){
      |                         ^
main.c:19:17: error: expected expression before '}' token
   19 |                 }
      |                 ^
main.c: At top level:
main.c:22:9: error: expected identifier or '(' before 'return'
   22 |         return 0;
      |         ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C

#include <stdio.h>

int main( void )
{
	int a, op, b;
	
	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 == "\" ){
			prinf( "%d\n", a \ b );
		}
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:24: warning: comparison between pointer and integer
    9 |                 if( op == "?" ){
      |                        ^~
main.c:11:30: warning: comparison between pointer and integer
   11 |                 }else if( op == "+" ){
      |                              ^~
main.c:13:30: warning: comparison between pointer and integer
   13 |                 }else if( op == "-" ){
      |                              ^~
main.c:15:30: warning: comparison between pointer and integer
   15 |                 }else if( op == "*" ){
      |                              ^~
main.c:17:33: warning: missing terminating " character
   17 |                 }else if( op == "\" ){
      |                                 ^
main.c:17:33: error: missing terminating " character
   17 |                 }else if( op == "\" ){
      |                                 ^~~~~~
main.c:18:25: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |                         prinf( "%d\n", a \ b );
      |                         ^~~~~
      |                         printf
main.c:18:42: error: stray '\' in program
   18 |                         prinf( "%d\n", a \ b );
      |                                          ^
main.c:18:41: error: expected ')' before 'b'
   18 |                         prinf( "%d\n", a \ b );
      |                              ~          ^  ~
      |                                         )
main.c:18:47: error: expected ')' before ';' token
   18 |                         prinf( "%d\n", a \ b );
      |                                               ^
      |                                               )
main.c:17:25: note: to match this '('
   17 |                 }else if( op == "\" ){
      |                         ^
main.c:19:17: error: expected expression before '}' token
   19 |                 }
      |                 ^
main.c: At top level:
main.c:22:9: error: expected identifier or '(' before 'return'
   22 |         return 0;
      |         ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C

#include <stdio.h>

int main( void )
{
	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 == "\" ){
			prinf( "%d\n", a \ b );
		}
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:24: warning: comparison between pointer and integer
   10 |                 if( op == "?" ){
      |                        ^~
main.c:12:30: warning: comparison between pointer and integer
   12 |                 }else if( op == "+" ){
      |                              ^~
main.c:14:30: warning: comparison between pointer and integer
   14 |                 }else if( op == "-" ){
      |                              ^~
main.c:16:30: warning: comparison between pointer and integer
   16 |                 }else if( op == "*" ){
      |                              ^~
main.c:18:33: warning: missing terminating " character
   18 |                 }else if( op == "\" ){
      |                                 ^
main.c:18:33: error: missing terminating " character
   18 |                 }else if( op == "\" ){
      |                                 ^~~~~~
main.c:19:25: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   19 |                         prinf( "%d\n", a \ b );
      |                         ^~~~~
      |                         printf
main.c:19:42: error: stray '\' in program
   19 |                         prinf( "%d\n", a \ b );
      |                                          ^
main.c:19:41: error: expected ')' before 'b'
   19 |                         prinf( "%d\n", a \ b );
      |                              ~          ^  ~
      |                                         )
main.c:19:47: error: expected ')' before ';' token
   19 |                         prinf( "%d\n", a \ b );
      |                                               ^
      |                                               )
main.c:18:25: note: to match this '('
   18 |                 }else if( op == "\" ){
      |                         ^
main.c:20:17: error: expected expression before '}' token
   20 |                 }
      |                 ^
main.c: At top level:
main.c:23:9: error: expected identifier or '(' before 'return'
   23 |         return 0;
      |         ^~~~~~
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:24: warning: comparison between pointer and integer
   10 |                 if( op == "?" ){
      |                        ^~
main.c:12:30: warning: comparison between pointer and integer
   12 |                 }else if( op == "+" ){
      |                              ^~
main.c:14:30: warning: comparison between pointer and integer
   14 |                 }else if( op == "-" ){
      |                              ^~
main.c:16:30: warning: comparison between pointer and integer
   16 |                 }else if( op == "*" ){
      |                              ^~
main.c:18:30: warning: comparison between pointer and integer
   18 |                 }else if( op == "/" ){
      |                              ^~
main.c:19:25: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   19 |                         prinf( "%d\n", a \ b );
      |                         ^~~~~
      |                         printf
main.c:19:42: error: stray '\' in program
   19 |                         prinf( "%d\n", a \ b );
      |                                          ^
main.c:19:41: error: expected ')' before 'b'
   19 |                         prinf( "%d\n", a \ b );
      |                              ~          ^  ~
      |                                         )
Language: C

#include <stdio.h>

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

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

#include	<stdio.h>
int	main(void)
{
	int a,b;	/*?????\?????¨????????°???*/
	char op;		/* ????????? */

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

	while(1){
		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:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:22:5: error: 'return0' undeclared (first use in this function)
   22 |     return0;
      |     ^~~~~~~
main.c:22:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main( ){

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:8: error: break statement not within loop or switch
   20 |  else {break;}
      |        ^~~~~
Language: C

#include<stdio.h>

int main( ){

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:19: error: break statement not within loop or switch
   20 |  else if(op=='?'){break;}
      |                   ^~~~~
Language: C

#include<stdio.h>
int main(){
  int a,b;
  char op;
  scanf("%d %c %d",&r, &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:5:21: error: 'r' undeclared (first use in this function)
    5 |   scanf("%d %c %d",&r, &op, &b);
      |                     ^
main.c:5:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:17: error: break statement not within loop or switch
    6 |   if(op == '?') break;
      |                 ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected expression before '?' token
    4 |   while(op != ?){
      |               ^
main.c:6:15: error: expected expression before ')' token
    6 |     if(op == +){
      |               ^
main.c:9:20: error: expected expression before ')' token
    9 |     else if(op == -){
      |                    ^
main.c:12:20: error: expected expression before ')' token
   12 |     else if(op == *){
      |                    ^
main.c:15:19: error: expected expression before '/' token
   15 |     else if(op == /){
      |                   ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:27:9: error: expected declaration or statement at end of input
   27 |         c=a/b;
      |         ^
main.c:27:9: error: expected declaration or statement at end of input
main.c:27:9: error: expected declaration or statement at end of input
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected expression before ')' token
    7 |     if(op == +){
      |               ^
main.c:10:20: error: expected expression before ')' token
   10 |     else if(op == -){
      |                    ^
main.c:13:20: error: expected expression before ')' token
   13 |     else if(op == *){
      |                    ^
main.c:16:19: error: expected expression before '/' token
   16 |     else if(op == /){
      |                   ^
Language: C

#include <stdio.h>
int main(){
  int a,b,x;
  char op;
  printf("2つの整数a,bと1つの演算子を入力\n");
  while(1){
  scanf("%d %c %d",&a,&op,&b);
  if(op == '?') break;
  }
  if(op == '+'){
    x=a+b;
  }

  else if(op == '-'){
    x=a-b;
  }

  else if(op == '*'){
    x=a*b;
  }

  else(op == '/'){
      x=a/b;
  }
  printf("%d"x);

  return 0;
}

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

  int a,b,h,i,j,k;
  char op;  
 while(1){   
    scanf("%d %c %d",&a,&op,&b);
    h=a+b;
    i=a-b;
    j=a*b;
    k=a/b;
    if(op == '?'){
      break;
    }
    else if(op == '+'){
      printf("%d\n",h);
    }
    else if(op == '-'){
      printf("%d\n",i);
    } 
    else if(op == '*'){
      printf("%d\n",j);
    }
    else if(op == '/'){
      printf("%d\n",k);
    }
  }

  return 0;
}

Compiler output:
main.c:3:2: error: expected identifier or '(' before 'while'
    3 |  while(1){
      |  ^~~~~
main.c:26:3: error: expected identifier or '(' before 'return'
   26 |   return 0;
      |   ^~~~~~
main.c:27:1: error: expected identifier or '(' before '}' token
   27 | }
      | ^
Language: C

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

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

if(x != '?'){
while(x != '?'){
if(x == '+')
printf("%d\n",a + b);
if(x == '-')
printf("%d\n",a - b);
if(x == '*')
printf("%d\n",a * b);
if(x == '/')
printf("%d\n",a / b);

scanf("%d %d %d",&a,&x,&b);
}
break;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:1: error: break statement not within loop or switch
   22 | break;
      | ^~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: expected expression before '?' token
    8 |  if(op==?) break;
      |         ^
Language: C

include <stdio.h>

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:23: error: 'op' undeclared (first use in this function)
    7 |  scanf("%d %c %d",&a,&op,&b);
      |                       ^~
main.c:7:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:15: error: expected ')' before 'op'
    8 |  printf("%d",a op b);
      |        ~      ^~~
      |               )
main.c:9:12: error: expected expression before '?' token
    9 |  if( op == ? ) break;
      |            ^
main.c:11:1: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   11 | return;
      | ^~~~~~
main.c:2:5: note: declared here
    2 | int main(void)
      |     ^~~~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:8:23: error: 'op' undeclared (first use in this function)
    8 |  scanf("%d %c %d",&a,&op,&b);
      |                       ^~
main.c:8:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:13: error: expected expression before ')' token
    9 |   if(op == +)
      |             ^
main.c:11:18: error: expected expression before ')' token
   11 |   else if(op == -)
      |                  ^
main.c:13:18: error: expected expression before ')' token
   13 |   else if(op == *)
      |                  ^
main.c:15:17: error: expected expression before '/' token
   15 |   else if(op == /)
      |                 ^
main.c:17:18: error: expected expression before '?' token
   17 |   else if( op == ? ) break;
      |                  ^
main.c:19:1: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   19 | return;
      | ^~~~~~
main.c:2:5: note: declared here
    2 | int main(void)
      |     ^~~~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:9:13: error: expected expression before ')' token
    9 |   if(op == +)
      |             ^
main.c:11:18: error: expected expression before ')' token
   11 |   else if(op == -)
      |                  ^
main.c:13:18: error: expected expression before ')' token
   13 |   else if(op == *)
      |                  ^
main.c:15:17: error: expected expression before '/' token
   15 |   else if(op == /)
      |                 ^
main.c:17:18: error: expected expression before '?' token
   17 |   else if( op == ? ) break;
      |                  ^
main.c:19:1: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   19 | return;
      | ^~~~~~
main.c:2:5: note: declared here
    2 | int main(void)
      |     ^~~~
Language: C

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

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

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

/*********************************
*include
*********************************/
#include <stdio.h>

/*********************************
*define
*********************************/


/*********************************
*function
*********************************/
int main( void )
{
	int x;
	int y;
	char op;
	int answer;
	
	while( '?' != ch ){
		scanf( "%d %c %d", &x, &op, &y );	
		if( '+' == op ) {
			answer = x + y;
		}
		if( '-' == op ) {
			answer = x - y;
		}
		if( '*' == op ) {
			answer = x * y;
		}
		if( '/' == op ) {
			if( 0 != y ){
				answer = x * y;			
			}
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:23: error: 'ch' undeclared (first use in this function)
   21 |         while( '?' != ch ){
      |                       ^~
main.c:21:23: 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,c;
	char op;
	while(1){
	scanf("%d %c %d",&a,&op,&b);
	if(op=='+'){
		c=a+b;
	}else if(op=='-'){
		c=a-b;
	}else if(op=='*'){
		c=a*b;
	}else if(op=='/'){
		c=a/b;
	}else if(op=='?'){
	break;
	}
	}
	printf("%d",c)
		
		return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:19:23: error: expected ';' before 'return'
   19 |         printf("%d",c)
      |                       ^
      |                       ;
   20 | 
   21 |                 return 0;
      |                 ~~~~~~
Language: C

#include <stdio.h>

int main(void){
  int a,b,ans;
  char op;
  whlie(1){
    scanf("%d %c %d", &a, &op, &b);
    if (op == "?") break;
    if (op == "+") ans = a + b;
    if (op == "-") ans = a - b;
    if (op == "*") ans = a * b;
    if (op == "/") ans = a /b;
    puts("%d\n", ans);
  }
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'whlie' [-Wimplicit-function-declaration]
    6 |   whlie(1){
      |   ^~~~~
main.c:6:11: error: expected ';' before '{' token
    6 |   whlie(1){
      |           ^
      |           ;
Language: C

#include <stdio.h>

int main(void){
  int a,b,ans;
  char op;
  whlie(1){
    scanf("%d %c %d", &a, &op, &b);
    if (op == "?") break;
    if (op == "+") ans = a + b;
    if (op == "-") ans = a - b;
    if (op == "*") ans = a * b;
    if (op == "/") ans = a /b;
    puts("%d\n", ans);
  }
  return(0);
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'whlie' [-Wimplicit-function-declaration]
    6 |   whlie(1){
      |   ^~~~~
main.c:6:11: error: expected ';' before '{' token
    6 |   whlie(1){
      |           ^
      |           ;
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'else' without a previous 'if'
    9 |         else if(op=='-') printf("%d\n",a-b);
      |         ^~~~
Language: C

#include<stdio.h>

int main (void){

  int a,b;
  char c;
  int k=1;

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

    if(c=='?'){
      k=0
      break;
    }

    else{
      switch(c){
      case '+' :printf("%d\n",a+b);break;
      case '-' :printf("%d\n",a-b);break;
      case '*' :printf("%d\n",a*b);break;
      case '/' :printf("%d\n",a/b);break;
      default :break;
      }
    }
  }while(k);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:10: error: expected ';' before 'break'
   15 |       k=0
      |          ^
      |          ;
   16 |       break;
      |       ~~~~~
Language: C

#include<stdio.h>

int main (void){

  int a,b;
  char c;
  int k=1;

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

    if(c=='?'){
      k=0
      break;
    }

    else{
      switch(c){
      case '+' :printf("%d\n",a+b);break;
      case '-' :printf("%d\n",a-b);break;
      case '*' :printf("%d\n",a*b);break;
      case '/' :printf("%d\n",a/b);break;
      }
    }
  }while(k);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:10: error: expected ';' before 'break'
   15 |       k=0
      |          ^
      |          ;
   16 |       break;
      |       ~~~~~
Language: C

#include<stdio.h>

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:1: error: case label not within a switch statement
   14 | case '-':
      | ^~~~
main.c:17:1: error: case label not within a switch statement
   17 | case '*':
      | ^~~~
main.c:20:1: error: case label not within a switch statement
   20 | case '/':
      | ^~~~
main.c:23:1: error: 'default' label not within a switch statement
   23 | default:
      | ^~~~~~~
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
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{printf("%d\n",a/b);}
return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:8: warning: comparison between pointer and integer
    6 |    if(a=="?"){break;}
      |        ^~
main.c:6:15: error: break statement not within loop or switch
    6 |    if(a=="?"){break;}
      |               ^~~~~
main.c:7:13: warning: comparison between pointer and integer
    7 |    else if(a=="+"){printf("%d",i+j)}
      |             ^~
main.c:7:36: error: expected ';' before '}' token
    7 |    else if(a=="+"){printf("%d",i+j)}
      |                                    ^
      |                                    ;
main.c:8:13: warning: comparison between pointer and integer
    8 |    else if(a=="-"){printf("%d",i-j)}
      |             ^~
main.c:8:36: error: expected ';' before '}' token
    8 |    else if(a=="-"){printf("%d",i-j)}
      |                                    ^
      |                                    ;
main.c:9:13: warning: comparison between pointer and integer
    9 |    else if(a=="*"){printf("%d",i*j)}
      |             ^~
main.c:9:36: error: expected ';' before '}' token
    9 |    else if(a=="*"){printf("%d",i*j)}
      |                                    ^
      |                                    ;
main.c:10:13: warning: comparison between pointer and integer
   10 |    else if(a=="/"){printf("%d",i/j)}
      |             ^~
main.c:10:36: error: expected ';' before '}' token
   10 |    else if(a=="/"){printf("%d",i/j)}
      |                                    ^
      |                                    ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:8: warning: comparison between pointer and integer
    7 |    if(a=="?"){break;}
      |        ^~
main.c:7:15: error: break statement not within loop or switch
    7 |    if(a=="?"){break;}
      |               ^~~~~
main.c:8:13: warning: comparison between pointer and integer
    8 |    else if(a=="+"){printf("%d",i+j)}
      |             ^~
main.c:8:36: error: expected ';' before '}' token
    8 |    else if(a=="+"){printf("%d",i+j)}
      |                                    ^
      |                                    ;
main.c:9:13: warning: comparison between pointer and integer
    9 |    else if(a=="-"){printf("%d",i-j)}
      |             ^~
main.c:9:36: error: expected ';' before '}' token
    9 |    else if(a=="-"){printf("%d",i-j)}
      |                                    ^
      |                                    ;
main.c:10:13: warning: comparison between pointer and integer
   10 |    else if(a=="*"){printf("%d",i*j)}
      |             ^~
main.c:10:36: error: expected ';' before '}' token
   10 |    else if(a=="*"){printf("%d",i*j)}
      |                                    ^
      |                                    ;
main.c:11:13: warning: comparison between pointer and integer
   11 |    else if(a=="/"){printf("%d",i/j)}
      |             ^~
main.c:11:36: error: expected ';' before '}' token
   11 |    else if(a=="/"){printf("%d",i/j)}
      |                                    ^
      |                                    ;
main.c: At top level:
main.c:13:1: error: expected identifier or '(' before 'return'
   13 | return 0;
      | ^~~~~~
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:8: warning: comparison between pointer and integer
    8 |    if(a=="?"){break;}
      |        ^~
main.c:9:13: warning: comparison between pointer and integer
    9 |    else if(a=="+"){printf("%d",i+j)}
      |             ^~
main.c:9:36: error: expected ';' before '}' token
    9 |    else if(a=="+"){printf("%d",i+j)}
      |                                    ^
      |                                    ;
main.c:10:13: warning: comparison between pointer and integer
   10 |    else if(a=="-"){printf("%d",i-j)}
      |             ^~
main.c:10:36: error: expected ';' before '}' token
   10 |    else if(a=="-"){printf("%d",i-j)}
      |                                    ^
      |                                    ;
main.c:11:13: warning: comparison between pointer and integer
   11 |    else if(a=="*"){printf("%d",i*j)}
      |             ^~
main.c:11:36: error: expected ';' before '}' token
   11 |    else if(a=="*"){printf("%d",i*j)}
      |                                    ^
      |                                    ;
main.c:12:13: warning: comparison between pointer and integer
   12 |    else if(a=="/"){printf("%d",i/j)}
      |             ^~
main.c:12:36: error: expected ';' before '}' token
   12 |    else if(a=="/"){printf("%d",i/j)}
      |                                    ^
      |                                    ;
main.c: At top level:
main.c:14:1: error: expected identifier or '(' before 'return'
   14 | return 0;
      | ^~~~~~
main.c:15:1: error: expected identifier or '(' before '}' token
   15 | }
      | ^