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

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

int main(int argc, char **argv){
	int a,b;
	char op;

	for(;;){
		// Input
		scanf("%d %c %d",&a, &c, %b);
		// Finish Check
		if( op == '?' ){
			break;
		}
		// Output
		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:
			// Unknown Case
			break;
		}
	}
	printf("%f %f\n", r * r * M_PI, r * 2 * M_PI);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:39: error: 'c' undeclared (first use in this function)
   10 |                 scanf("%d %c %d",&a, &c, %b);
      |                                       ^
main.c:10:39: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:42: error: expected expression before '%' token
   10 |                 scanf("%d %c %d",&a, &c, %b);
      |                                          ^
main.c:34:27: error: 'r' undeclared (first use in this function)
   34 |         printf("%f %f\n", r * r * M_PI, r * 2 * M_PI);
      |                           ^
Language: C

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

int main(int argc, char **argv){
	int a,b;
	char op;

	for(;;){
		// Input
		scanf("%d %c %d",&a, &op, %b);
		// Finish Check
		if( op == '?' ){
			break;
		}
		// Output
		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:
			// Unknown Case
			break;
		}
	}
	printf("%f %f\n", r * r * M_PI, r * 2 * M_PI);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:43: error: expected expression before '%' token
   10 |                 scanf("%d %c %d",&a, &op, %b);
      |                                           ^
main.c:34:27: error: 'r' undeclared (first use in this function)
   34 |         printf("%f %f\n", r * r * M_PI, r * 2 * M_PI);
      |                           ^
main.c:34:27: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(int argc, char **argv){
	int a,b;
	char op;

	for(;;){
		// Input
		scanf("%d %c %d",&a, &op, &b);
		// Finish Check
		if( op == '?' ){
			break;
		}
		// Output
		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:
			// Unknown Case
			break;
		}
	}
	printf("%f %f\n", r * r * M_PI, r * 2 * M_PI);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:34:27: error: 'r' undeclared (first use in this function)
   34 |         printf("%f %f\n", r * r * M_PI, r * 2 * M_PI);
      |                           ^
main.c:34:27: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: unknown type name 'cha'; did you mean 'char'?
    6 | cha op;
      | ^~~
      | char
main.c:10:6: warning: comparison between pointer and integer
   10 | if(op=="?")
      |      ^~
main.c:14:11: warning: comparison between pointer and integer
   14 | else if(op=="+")
      |           ^~
main.c:18:11: warning: comparison between pointer and integer
   18 | else if(op=="-")
      |           ^~
main.c:22:11: warning: comparison between pointer and integer
   22 | else if(op=="*")
      |           ^~
main.c:26:11: warning: comparison between pointer and integer
   26 | else if(op=="/")
      |           ^~
Language: C

#include<stdio.h>

