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

#include<stdio.h>
int main(){
int a,b,i;
char op;
    for(i=1;i>0i++){
        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:5:17: error: lvalue required as increment operand
    5 |     for(i=1;i>0i++){
      |                 ^~
main.c:5:19: error: expected ';' before ')' token
    5 |     for(i=1;i>0i++){
      |                   ^
      |                   ;
Language: C

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


Compiler output:
main.c:3:14: error: expected identifier before '/' token
    3 |              /,
      |              ^
main.c: In function 'main':
main.c:13:19: error: expected expression before '?' token
   13 |   if((a==0)&&(op==?)&&(b==0)){
      |                   ^
main.c:14:5: error: break statement not within loop or switch
   14 |     break;
      |     ^~~~~
main.c:19:10: error: expected expression before '/' token
   19 |     case /:
      |          ^
main.c:19:10: error: expected expression before '/' token
main.c:23:11: error: expected expression before ':' token
   23 |     case *:
      |           ^
main.c:27:11: error: expected expression before ':' token
   27 |     case +:
      |           ^
main.c:31:11: error: expected expression before ':' token
   31 |     case -:
      |           ^
main.c:21:7: warning: statement will never be executed [-Wswitch-unreachable]
   21 |       printf("%d\n",num);
      |       ^~~~~~~~~~~~~~~~~~
Language: C

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


Compiler output:
main.c:3:14: error: expected identifier before '/' token
    3 |              /,
      |              ^
main.c: In function 'main':
main.c:14:5: error: break statement not within loop or switch
   14 |     break;
      |     ^~~~~
main.c:19:10: error: expected expression before '/' token
   19 |     case /:
      |          ^
main.c:19:10: error: expected expression before '/' token
main.c:23:11: error: expected expression before ':' token
   23 |     case *:
      |           ^
main.c:27:11: error: expected expression before ':' token
   27 |     case +:
      |           ^
main.c:31:11: error: expected expression before ':' token
   31 |     case -:
      |           ^
main.c:21:7: warning: statement will never be executed [-Wswitch-unreachable]
   21 |       printf("%d\n",num);
      |       ^~~~~~~~~~~~~~~~~~
Language: C

#include<stdio.h>
enum opchar{
            `/`,
            `*`,
            `+`,
            `-`
            };
int main(void)
{
  int a,b;
  char op;
  enum opchar opc;
  for(;;){
    scanf("%d %c %d",&a,&op,&b);
    if(opc!=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:3:13: error: stray '`' in program
    3 |             `/`,
      |             ^
main.c:3:14: error: expected identifier before '/' token
    3 |             `/`,
      |              ^
main.c:3:15: error: stray '`' in program
    3 |             `/`,
      |               ^
main.c:4:13: error: stray '`' in program
    4 |             `*`,
      |             ^
main.c:4:15: error: stray '`' in program
    4 |             `*`,
      |               ^
main.c:5:13: error: stray '`' in program
    5 |             `+`,
      |             ^
main.c:5:15: error: stray '`' in program
    5 |             `+`,
      |               ^
main.c:6:13: error: stray '`' in program
    6 |             `-`
      |             ^
main.c:6:15: error: stray '`' in program
    6 |             `-`
      |               ^
main.c: In function 'main':
main.c:18:12: error: stray '`' in program
   18 |     if(op==`/`){
      |            ^
main.c:18:13: error: expected expression before '/' token
   18 |     if(op==`/`){
      |             ^
main.c:18:14: error: stray '`' in program
   18 |     if(op==`/`){
      |              ^
main.c:20:18: error: stray '`' in program
   20 |     }else if(op==`*`){
      |                  ^
main.c:20:20: error: stray '`' in program
   20 |     }else if(op==`*`){
      |                    ^
main.c:20:21: error: expected expression before ')' token
   20 |     }else if(op==`*`){
      |                     ^
main.c:22:18: error: stray '`' in program
   22 |     }else if(op==`+`){
      |                  ^
main.c:22:20: error: stray '`' in program
   22 |     }else if(op==`+`){
      |                    ^
main.c:22:21: error: expected expression before ')' token
   22 |     }else if(op==`+`){
      |                     ^
main.c:24:18: error: stray '`' in program
   24 |     }else if(op==`-`){
      |                  ^
main.c:24:20: error: stray '`' in program
   24 |     }else if(op==`-`){
      |                    ^
main.c:24:21: error: expected expression before ')' token
   24 |     }else if(op==`-`){
      |                     ^
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
  int a,b;
  char op;
  for(;;){
    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);
    }
  }
  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:12: error: stray '`' in program
    8 |     if(op==`?`){
      |            ^
main.c:8:13: error: expected expression before '?' token
    8 |     if(op==`?`){
      |             ^
main.c:8:14: error: stray '`' in program
    8 |     if(op==`?`){
      |              ^
main.c:10:18: error: stray '`' in program
   10 |     }else if(op==`/`){
      |                  ^
main.c:10:19: error: expected expression before '/' token
   10 |     }else if(op==`/`){
      |                   ^
main.c:10:20: error: stray '`' in program
   10 |     }else if(op==`/`){
      |                    ^
main.c:12:18: error: stray '`' in program
   12 |     }else if(op==`*`){
      |                  ^
main.c:12:20: error: stray '`' in program
   12 |     }else if(op==`*`){
      |                    ^
main.c:12:21: error: expected expression before ')' token
   12 |     }else if(op==`*`){
      |                     ^
main.c:14:18: error: stray '`' in program
   14 |     }else if(op==`+`){
      |                  ^
main.c:14:20: error: stray '`' in program
   14 |     }else if(op==`+`){
      |                    ^
main.c:14:21: error: expected expression before ')' token
   14 |     }else if(op==`+`){
      |                     ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:12: error: stray '`' in program
    8 |     if(op==`?`){
      |            ^
main.c:8:13: error: expected expression before '?' token
    8 |     if(op==`?`){
      |             ^
main.c:8:14: error: stray '`' in program
    8 |     if(op==`?`){
      |              ^
main.c:10:18: error: stray '`' in program
   10 |     }else if(op==`/`){
      |                  ^
main.c:10:19: error: expected expression before '/' token
   10 |     }else if(op==`/`){
      |                   ^
main.c:10:20: error: stray '`' in program
   10 |     }else if(op==`/`){
      |                    ^
main.c:12:18: error: stray '`' in program
   12 |     }else if(op==`*`){
      |                  ^
main.c:12:20: error: stray '`' in program
   12 |     }else if(op==`*`){
      |                    ^
main.c:12:21: error: expected expression before ')' token
   12 |     }else if(op==`*`){
      |                     ^
main.c:14:18: error: stray '`' in program
   14 |     }else if(op==`+`){
      |                  ^
main.c:14:20: error: stray '`' in program
   14 |     }else if(op==`+`){
      |                    ^
main.c:14:21: error: expected expression before ')' token
   14 |     }else if(op==`+`){
      |                     ^
Language: C

#include<stdio.h>
enum opchar{
             '/',
             '*',
             '-',
             '+'
            }
int main(void)
{
  int a,b;
  char op;
  enum opchar opc;
  for(;;){
    scanf("%d %c %d",&a,&op,&b);
    if(op!=opc){
      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:3:14: error: expected identifier before '/'
    3 |              '/',
      |              ^~~
main.c:8:1: error: expected ';', identifier or '(' before 'int'
    8 | int main(void)
      | ^~~
Language: C

#include<stdio.h>
enum opchar{
             '/',
             '*',
             '-',
             '+'
            };
int main(void)
{
  int a,b;
  char op;
  enum opchar opc;
  for(;;){
    scanf("%d %c %d",&a,&op,&b);
    if(op!=opc){
      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:3:14: error: expected identifier before '/'
    3 |              '/',
      |              ^~~
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:7:15: error: storage size of 'opc' isn't known
    7 |   enum opchar opc;
      |               ^~~
Language: C

#include <stdio.h>

int main () {

    int a, b, op, x;

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

        if (op == '+') {
            x = a + b;
        else if (op == '-') {
            x = a - b;
        else if (op == '*') {
            x = a * b;
        else if (op == '/') {
            x = a / b;
        else if (op == 0) {
            break;
        }

        printf("%d", x);

    }

    return 0;

}




Compiler output:
main.c: In function 'main':
main.c:12:9: error: expected '}' before 'else'
   12 |         else if (op == '-') {
      |         ^~~~
main.c:14:9: error: expected '}' before 'else'
   14 |         else if (op == '*') {
      |         ^~~~
main.c:16:9: error: expected '}' before 'else'
   16 |         else if (op == '/') {
      |         ^~~~
main.c:18:9: error: expected '}' before 'else'
   18 |         else if (op == 0) {
      |         ^~~~
Language: C

#include <stdio.h>

int main () {

    int a, b, op, x;

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

        if (op == '+') {
            x = a + b;
        else if (op == '-') {
            x = a - b;
        else if (op == '*') {
            x = a * b;
        else if (op == '/') {
            x = a / b;
        else if (op == 0) {
            break;
        }

        printf("%d", x);

    }

    return 0;

}




Compiler output:
main.c: In function 'main':
main.c:12:9: error: expected '}' before 'else'
   12 |         else if (op == '-') {
      |         ^~~~
main.c:14:9: error: expected '}' before 'else'
   14 |         else if (op == '*') {
      |         ^~~~
main.c:16:9: error: expected '}' before 'else'
   16 |         else if (op == '/') {
      |         ^~~~
main.c:18:9: error: expected '}' before 'else'
   18 |         else if (op == 0) {
      |         ^~~~
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:7:22: warning: comparison between pointer and integer
    7 |                 if(op=="+"){
      |                      ^~
main.c:10:27: warning: comparison between pointer and integer
   10 |                 else if(op=="-"){
      |                           ^~
main.c:13:27: warning: comparison between pointer and integer
   13 |                 else if(op=="*"){
      |                           ^~
main.c:16:27: warning: comparison between pointer and integer
   16 |                 else if(op=="/"){
      |                           ^~
main.c:19:27: warning: comparison between pointer and integer
   19 |                 else if(op=="?"){
      |                           ^~
main.c:21:17: error: expected statement before ']' token
   21 |                 ]
      |                 ^
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
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{
    }
    return 0;
}
    
    


Compiler output:
main.c: In function 'main':
main.c:7:28: error: expected ';' before '}' token
    7 |          printf("%d",a + b)
      |                            ^
      |                            ;
    8 |         }else if(op=='-'){
      |         ~                   
main.c:9:28: error: expected ';' before '}' token
    9 |          printf("%d",a - b)
      |                            ^
      |                            ;
   10 |         }else if(op=='*'){
      |         ~                   
main.c:11:28: error: expected ';' before '}' token
   11 |          printf("%d",a * b)
      |                            ^
      |                            ;
   12 |         }else if(op=='/'){
      |         ~                   
main.c:13:28: error: expected ';' before '}' token
   13 |          printf("%d",a / b)
      |                            ^
      |                            ;
   14 |     }else{
      |     ~
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:7:28: error: expected ';' before '}' token
    7 |          printf("%d",a + b)
      |                            ^
      |                            ;
    8 |         }else if(op=='-'){
      |         ~                   
main.c:9:28: error: expected ';' before '}' token
    9 |          printf("%d",a - b)
      |                            ^
      |                            ;
   10 |         }else if(op=='*'){
      |         ~                   
main.c:11:28: error: expected ';' before '}' token
   11 |          printf("%d",a * b)
      |                            ^
      |                            ;
   12 |         }else if(op=='/'){
      |         ~                   
main.c:13:28: error: expected ';' before '}' token
   13 |          printf("%d",a / b)
      |                            ^
      |                            ;
   14 |     }else{
      |     ~                       
main.c:15:9: error: break statement not within loop or switch
   15 |         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)
    }
    return 0;
}
    
    


Compiler output:
main.c: In function 'main':
main.c:7:28: error: expected ';' before '}' token
    7 |          printf("%d",a + b)
      |                            ^
      |                            ;
    8 |         }else if(op=='-'){
      |         ~                   
main.c:9:28: error: expected ';' before '}' token
    9 |          printf("%d",a - b)
      |                            ^
      |                            ;
   10 |         }else if(op=='*'){
      |         ~                   
main.c:11:28: error: expected ';' before '}' token
   11 |          printf("%d",a * b)
      |                            ^
      |                            ;
   12 |         }else if(op=='/'){
      |         ~                   
main.c:13:28: error: expected ';' before '}' token
   13 |          printf("%d",a / b)
      |                            ^
      |                            ;
   14 |     }
      |     ~
Language: C

#include<stdio.h>
int main(void){

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



Compiler output:
main.c: In function 'main':
main.c:9:27: error: expected expression before '?' token
    9 |                 if(op[i]==?){
      |                           ^
Language: C

#include<stdio.h>

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

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

    for(i = 1;;i++){
	if(op == '+') printf("%d", a+b);
	
	elseif(op== '-') printf("%d", a-b);
  
	elseif(op == '*') printf("%d", a*b);
 
	elseif(op == '/') printf("%d", a/b);

	elseif(op == '?') break;
        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:25: error: expected expression before '%' token
    8 |     scanf("%d, %c, %d", %a, &op, &b);
      |                         ^
main.c:10:9: error: 'i' undeclared (first use in this function)
   10 |     for(i = 1;;i++){
      |         ^
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:9: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   13 |         elseif(op== '-') printf("%d", a-b);
      |         ^~~~~~
main.c:13:25: error: expected ';' before 'printf'
   13 |         elseif(op== '-') printf("%d", a-b);
      |                         ^~~~~~~
      |                         ;
main.c:15:26: error: expected ';' before 'printf'
   15 |         elseif(op == '*') printf("%d", a*b);
      |                          ^~~~~~~
      |                          ;
main.c:17:26: error: expected ';' before 'printf'
   17 |         elseif(op == '/') printf("%d", a/b);
      |                          ^~~~~~~
      |                          ;
main.c:19:26: error: expected ';' before 'break'
   19 |         elseif(op == '?') break;
      |                          ^~~~~~
      |                          ;
Language: C

#include<stdio.h>

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

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

    for(i = 1;;i++){
	if(op == '+') printf("%d", a+b);
	
	elseif(op== '-') printf("%d", a-b);
  
	elseif(op == '*') printf("%d", a*b);
 
	elseif(op == '/') printf("%d", a/b);

	elseif(op == '?') break;
        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'i' undeclared (first use in this function)
   10 |     for(i = 1;;i++){
      |         ^
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:9: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   13 |         elseif(op== '-') printf("%d", a-b);
      |         ^~~~~~
main.c:13:25: error: expected ';' before 'printf'
   13 |         elseif(op== '-') printf("%d", a-b);
      |                         ^~~~~~~
      |                         ;
main.c:15:26: error: expected ';' before 'printf'
   15 |         elseif(op == '*') printf("%d", a*b);
      |                          ^~~~~~~
      |                          ;
main.c:17:26: error: expected ';' before 'printf'
   17 |         elseif(op == '/') printf("%d", a/b);
      |                          ^~~~~~~
      |                          ;
main.c:19:26: error: expected ';' before 'break'
   19 |         elseif(op == '?') break;
      |                          ^~~~~~
      |                          ;
Language: C

#include<stdio.h>

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

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

    for(i = 1;;i++){
	if(op == '+') printf("%d", a+b);
	
	elseif(op== '-') printf("%d", a-b);
  
	elseif(op == '*') printf("%d", a*b);
 
	elseif(op == '/') printf("%d", a/b);

	elseif(op == '?') break;
        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   13 |         elseif(op== '-') printf("%d", a-b);
      |         ^~~~~~
main.c:13:25: error: expected ';' before 'printf'
   13 |         elseif(op== '-') printf("%d", a-b);
      |                         ^~~~~~~
      |                         ;
main.c:15:26: error: expected ';' before 'printf'
   15 |         elseif(op == '*') printf("%d", a*b);
      |                          ^~~~~~~
      |                          ;
main.c:17:26: error: expected ';' before 'printf'
   17 |         elseif(op == '/') printf("%d", a/b);
      |                          ^~~~~~~
      |                          ;
main.c:19:26: error: expected ';' before 'break'
   19 |         elseif(op == '?') break;
      |                          ^~~~~~
      |                          ;
Language: C

#include<stdio.h>

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

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

    while(op != '?'){
	printf("%d", a op b);
        }
    return 0;
}


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

#include<stdio.h>

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

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

    while(op != '?'){
	printf("%d", (a op b));
        }
    return 0;
}


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

#include<stdio.h>

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

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

    while(op != '?'){
	printf("%d", (int)(a op b));
        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:29: error: expected ')' before 'op'
   11 |         printf("%d", (int)(a op b));
      |                           ~ ^~~
      |                             )
Language: C

#include<stdio.h>

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

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

    while(op != '?'){
	printf("%d", (int)(a op b));
        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:29: error: expected ')' before 'op'
   11 |         printf("%d", (int)(a op b));
      |                           ~ ^~~
      |                             )
Language: C

#include<stdio.h>

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

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

    for(i = 1;;i++){
	if(op == '+') a +=b;
	
	elseif(op== '-') a -=b;
  
	elseif(op == '*') a *=b;
 
	elseif(op == '/') a /=b;

	elseif(op == '?') break;
        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'i' undeclared (first use in this function)
   10 |     for(i = 1;;i++){
      |         ^
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:9: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   13 |         elseif(op== '-') a -=b;
      |         ^~~~~~
main.c:13:25: error: expected ';' before 'a'
   13 |         elseif(op== '-') a -=b;
      |                         ^~
      |                         ;
main.c:15:26: error: expected ';' before 'a'
   15 |         elseif(op == '*') a *=b;
      |                          ^~
      |                          ;
main.c:17:26: error: expected ';' before 'a'
   17 |         elseif(op == '/') a /=b;
      |                          ^~
      |                          ;
main.c:19:26: error: expected ';' before 'break'
   19 |         elseif(op == '?') break;
      |                          ^~~~~~
      |                          ;
Language: C

#include<stdio.h>

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

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

    for(i = 1;;i++){
	if(op == '+') a +=b;
	
	elseif(op== '-') a -=b;
  
	elseif(op == '*') a *=b;
 
	elseif(op == '/') a /=b;

	elseif(op == '?') break;
        printf("%d", a);

        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   13 |         elseif(op== '-') a -=b;
      |         ^~~~~~
main.c:13:25: error: expected ';' before 'a'
   13 |         elseif(op== '-') a -=b;
      |                         ^~
      |                         ;
main.c:15:26: error: expected ';' before 'a'
   15 |         elseif(op == '*') a *=b;
      |                          ^~
      |                          ;
main.c:17:26: error: expected ';' before 'a'
   17 |         elseif(op == '/') a /=b;
      |                          ^~
      |                          ;
main.c:19:26: error: expected ';' before 'break'
   19 |         elseif(op == '?') break;
      |                          ^~~~~~
      |                          ;
Language: C

#include<stdio.h>

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

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

    for(i = 1;;i++){
	if(op == '+') a+=b;
	
	elseif(op == '-') a-=b;
  
	elseif(op == '*') a*=b;
 
	elseif(op == '/') a/=b;

	elseif(op == '?') break;
        printf("%d", a);

        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   13 |         elseif(op == '-') a-=b;
      |         ^~~~~~
main.c:13:26: error: expected ';' before 'a'
   13 |         elseif(op == '-') a-=b;
      |                          ^~
      |                          ;
main.c:15:26: error: expected ';' before 'a'
   15 |         elseif(op == '*') a*=b;
      |                          ^~
      |                          ;
main.c:17:26: error: expected ';' before 'a'
   17 |         elseif(op == '/') a/=b;
      |                          ^~
      |                          ;
main.c:19:26: error: expected ';' before 'break'
   19 |         elseif(op == '?') break;
      |                          ^~~~~~
      |                          ;
Language: C

#include<stdio.h>

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

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

    for(i = 1;;i++){
	if(op == '+') {a+=b};
	
	elseif(op == '-') {a-=b};
  
	elseif(op == '*') {a*=b};
 
	elseif(op == '/') {a/=b};

	elseif(op == '?') {break};
        printf("%d", a);

        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:28: error: expected ';' before '}' token
   11 |         if(op == '+') {a+=b};
      |                            ^
      |                            ;
main.c:13:9: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   13 |         elseif(op == '-') {a-=b};
      |         ^~~~~~
main.c:13:26: error: expected ';' before '{' token
   13 |         elseif(op == '-') {a-=b};
      |                          ^~
      |                          ;
main.c:15:26: error: expected ';' before '{' token
   15 |         elseif(op == '*') {a*=b};
      |                          ^~
      |                          ;
main.c:17:26: error: expected ';' before '{' token
   17 |         elseif(op == '/') {a/=b};
      |                          ^~
      |                          ;
main.c:19:26: error: expected ';' before '{' token
   19 |         elseif(op == '?') {break};
      |                          ^~
      |                          ;
Language: C

#include<stdio.h>

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

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

    for(i = 1;;i++){
	if(op == '+');{a+=b};
	
	elseif(op == '-'); {a-=b};
  
	elseif(op == '*');{a*=b};
 
	elseif(op == '/');{a/=b};

	elseif(op == '?');{break};
        printf("%d", a);

        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:28: error: expected ';' before '}' token
   11 |         if(op == '+');{a+=b};
      |                            ^
      |                            ;
main.c:13:9: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   13 |         elseif(op == '-'); {a-=b};
      |         ^~~~~~
main.c:13:33: error: expected ';' before '}' token
   13 |         elseif(op == '-'); {a-=b};
      |                                 ^
      |                                 ;
main.c:15:32: error: expected ';' before '}' token
   15 |         elseif(op == '*');{a*=b};
      |                                ^
      |                                ;
main.c:17:32: error: expected ';' before '}' token
   17 |         elseif(op == '/');{a/=b};
      |                                ^
      |                                ;
main.c:19:33: error: expected ';' before '}' token
   19 |         elseif(op == '?');{break};
      |                                 ^
      |                                 ;
Language: C

#include<stdio.h>

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

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

    for(i = 1;;i++){
	if(op == '+')a+=b;
	
	elseif(op == '-')a-=b;
  
	elseif(op == '*')a*=b;
 
	elseif(op == '/')a/=b;

	elseif(op == '?')break;
        printf("%d", a\n);

        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   13 |         elseif(op == '-')a-=b;
      |         ^~~~~~
main.c:13:26: error: expected ';' before 'a'
   13 |         elseif(op == '-')a-=b;
      |                          ^
      |                          ;
main.c:15:26: error: expected ';' before 'a'
   15 |         elseif(op == '*')a*=b;
      |                          ^
      |                          ;
main.c:17:26: error: expected ';' before 'a'
   17 |         elseif(op == '/')a/=b;
      |                          ^
      |                          ;
main.c:19:26: error: expected ';' before 'break'
   19 |         elseif(op == '?')break;
      |                          ^~~~~
      |                          ;
main.c:20:23: error: stray '\' in program
   20 |         printf("%d", a\n);
      |                       ^
main.c:20:23: error: expected ')' before 'n'
   20 |         printf("%d", a\n);
      |               ~       ^~
      |                       )
Language: C

#include<stdio.h>

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

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

    for(i = 1;;i++){

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

	if(op == '?')break;
        printf("%d", a\n);

        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:21:23: error: stray '\' in program
   21 |         printf("%d", a\n);
      |                       ^
main.c:21:23: error: expected ')' before 'n'
   21 |         printf("%d", a\n);
      |               ~       ^~
      |                       )
Language: C

#include<stdio.h>

int main()
{
    int a, b, i;
    char op;
    for(i = 1;;i++){
        scanf("%d %c %d", &a, &op, &b);


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

	if(op == '?')break;
        printf("%d", a\n);

        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:20:23: error: stray '\' in program
   20 |         printf("%d", a\n);
      |                       ^
main.c:20:23: error: expected ')' before 'n'
   20 |         printf("%d", a\n);
      |               ~       ^~
      |                       )
Language: C

#include<stdio.h>

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


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

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:9:24: error: 'aopb' undeclared (first use in this function); did you mean 'op'?
    9 |         printf("%d\n", aopb);
      |                        ^~~~
      |                        op
main.c:9:24: 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(scanf("%d %c %d", &a, &op, &b) && op != '?'){
	printf("%d\n", a op b);
        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:25: error: expected ')' before 'op'
    8 |         printf("%d\n", a op b);
      |               ~         ^~~
      |                         )
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:8:26: error: expected ')' before 'op'
    8 |         printf("%d\n", (a op b));
      |                        ~ ^~~
      |                          )
Language: C

#include<stdio.h>

int main(void)
{
    int a,b;
    char op;
    
    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:10:8: error: break statement not within loop or switch
   10 |        break;
      |        ^~~~~
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<math.h>
int main()
{
  int a,b,i;
  char op;
    i = 0;
  while(1){
  scanf("%d %c %d",&a,&op,&b);

  if(op == '?')
    break;
  else if(op == '+')
    printf("%c\n",op);
  else if(op == '-')
    printf("%c\n",op);
  else if(op == '/')
    printf("%c\n",op);



  printf("%d %d %d\n",a,op,b);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |   scanf("%d %c %d",&a,&op,&b);
      |   ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include<math.h>
  +++ |+#include <stdio.h>
    2 | int main()
main.c:8:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |   scanf("%d %c %d",&a,&op,&b);
      |   ^~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |     printf("%c\n",op);
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |     printf("%c\n",op);
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |     printf("%c\n",op);
      |     ^~~~~~
main.c:17:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   21 |   printf("%d %d %d\n",a,op,b);
      |   ^~~~~~
main.c:21:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
    7 | while(1)
      | ^~~~~
main.c:8:24: error: 'op' undeclared (first use in this function)
    8 |   scanf("%d %c %d",&a,&op,&b);
      |                        ^~
main.c:8:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:1: error: break statement not within loop or switch
   10 | break;
      | ^~~~~
main.c:11:25: error: 'i' undeclared (first use in this function)
   11 |     printf("%d %c %d\n",i,op,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;  
    printf("%d %c %d\n",i,op,b);
     
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:1: error: break statement not within loop or switch
   10 | break;
      | ^~~~~
main.c:11:25: error: 'i' undeclared (first use in this function)
   11 |     printf("%d %c %d\n",i,op,b);
      |                         ^
main.c:11:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


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

#include<math.h>
int main()
{
  int a,b,ci;
  char op;
    i = 0;
  while(1){
  scanf("%d %c %d",&a,&op,&b);

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

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


Compiler output:
main.c: In function 'main':
main.c:6:5: error: 'i' undeclared (first use in this function); did you mean 'ci'?
    6 |     i = 0;
      |     ^
      |     ci
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |   scanf("%d %c %d",&a,&op,&b);
      |   ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include<math.h>
  +++ |+#include <stdio.h>
    2 | int main()
main.c:8:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |   scanf("%d %c %d",&a,&op,&b);
      |   ^~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |     printf("%d\n",c = a + b);
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:19: error: 'c' undeclared (first use in this function); did you mean 'ci'?
   13 |     printf("%d\n",c = a + b);
      |                   ^
      |                   ci
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |     printf("%d\n",c = a - b);
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |     printf("%d\n",c = a / b);
      |     ^~~~~~
main.c:17:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   19 |     printf("%d\n",c - a * b);
      |     ^~~~~~
main.c:19:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:22:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   22 |   printf("%d",c);
      |   ^~~~~~
main.c:22:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:10:1: error: break statement not within loop or switch
   10 | break;
      | ^~~~~
main.c:14:1: error: 'else' without a previous 'if'
   14 | else if(op =='-')
      | ^~~~
main.c:17:1: error: 'else' without a previous 'if'
   17 | else if(op =='*')
      | ^~~~
main.c:20:1: error: 'else' without a previous 'if'
   20 | else if(op =='/')
      | ^~~~
main.c:24:1: error: expected declaration or statement at end of input
   24 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>

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

return 0;
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:9:16: error: expected ')' before 'op'
    9 | printf("%d\n",a op b);
      |       ~        ^~~
      |                )
main.c:11:16: error: expected ')' before 'op'
   11 | printf("%d\n",a op b);
      |       ~        ^~~
      |                )
main.c:13:16: error: expected ')' before 'op'
   13 | printf("%d\n",a op b);
      |       ~        ^~~
      |                )
main.c:15:16: error: expected ')' before 'op'
   15 | printf("%d\n",a op b);
      |       ~        ^~~
      |                )
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:14:1: error: 'else' without a previous 'if'
   14 | else if(op =='-')
      | ^~~~
main.c:17:1: error: 'else' without a previous 'if'
   17 | else if(op =='*')
      | ^~~~
main.c:20:1: error: 'else' without a previous 'if'
   20 | else if(op =='/')
      | ^~~~
main.c:24:1: error: expected declaration or statement at end of input
   24 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>

main(void){
    int a, b, op;
    scanf("%d %d %d",&a ,&op, &b);
    
if(op == '+')
printf("%d\n",a op b);
else if(op == '-')
printf("%d\n",a op b);
else if(op == '*')
printf("%d\n",a op b);
if(op == '/')
printf("%d\n",a op b);
else

return 0;
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:8:16: error: expected ')' before 'op'
    8 | printf("%d\n",a op b);
      |       ~        ^~~
      |                )
main.c:10:16: error: expected ')' before 'op'
   10 | printf("%d\n",a op b);
      |       ~        ^~~
      |                )
main.c:12:16: error: expected ')' before 'op'
   12 | printf("%d\n",a op b);
      |       ~        ^~~
      |                )
main.c:14:16: error: expected ')' before 'op'
   14 | printf("%d\n",a op b);
      |       ~        ^~~
      |                )
Language: C

#include<stdio.h>

main(void){
    int a, b;
    char 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);
if(op == '/')
printf("%d\n",a / b);
else break;

return 0;
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:16:6: error: break statement not within loop or switch
   16 | else break;
      |      ^~~~~
Language: C

#include<stdio.h>

main(void){
    int a, b;
    char 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);
else if(op == '?');
end;

return 0;
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:17:1: error: 'end' undeclared (first use in this function)
   17 | end;
      | ^~~
main.c:17:1: note: each undeclared identifier is reported only once for each function it appears in