int main(){
char a;
int x,y;
 scanf("%d%c%%d",&x,&a,&y);

if(a=*){
printf("%d\n",x*y);
}
else if(a=/){
printf("%d",x/y);
}
else if(a=+){
printf("%d",x+y);
}
else if(a=-){
printf("%d",x-y);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: error: expected expression before ')' token
    8 | if(a=*){
      |       ^
main.c:11:11: error: expected expression before '/' token
   11 | else if(a=/){
      |           ^
main.c:14:12: error: expected expression before ')' token
   14 | else if(a=+){
      |            ^
main.c:17:12: error: expected expression before ')' token
   17 | else if(a=-){
      |            ^
Language: C

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:21: error: expected identifier or '(' before numeric constant
    5 |         int a,b,ans,1;
      |                     ^
Language: C

#include<stdio.h>

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

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

	if(op = '+') ans = a + b;
	if(op = '-') ans = a - b;
	if(op = '*') ans = a * b;
	if(op = '/') ans = a / b;
	if(op == '?') break;

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

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

#include<stdio.h>

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

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

	if(op = '+') ans = a + b;
	if(op = '-') ans = a - b;
	if(op = '*') ans = a * b;
	if(op = '/') ans = a / b;
	if(op == '?') break;

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected expression before '%' token
    5 |         while(%c=='?'){
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:6: error: 's' undeclared (first use in this function)
    8 |   if(s=="+"){
      |      ^
main.c:8:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:6: error: 's' undeclared (first use in this function)
    8 |   if(s=="+"){
      |      ^
main.c:8:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
      
int main(){
 int a,b;
 char c;
 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{
  break;
 }
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:10: error: expected '(' before '{' token
   16 |  }else if{
      |          ^
      |          (
Language: C

#include<stdio.h>

int main(void){

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

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

if(op == ?)
break;

if(op == +){

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

}else if(op == -){

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

}else if(op == *){

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

}printf(op == /){

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

}

}

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:11:10: error: expected expression before '?' token
   11 | if(op == ?)
      |          ^
main.c:14:11: error: expected expression before ')' token
   14 | if(op == +){
      |           ^
main.c:18:17: error: expected expression before ')' token
   18 | }else if(op == -){
      |                 ^
main.c:22:17: error: expected expression before ')' token
   22 | }else if(op == *){
      |                 ^
main.c:26:15: error: expected expression before '/' token
   26 | }printf(op == /){
      |               ^
main.c:26:17: error: expected ';' before '{' token
   26 | }printf(op == /){
      |                 ^
      |                 ;
Language: C

#include<stdio.h>

int main(void){

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

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

if(op == '?')
break;

if(op == '+'){

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

}else if(op == '-'){

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

}else if(op == '*'){

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

}printf(op == '/'){

printf("%lf\n",a/b);

}

}

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:26:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   26 | }printf(op == '/'){
      |         ~~~^~~~~~
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:26:19: error: expected ';' before '{' token
   26 | }printf(op == '/'){
      |                   ^
      |                   ;
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:9:10: warning: comparison between pointer and integer
    9 |   if (op =="?"){
      |          ^~
main.c:12:15: warning: comparison between pointer and integer
   12 |   else if (op =="+"){
      |               ^~
main.c:13:5: error: too many arguments to function 'puts'
   13 |     puts("%d",a + b);
      |     ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:15:15: warning: comparison between pointer and integer
   15 |   else if (op =="-"){
      |               ^~
main.c:16:5: error: too many arguments to function 'puts'
   16 |     puts("%d",a - b);
      |     ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:18:15: warning: comparison between pointer and integer
   18 |   else if (op =="*"){
      |               ^~
main.c:19:5: error: too many arguments to function 'puts'
   19 |     puts("%d",a * b);
      |     ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:21:15: warning: comparison between pointer and integer
   21 |   else if (op =="/"){
      |               ^~
main.c:22:5: error: too many arguments to function 'puts'
   22 |     puts("%d",a / b);
      |     ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include <stdio.h>

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

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

        if(op != '?'){

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:25: error: expected expression before '%' token
    7 |     scanf("%d %c %d",&a,%op,%b);
      |                         ^
main.c:8:11: error: 'true' undeclared (first use in this function)
    8 |     while(true){
      |           ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:8:11: note: each undeclared identifier is reported only once for each function it appears in
    8 |     while(true){
      |           ^~~~
Language: C

#include <stdio.h>

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

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

#include <stdio.h>


int main(){
char op[5];
int a,b;

scanf("%d %s %d",a,op,b);

switch(op){
case "+":

break;
case "-":

break;
case "*":

break;
case "/":

break;
case "?":

break;

}


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: error: switch quantity not an integer
   10 | switch(op){
      |        ^~
main.c:11:1: error: pointers are not permitted as case values
   11 | case "+":
      | ^~~~
main.c:14:1: error: pointers are not permitted as case values
   14 | case "-":
      | ^~~~
main.c:17:1: error: pointers are not permitted as case values
   17 | case "*":
      | ^~~~
main.c:20:1: error: pointers are not permitted as case values
   20 | case "/":
      | ^~~~
main.c:23:1: error: pointers are not permitted as case values
   23 | case "?":
      | ^~~~
Language: C

#include <stdio.h>


int main(){
char op[5];
int a,b;

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

switch(op){
case "+":

printf("%d %s %d = %d",a,op,b,a+b);
break;
case "-":

printf("%d %s %d = %d",a,op,b,a-b);
break;
case "*":

printf("%d %s %d = %d",a,op,b,a*b);
break;
case "/":

printf("%d %s %d = %d",a,op,b,a/b);
break;
case "?":
return 0;

}

}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:8: error: switch quantity not an integer
   11 | switch(op){
      |        ^~
main.c:12:1: error: pointers are not permitted as case values
   12 | case "+":
      | ^~~~
main.c:16:1: error: pointers are not permitted as case values
   16 | case "-":
      | ^~~~
main.c:20:1: error: pointers are not permitted as case values
   20 | case "*":
      | ^~~~
main.c:24:1: error: pointers are not permitted as case values
   24 | case "/":
      | ^~~~
main.c:28:1: error: pointers are not permitted as case values
   28 | case "?":
      | ^~~~
Language: C

#include <stdio.h>


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

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

if (c == '+'){
 printf("%d",a+b);
}

if (c == '-'){
 printf("%d",a-b);
}

if (c == '*'){
printf("%d",a*b);
}

if (c == '/'){
 printf("%d",a/b);
}

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

}
return 0;

}

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

#include <stdio.h>


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

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

if (c == '+'){
 printf("%d",a+b);
}

if (c == '-'){
 printf("%d",a-b);
}

if (c == '*'){
printf("%d",a*b);
}

if (c == '/'){
 printf("%d",a/b);
}

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

}
return 0;

}

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

#include <stdio.h>


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

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

if (c == '+'){
 printf("%d\n",a+b);
}

if (c == '-'){
 printf("%d\n",a-b);
}

if (c == '*'){
printf("%d\n",a*b);
}

if (c == '/'){
 printf("%d\n",a/b);
}

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

}
return 0;

}

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

#include <stdio.h>


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

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

if (c == '+'){
 printf("%d\n",a+b);
}

if (c == '-'){
 printf("%d\n",a-b);
}

if (c == '*'){
printf("%d\n",a*b);
}

if (c == '/'){
 printf("%d\n",a/b);
}

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

}
return 0;

}

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:12:8: error: break statement not within loop or switch
   12 |        break;
      |        ^~~~~
main.c:32:6: error: break statement not within loop or switch
   32 |      break;
      |      ^~~~~
Language: C

#include<stdio.h>

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

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

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:26: error: expected expression before ')' token
    8 |                 if(op = +){
      |                          ^
main.c:11:34: error: expected expression before ')' token
   11 |                 } else if (op = -){
      |                                  ^
main.c:14:34: error: expected expression before ')' token
   14 |                 } else if (op = *){
      |                                  ^
main.c:17:33: error: expected expression before '/' token
   17 |                 } else if (op = /){
      |                                 ^
main.c:20:33: error: expected expression before '?' token
   20 |                 } else if (op = ?){
      |                                 ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:23: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    8 |                 if(op = "+"){
      |                       ^
main.c:11:31: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   11 |                 } else if (op = "-"){
      |                               ^
main.c:14:31: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   14 |                 } else if (op = "*"){
      |                               ^
main.c:17:31: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   17 |                 } else if (op = "/"){
      |                               ^
main.c:20:31: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   20 |                 } else if (op = "?"){
      |                               ^
main.c:21:30: error: expected ';' before '}' token
   21 |                         break
      |                              ^
      |                              ;
   22 |                 }
      |                 ~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:23: warning: comparison between pointer and integer
    8 |                 if(op == "+"){
      |                       ^~
main.c:11:31: warning: comparison between pointer and integer
   11 |                 } else if (op == "-"){
      |                               ^~
main.c:14:31: warning: comparison between pointer and integer
   14 |                 } else if (op == "*"){
      |                               ^~
main.c:17:31: warning: comparison between pointer and integer
   17 |                 } else if (op == "/"){
      |                               ^~
main.c:20:31: warning: comparison between pointer and integer
   20 |                 } else if (op == "?"){
      |                               ^~
main.c:21:30: error: expected ';' before '}' token
   21 |                         break
      |                              ^
      |                              ;
   22 |                 }
      |                 ~
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\n",a+b);
		} else if (op == '-'){
			printf("%d\n",a-c);
		} 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:11:41: error: 'c' undeclared (first use in this function)
   11 |                         printf("%d\n",a-c);
      |                                         ^
main.c:11:41: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:25:32: error: expected ';' before '{' token
   25 |                 else (c == '?')
      |                                ^
      |                                ;
   26 |                 {
      |                 ~
Language: C

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

                printf("%d", ans;
        }
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:28:33: error: expected ')' before ';' token
   28 |                 printf("%d", ans;
      |                       ~         ^
      |                                 )
main.c:28:34: error: expected ';' before '}' token
   28 |                 printf("%d", ans;
      |                                  ^
      |                                  ;
   29 |         }
      |         ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:29:33: error: expected ')' before ';' token
   29 |                 printf("%d", ans;);
      |                       ~         ^
      |                                 )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:29:33: error: expected ')' before ';' token
   29 |                 printf("%d", ans;);
      |                       ~         ^
      |                                 )
Language: C

#include <stdio.h>
int a;
int b;
char op;


main(){
		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:7:1: error: return type defaults to 'int' [-Wimplicit-int]
    7 | main(){
      | ^~~~
main.c: In function 'main':
main.c:22:17: error: expected statement before ']' token
   22 |                 ]
      |                 ^
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:1: error: pointers are not permitted as case values
    9 | case "+":
      | ^~~~
main.c:12:1: error: pointers are not permitted as case values
   12 | case "-":
      | ^~~~
main.c:15:1: error: pointers are not permitted as case values
   15 | case "*":
      | ^~~~
main.c:18:1: error: pointers are not permitted as case values
   18 | case "/":
      | ^~~~
main.c:22:5: warning: comparison between pointer and integer
   22 | if(c=="?")break;
      |     ^~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:5: warning: comparison between pointer and integer
    8 | if(c=="+"){
      |     ^~
main.c:11:5: warning: comparison between pointer and integer
   11 | if(c=="-")d=a-b;
      |     ^~
main.c:12:2: error: 'else' without a previous 'if'
   12 | }else{
      |  ^~~~
main.c:13:5: warning: comparison between pointer and integer
   13 | if(c=="*")d=a*b;
      |     ^~
main.c:14:2: error: 'else' without a previous 'if'
   14 | }else{
      |  ^~~~
main.c:15:5: warning: comparison between pointer and integer
   15 | if(c=="/")d=a/b;
      |     ^~
main.c:16:2: error: 'else' without a previous 'if'
   16 | }else{
      |  ^~~~
Language: C

#include <stdio.h>

int a,b;
char op;
int ans;

double pai=3.141592653589;

main(){
  
 
  
  scanf("%d%c%d",&a,&op,&b);
  
  
  if(op=='+')
   ans=a+b;
    printf("%d\n",ans);
    ans=0;
   
  else if(op=='-')
   ans=a-b;
    printf("%d\n",ans);
    ans=0;
   
   else if(op=='*')
   ans=a*b;
    printf("%d\n",ans);
    ans=0;
   
   
   else if(op=='/')
   ans=a/b;
    printf("%d\n",ans);
    ans=0;
  
  else if(op=='?')
  goto LABEL;
   
  
  }
  
  
  LABEL:return 0;
}

finish(){
return 0;}

Compiler output:
main.c:9:1: error: return type defaults to 'int' [-Wimplicit-int]
    9 | main(){
      | ^~~~
main.c: In function 'main':
main.c:21:3: error: 'else' without a previous 'if'
   21 |   else if(op=='-')
      |   ^~~~
main.c:26:4: error: 'else' without a previous 'if'
   26 |    else if(op=='*')
      |    ^~~~
main.c:32:4: error: 'else' without a previous 'if'
   32 |    else if(op=='/')
      |    ^~~~
main.c:37:3: error: 'else' without a previous 'if'
   37 |   else if(op=='?')
      |   ^~~~
main.c:38:3: error: label 'LABEL' used but not defined
   38 |   goto LABEL;
      |   ^~~~
main.c: At top level:
main.c:44:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   44 |   LABEL:return 0;
      |        ^
main.c:45:1: error: expected identifier or '(' before '}' token
   45 | }
      | ^
main.c:47:1: error: return type defaults to 'int' [-Wimplicit-int]
   47 | finish(){
      | ^~~~~~
Language: C

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

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

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

    return 0;
    
}

Compiler output:
main.c: In function 'main':
main.c:11:1: error: expected expression before '?' token
   11 | ???printf(%d\n,a+b);
      | ^
main.c:11:13: error: stray '\' in program
   11 | ???printf(%d\n,a+b);
      |             ^
main.c:11:20: error: expected ':' before ';' token
   11 | ???printf(%d\n,a+b);
      |                    ^
      |                    :
main.c:13:1: error: expected expression before '?' token
   13 | ???printf(%d\n,a-b);
      | ^
main.c:13:13: error: stray '\' in program
   13 | ???printf(%d\n,a-b);
      |             ^
main.c:13:20: error: expected ':' before ';' token
   13 | ???printf(%d\n,a-b);
      |                    ^
      |                    :
main.c:15:1: error: expected expression before '?' token
   15 | ???printf(%d\n,a*b);
      | ^
main.c:15:13: error: stray '\' in program
   15 | ???printf(%d\n,a*b);
      |             ^
main.c:15:20: error: expected ':' before ';' token
   15 | ???printf(%d\n,a*b);
      |                    ^
      |                    :
main.c:17:1: error: expected expression before '?' token
   17 | ???printf(%d\n,a/b);
      | ^
main.c:17:13: error: stray '\' in program
   17 | ???printf(%d\n,a/b);
      |             ^
main.c:17:20: error: expected ':' before ';' token
   17 | ???printf(%d\n,a/b);
      |                    ^
      |                    :
main.c:19:1: error: expected expression before '?' token
   19 | ???return 0;
      | ^
Language: C

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

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

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

    return 0;
    
}

Compiler output:
main.c: In function 'main':
main.c:11:1: error: expected expression before '?' token
   11 | ???printf("%d\n",a+b);
      | ^
main.c:11:22: error: expected ':' before ';' token
   11 | ???printf("%d\n",a+b);
      |                      ^
      |                      :
main.c:13:1: error: expected expression before '?' token
   13 | ???printf("%d\n",a-b);
      | ^
main.c:13:22: error: expected ':' before ';' token
   13 | ???printf("%d\n",a-b);
      |                      ^
      |                      :
main.c:15:1: error: expected expression before '?' token
   15 | ???printf("%d\n",a*b);
      | ^
main.c:15:22: error: expected ':' before ';' token
   15 | ???printf("%d\n",a*b);
      |                      ^
      |                      :
main.c:17:1: error: expected expression before '?' token
   17 | ???printf("%d\n",a/b);
      | ^
main.c:17:22: error: expected ':' before ';' token
   17 | ???printf("%d\n",a/b);
      |                      ^
      |                      :
main.c:19:1: error: expected expression before '?' token
   19 | ???return 0;
      | ^
Language: C

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

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

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

    return 0;
    
}

Compiler output:
main.c: In function 'main':
main.c:10:10: warning: comparison between pointer and integer
   10 |     if(op=="+"){
      |          ^~
main.c:11:1: error: expected expression before '?' token
   11 | ???printf("%d\n",a+b);
      | ^
main.c:11:22: error: expected ':' before ';' token
   11 | ???printf("%d\n",a+b);
      |                      ^
      |                      :
main.c:13:1: error: expected expression before '?' token
   13 | ???printf("%d\n",a-b);
      | ^
main.c:13:22: error: expected ':' before ';' token
   13 | ???printf("%d\n",a-b);
      |                      ^
      |                      :
main.c:15:1: error: expected expression before '?' token
   15 | ???printf("%d\n",a*b);
      | ^
main.c:15:22: error: expected ':' before ';' token
   15 | ???printf("%d\n",a*b);
      |                      ^
      |                      :
main.c:17:1: error: expected expression before '?' token
   17 | ???printf("%d\n",a/b);
      | ^
main.c:17:22: error: expected ':' before ';' token
   17 | ???printf("%d\n",a/b);
      |                      ^
      |                      :
main.c:19:1: error: expected expression before '?' token
   19 | ???return 0;
      | ^
Language: C

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

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

    return 0;
    
}

Compiler output:
main.c: In function 'main':
main.c:9:6: warning: comparison between pointer and integer
    9 | if(op=="+"){
      |      ^~
main.c:10:1: error: expected expression before '?' token
   10 | ???printf("%d\n",a+b);
      | ^
main.c:10:22: error: expected ':' before ';' token
   10 | ???printf("%d\n",a+b);
      |                      ^
      |                      :
main.c:12:1: error: expected expression before '?' token
   12 | ???printf("%d\n",a-b);
      | ^
main.c:12:22: error: expected ':' before ';' token
   12 | ???printf("%d\n",a-b);
      |                      ^
      |                      :
main.c:14:1: error: expected expression before '?' token
   14 | ???printf("%d\n",a*b);
      | ^
main.c:14:22: error: expected ':' before ';' token
   14 | ???printf("%d\n",a*b);
      |                      ^
      |                      :
main.c:16:1: error: expected expression before '?' token
   16 | ???printf("%d\n",a/b);
      | ^
main.c:16:22: error: expected ':' before ';' token
   16 | ???printf("%d\n",a/b);
      |                      ^
      |                      :
main.c:18:1: error: expected expression before '?' token
   18 | ???return 0;
      | ^
Language: C

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

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

    return 0;
    
}

Compiler output:
main.c: In function 'main':
main.c:10:1: error: expected expression before '?' token
   10 | ???printf("%d\n",a+b);
      | ^
main.c:10:22: error: expected ':' before ';' token
   10 | ???printf("%d\n",a+b);
      |                      ^
      |                      :
main.c:12:1: error: expected expression before '?' token
   12 | ???printf("%d\n",a-b);
      | ^
main.c:12:22: error: expected ':' before ';' token
   12 | ???printf("%d\n",a-b);
      |                      ^
      |                      :
main.c:14:1: error: expected expression before '?' token
   14 | ???printf("%d\n",a*b);
      | ^
main.c:14:22: error: expected ':' before ';' token
   14 | ???printf("%d\n",a*b);
      |                      ^
      |                      :
main.c:16:1: error: expected expression before '?' token
   16 | ???printf("%d\n",a/b);
      | ^
main.c:16:22: error: expected ':' before ';' token
   16 | ???printf("%d\n",a/b);
      |                      ^
      |                      :
main.c:18:1: error: expected expression before '?' token
   18 | ???return 0;
      | ^
Language: C

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

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

    return 0;
    
}

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

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

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

#include <stdio.h>
int a[100], c[100];
char b[100];
int main(void) {
	int i = 0;
	int k = 0;
	while (1) {
		scanf_s("%d %s %d", &a[i], &b[i], &c[i]);
		i++;
		if (b[i] = '?') break;
	}

	while (k<i) {
		switch (b[i]) {
		case '+':
			a[i] = a[i] + c[i];
			printf("%d", a[i]);
			break;
		case '-':
			a[i] = a[i] - c[i];
			printf("%d", a[i]);
			break;
		case '*':
			a[i] = a[i] * b[i];
			printf("%d", a[i]);
			break;
		case '/':
			double d;
			d = (double)a[i] / (double)b[i];
			printf("%lf", d);
			break;
		}
		k++;
	}
return 0;
}

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

#include <stdio.h>
int main(void){
    char op;
    int a,b;
    scanf("%d %[+-*/] %d",&a,&op,&b);
    printf("%d\n",aopb);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'aopb' undeclared (first use in this function); did you mean 'op'?
    6 |     printf("%d\n",aopb);
      |                   ^~~~
      |                   op
main.c:6:19: 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 op;
	do{
		scanf("%d %s %d",&a,&op,&b);
		if(a>=0 && a<=20000 && b>=0 && b<=20000){
			if(op=='+')
				printf("%d\n",a+b);
			else if(op=='-')
				printf("%d\n",a-b);
			else if(op=='*')
				printf("%d\n",a*b);
			else if(pr=='/')
				printf("%d\n",a/b);
		}
	}while(op !='?');
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:33: error: 'pr' undeclared (first use in this function)
   15 |                         else if(pr=='/')
      |                                 ^~
main.c:15:33: 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 op;
	while(1){
	scanf("%d %s %d",&a &op &b);
    if (op='?'){
		break;
	}
	switch(op){
		case '+':
			printf("%f\n",a+b);
			break;
		case '-':
			printf("%f\n",a-b);
			break;
		case '*':
			printf("%lf\n",a*b);
			break;
		case '/':
			printf("%lf\n",a/b);
			break;
	}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:29: error: invalid operands to binary & (have 'int *' and 'int')
    6 |         scanf("%d %s %d",&a &op &b);
      |                          ~~ ^
      |                          |
      |                          int *
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

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


int main(void) {

	// 1_4-C Simple Calculator

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

Compiler output:
main.c: In function 'main':
main.c:15:17: warning: comparison between pointer and integer
   15 |         while(op!="?")
      |                 ^~
main.c:16:22: warning: comparison between pointer and integer
   16 |                 if(op=="+"){
      |                      ^~
main.c:18:28: warning: comparison between pointer and integer
   18 |                 }else if(op=="-"){
      |                            ^~
main.c:20:28: warning: comparison between pointer and integer
   20 |                 }else if(op=="*"){
      |                            ^~
main.c:22:28: warning: comparison between pointer and integer
   22 |                 }else if(op=="/"){
      |                            ^~
main.c: At top level:
main.c:28:9: error: expected identifier or '(' before 'return'
   28 |         return 0;
      |         ^~~~~~
main.c:29:1: error: expected identifier or '(' before '}' token
   29 | }
      | ^
Language: C

#include <stdio.h>

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

    scanf("%d %c %d", &a, op, %b);
    while (op != '?') {
        switch (op) {
            case '+': printf("%d\n", a + b);
                break;
            caes '-': 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", &a, c, &b);
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:31: error: expected expression before '%' token
    8 |     scanf("%d %c %d", &a, op, %b);
      |                               ^
main.c:13:13: error: 'caes' undeclared (first use in this function)
   13 |             caes '-': printf("%d\n", a - b);
      |             ^~~~
main.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:17: error: expected ';' before '-'
   13 |             caes '-': printf("%d\n", a - b);
      |                 ^~~~
      |                 ;
main.c:21:31: error: 'c' undeclared (first use in this function)
   21 |         scanf("%d %c %d", &a, c, &b);
      |                               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:13: error: 'caes' undeclared (first use in this function)
   13 |             caes '-': printf("%d\n", a - b);
      |             ^~~~
main.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:17: error: expected ';' before '-'
   13 |             caes '-': printf("%d\n", a - b);
      |                 ^~~~
      |                 ;
main.c:21:31: error: 'c' undeclared (first use in this function)
   21 |         scanf("%d %c %d", &a, c, &b);
      |                               ^
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;}
	}
	
	return 0;
}

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