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

import java.util.Scanner;

class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		String[] str = sc.nextLine().split(" ");
		//int a = Integer.parseInt(str[0]);
		//int b = Integer.parseInt(str[2]);
		int a = new Integer(str[0]).intValue();
		int a = new Integer(str[2]).intValue();
		String op = str[1];
		int i = 0;
		
		while (sc.hasNextLine())
		{
			if (op == "?")
			{
				break;
			}
			
			if (op == "+")
			{
				i = a + b;
			}
			else if (op == "-")
			{
				i = a - b;
			}
			else if (op == "*")
			{
				i = a * b;
			}
			else if (op == "/")
			{
				i = a / b;
			}
			else
			{
				break;
			}
			
			System.out.println(i);
		}
	}
}

Compiler output:
Main.java:11: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
		int a = new Integer(str[0]).intValue();
		        ^
Main.java:12: error: variable a is already defined in method main(String[])
		int a = new Integer(str[2]).intValue();
		    ^
Main.java:12: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
		int a = new Integer(str[2]).intValue();
		        ^
Main.java:25: error: cannot find symbol
				i = a + b;
				        ^
  symbol:   variable b
  location: class Main
Main.java:29: error: cannot find symbol
				i = a - b;
				        ^
  symbol:   variable b
  location: class Main
Main.java:33: error: cannot find symbol
				i = a * b;
				        ^
  symbol:   variable b
  location: class Main
Main.java:37: error: cannot find symbol
				i = a / b;
				        ^
  symbol:   variable b
  location: class Main
5 errors
2 warnings
Language: Java

iimport java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		for(;;){
			int a = sc.nextInt();
			char op = sc.next().charAt(0);
			int b = sc.nextInt();
			int ans = 0;
		if(op == '+') ans = a + b;
		if(op == '-') ans = a - b;
		if(op == '*') ans = a * b;
		if(op == '/') ans = a / b;
		if(op == '?') break;
			System.out.println(ans);
		}
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
iimport java.util.Scanner;
^
1 error
Language: Java

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);
		
		int a = 0, b = 0;
		String op = null;
		
		try {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		if(op.equals("+")) {
			System.out.println(a+b);
		}else if(op.equals("-")) {
			System.out.println(a-b);
		}else if(op.equals("*")) {
			System.out.println(a*b);
		}else if(op.equals("/")) {
			System.out.println(a/b);
		}
		
	}

}

Compiler output:
Main.java:9: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:9: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Main {


	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		int a = 0, b = 0;
		String op = null;
		
		try {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		if(op.equals("+")) {
			System.out.println(a+b);
		}else if(op.equals("-")) {
			System.out.println(a-b);
		}else if(op.equals("*")) {
			System.out.println(a*b);
		}else if(op.equals("/")) {
			System.out.println(a/b);
		}
		
	}

}

Compiler output:
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.*;

class Main {
    void run(){
        Scanner sc = new Scanner(System.in);
        int a,b,c;
        String op;
        while(true){
            a = sc.nextInt();
            op = sc.next();
            b = sc.nextInt();
            if(op.equals("?")){
                break;
            }else if(op.equals("+")){
                c = a+b;
            }else if(op.equals("-")){
                c = a-b;
            }else if(op.equals("*")){
                c = a*b;
            }else if(op.equals("/")){
                c = a/b;
            }
        }
        
        
    }
    
    public static void main(String[] args){
        new Main.run();
    }
}

Compiler output:
Main.java:29: error: cannot find symbol
        new Main.run();
                ^
  symbol:   class run
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class AOJ110 {
	public static void main(String[] args){ 
		Scanner sc=new Scanner(System.in);
		while(true){int z = 0;
			int a=sc.nextInt();
			String s=sc.next();
			int b=sc.nextInt();
			if(s=="+")z=a+b;
			else if (s=="-")z=a-b;
			else if(s=="/")z=a/b;
			else if(s=="*")z=a*b;
			else if(s=="?")break;
			System.out.println(""+z);
		}
		sc.close();
	}		
}

Compiler output:
Main.java:3: error: class AOJ110 is public, should be declared in a file named AOJ110.java
public class AOJ110 {
       ^
1 error
Language: Java

import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {

		while (true) {
			String op = sc.next();
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(op.eqeals("?")) return;
			if(op.eqeals("+")){
				System.out.println(a + b);
			}else if(op.eqeals("-")){
				System.out.println(a - b);
			}else if(op.eqeals("*")){
				System.out.println(a * b);
			}else if(op.eqeals("/")){
				System.out.println(a / b);
			}
		}
	}
}

Compiler output:
Main.java:11: error: cannot find symbol
			if(op.eqeals("?")) return;
			     ^
  symbol:   method eqeals(String)
  location: variable op of type String
Main.java:12: error: cannot find symbol
			if(op.eqeals("+")){
			     ^
  symbol:   method eqeals(String)
  location: variable op of type String
Main.java:14: error: cannot find symbol
			}else if(op.eqeals("-")){
			           ^
  symbol:   method eqeals(String)
  location: variable op of type String
Main.java:16: error: cannot find symbol
			}else if(op.eqeals("*")){
			           ^
  symbol:   method eqeals(String)
  location: variable op of type String
Main.java:18: error: cannot find symbol
			}else if(op.eqeals("/")){
			           ^
  symbol:   method eqeals(String)
  location: variable op of type String
5 errors
Language: Java

import java.util.Scanner;

public class Min {
	public static void main(String[] args){ 
		Scanner sc=new Scanner(System.in);
		int z = 0;
		while(true){
			int a=sc.nextInt();
			String s=sc.next();
			int b=sc.nextInt();
			if("?".equals(s))break;
			else if ("-".equals(s))z=a-b;
			else if("/".equals(s))z=a/b;
			else if("*".equals(s))z=a*b;
			else if("+".equals(s))z=a+b;
			System.out.println(""+z);
		}
		sc.close();
		System.exit(0);
	}		

Compiler output:
Main.java:20: error: reached end of file while parsing
	}		
	 ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String args[] ) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String str=br.readLine();
			if(str==null){
				break;
			}
			String[] param=str.split(" ");
			if(param[1].equals("?")){
				break;
			}
			int ans;
			switch(param[1]){
				case "+":
					ans=Integer.parseInt(param[0])+Integer.parseInt(param[1]);
					break;
				case "-":
					ans=Integer.parseInt(param[0])-Integer.parseInt(param[1]);
					break;

				case "*":
					ans=Integer.parseInt(param[0])*Integer.parseInt(param[1]);
					break;

				case "/":
					ans=Integer.parseInt(param[0])/Integer.parseInt(param[1]);
					break;
			}
			System.out.println(ans);
		}
	}
}

Compiler output:
Main.java:33: error: variable ans might not have been initialized
			System.out.println(ans);
			                   ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String args[] ) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String str=br.readLine();
			if(str==null){
				break;
			}
			String[] param=str.split(" ");						int ans;
			if(param[1].equals("?")){
				break;
			}
			else if(param[1].equals("+"){
				ans=Integer.parseInt(param[0])+Integer.parseInt(param[1]);
			}
			else if(param[1].equals("-"){
				ans=Integer.parseInt(param[0])-Integer.parseInt(param[1]);
			}

			else if(param[1].equals("*"){
				ans=Integer.parseInt(param[0])*Integer.parseInt(param[1]);
			}

			else if(param[1].equals("/"){
				ans=Integer.parseInt(param[0])/Integer.parseInt(param[1]);
			}

			System.out.println(ans);
		}
	}
}

Compiler output:
Main.java:16: error: ')' expected
			else if(param[1].equals("+"){
			                            ^
Main.java:19: error: ')' expected
			else if(param[1].equals("-"){
			                            ^
Main.java:23: error: ')' expected
			else if(param[1].equals("*"){
			                            ^
Main.java:27: error: ')' expected
			else if(param[1].equals("/"){
			                            ^
4 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String args[] ) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String str=br.readLine();
			if(str==null){
				break;
			}
			String[] param=str.split(" ");						int ans;
			if(param[1].equals("?")){
				break;
			}
			else if(param[1].equals("+")){
				ans=Integer.parseInt(param[0])+Integer.parseInt(param[1]);
			}
			else if(param[1].equals("-")){
				ans=Integer.parseInt(param[0])-Integer.parseInt(param[1]);
			}

			else if(param[1].equals("*")){
				ans=Integer.parseInt(param[0])*Integer.parseInt(param[1]);
			}

			else if(param[1].equals("/")){
				ans=Integer.parseInt(param[0])/Integer.parseInt(param[1]);
			}

			System.out.println(ans);
		}
	}
}

Compiler output:
Main.java:31: error: variable ans might not have been initialized
			System.out.println(ans);
			                   ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String args[] ) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String str=br.readLine();
			if(str==null){
				break;
			}
			String[] param=str.split(" ");						int ans;
			if(param[1].equals("?")){
				break;
			}
			else if(param[1].equals("+")){
				ans=Integer.parseInt(param[0])+Integer.parseInt(param[1]);
			}
			else if(param[1].equals("-")){
				ans=Integer.parseInt(param[0])-Integer.parseInt(param[1]);
			}
			else if(param[1].equals("*")){
				ans=Integer.parseInt(param[0])*Integer.parseInt(param[1]);
			}
			else if(param[1].equals("/")){
				ans=Integer.parseInt(param[0])/Integer.parseInt(param[1]);
			}
			System.out.println(ans);
		}
	}
}

Compiler output:
Main.java:28: error: variable ans might not have been initialized
			System.out.println(ans);
			                   ^
1 error
Language: Java

import java.io.*;
import java.util.*;

class Calculation {
	int add(int a, int b) {
		return a + b;
	}
	
	int sub(int a, int b) {
		return a - b;
	}
	
	int mul(int a, int b) {
		return a * b;
	}
	
	int div(int a, int b) {
		return a / b;
	}
	
}

class Main {
		public static void main(String[] args) throws IOException {
	
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String str = input.readLine();
		String array[] = str.split(" ");
		
		int x[] = new int[2];
		x[0] = Integer.parseInt(array[0]);
		x[1] = Integer.parseInt(array[2]);
		String op = array[1];
		
		Calculation cal1 = new Calculation();
		Calculation cal2 = new Calculation();
		Calculation cal3 = new Calculation();
		Calculation cal4 = new Calculation();

		if 		(op == "+") { System.out.println(cal1.add(x[0],x[2])); }
		else if (op == "-") { System.out.println(cal2.sub(x[0],x[2])); }
		else if (op == "*") { System.out.println(cal3.mul(x[0],x[2])); }
		else if (op == "/") { System.out.println(cal4.div(x[0],x[2])); }
		else if (op == "?") { return null; }
		
	}
}

Compiler output:
Main.java:44: error: incompatible types: unexpected return value
		else if (op == "?") { return null; }
		                             ^
1 error
Language: Java

import java.io.*;
import java.util.*;

class 

class Main {
		static int Calculation() {
			int add(int a, int b) {
				return a + b;
			}		
			
			int sub(int a, int b) {
				return a - b;
			}
			
			int mul(int a, int b) {
				return a * b;
			}
			
			int div(int a, int b) {
				return a / b;
			}
	
		}
	
		public static void main(String[] args) throws IOException {
	
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		
		String str = input.readLine();
		String array[] = str.split(" ");
		
		int x[] = new int[2];
		x[0] = Integer.parseInt(array[0]);
		x[1] = Integer.parseInt(array[2]);
		String op = array[1];
		
		Calculation cal1 = new Calculation();
		Calculation cal2 = new Calculation();
		Calculation cal3 = new Calculation();
		Calculation cal4 = new Calculation();
		
		if 		(op.equals("+")) { System.out.println(cal1.add(x[0], x[1])); }
		else if (op.equals("-")) { System.out.println(cal2.sub(x[0], x[1])); }
		else if (op.equals("*")) { System.out.println(cal3.mul(x[0], x[1])); }
		else if (op.equals("/")) { System.out.println(cal4.div(x[0], x[1])); }
		else if (op.equals("?")) { System.exit(0); }
	}
}

Compiler output:
Main.java:4: error: <identifier> expected
class 
     ^
Main.java:8: error: ';' expected
			int add(int a, int b) {
			       ^
Main.java:8: error: <identifier> expected
			int add(int a, int b) {
			              ^
Main.java:8: error: ';' expected
			int add(int a, int b) {
			                    ^
Main.java:12: error: ';' expected
			int sub(int a, int b) {
			       ^
Main.java:12: error: <identifier> expected
			int sub(int a, int b) {
			              ^
Main.java:12: error: ';' expected
			int sub(int a, int b) {
			                    ^
Main.java:16: error: ';' expected
			int mul(int a, int b) {
			       ^
Main.java:16: error: <identifier> expected
			int mul(int a, int b) {
			              ^
Main.java:16: error: ';' expected
			int mul(int a, int b) {
			                    ^
Main.java:20: error: ';' expected
			int div(int a, int b) {
			       ^
Main.java:20: error: <identifier> expected
			int div(int a, int b) {
			              ^
Main.java:20: error: ';' expected
			int div(int a, int b) {
			                    ^
13 errors
Language: Java

import java.io.*;
import java.util.*;

class Main {
		static int Calculation() {
			int add(int a, int b) {
				return a + b;
			}		
			
			int sub(int a, int b) {
				return a - b;
			}
			
			int mul(int a, int b) {
				return a * b;
			}
			
			int div(int a, int b) {
				return a / b;
			}
	
		}
	
		public static void main(String[] args) throws IOException {
	
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		
		String str = input.readLine();
		String array[] = str.split(" ");
		
		int x[] = new int[2];
		x[0] = Integer.parseInt(array[0]);
		x[1] = Integer.parseInt(array[2]);
		String op = array[1];
		
		Calculation cal1 = new Calculation();
		Calculation cal2 = new Calculation();
		Calculation cal3 = new Calculation();
		Calculation cal4 = new Calculation();
		
		if 		(op.equals("+")) { System.out.println(cal1.add(x[0], x[1])); }
		else if (op.equals("-")) { System.out.println(cal2.sub(x[0], x[1])); }
		else if (op.equals("*")) { System.out.println(cal3.mul(x[0], x[1])); }
		else if (op.equals("/")) { System.out.println(cal4.div(x[0], x[1])); }
		else if (op.equals("?")) { System.exit(0); }
	}
}

Compiler output:
Main.java:6: error: ';' expected
			int add(int a, int b) {
			       ^
Main.java:6: error: <identifier> expected
			int add(int a, int b) {
			              ^
Main.java:6: error: ';' expected
			int add(int a, int b) {
			                    ^
Main.java:10: error: ';' expected
			int sub(int a, int b) {
			       ^
Main.java:10: error: <identifier> expected
			int sub(int a, int b) {
			              ^
Main.java:10: error: ';' expected
			int sub(int a, int b) {
			                    ^
Main.java:14: error: ';' expected
			int mul(int a, int b) {
			       ^
Main.java:14: error: <identifier> expected
			int mul(int a, int b) {
			              ^
Main.java:14: error: ';' expected
			int mul(int a, int b) {
			                    ^
Main.java:18: error: ';' expected
			int div(int a, int b) {
			       ^
Main.java:18: error: <identifier> expected
			int div(int a, int b) {
			              ^
Main.java:18: error: ';' expected
			int div(int a, int b) {
			                    ^
12 errors
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;

    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;
    }
  reutrn 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:3: error: 'reutrn' undeclared (first use in this function)
   25 |   reutrn 0;
      |   ^~~~~~
main.c:25:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:9: error: expected ';' before numeric constant
   25 |   reutrn 0;
      |         ^~
      |         ;
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
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;

    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:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

#include <stdio.h>

int main(void){
	int a,b;
	int c;
	
	while(1){
		scanf("%d",&a);
	c=getchar();
	scanf("%d",&b);
	if(c=='?')break;k
		switch(c){
			case '+':printf("%d\n",a+b);
			break;
			case '-':printf("%d\n",a-b);
			break;
			case '*':printf("%d\n",a*b);
			break;
			case '/':printf("%d\n",a/b);
			break;
			default:break;


		}
	}
	return 0;

Compiler output:
main.c: In function 'main':
main.c:11:25: error: 'k' undeclared (first use in this function)
   11 |         if(c=='?')break;k
      |                         ^
main.c:11:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:26: error: expected ';' before 'switch'
   11 |         if(c=='?')break;k
      |                          ^
      |                          ;
   12 |                 switch(c){
      |                 ~~~~~~    
main.c:26:9: error: expected declaration or statement at end of input
   26 |         return 0;
      |         ^~~~~~
Language: C

#include <stdio.h>

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


		}
	}
	return 0;

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

#include <stdio.h>

int main(int argc, const char * argv[]){
    int a[1000],b[1000],num=0;
    char op[1000];
    int x;
    
    
    while(1){
        scanf("%d %c %d",&a[num],&op[num],&b[num]);
        if(a[num]==0 && op[num]=='?' && b[num]==0){
            break;
        }
        num++;
    }
    
    for (int i=0; i<num; i++) {
        
        switch (op[i]) {
            case '+': x=a[i]+b[i]; break;
            case '-': x=a[i]-b[i]; break;
            case '*': x=a[i]*b[i]; break;
            case '/': x=a[i]/b[i]; break;
//            default: x=-123456789; printf("error!!\n"); break;
//        }
        printf("%d\n",x);

    }
    return 0;
}

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

#include <stdio.h>

int main(int argc, const char * argv[]){
    int a[1000],b[1000],num=0;
    char op[1000];
    int x=0,i=0;
    
    
    while(1){
        scanf("%d %c %d",&a[num],&op[num],&b[num]);
        if(a[num]==0 && op[num]=='?' && b[num]==0){
            break;
        }
        if(op[num]=='+' || op[num]=='-' || op[num]=='/' || op[num]=='*'){
            num++;
        }
    }
    
    for (i=0; i<num; i++) {
        
        if(op[i]=='+')x=a[i]+b[i];
        if(op[i]=='-')x=a[i]-b[i];
        if(op[i]=='*')x=a[i]*b[i];
        if(op[i]=='/')x=a[i]/b[i];
//        switch (op[i]) {
//            case '+': x=a[i]+b[i]; break;
//            case '-': x=a[i]-b[i]; break;
//            case '*': x=a[i]*b[i]; break;
//            case '/': x=a[i]/b[i]; break;
            default: x=-123456789; printf("error!!\n"); break;
//        }
        printf("%d\n",x);

    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:13: error: 'default' label not within a switch statement
   30 |             default: x=-123456789; printf("error!!\n"); break;
      |             ^~~~~~~
Language: C

#include <stdio.h>

int main(int argc, const char * argv[]){
    int a[10],b[10],result[10];
    char op[100];
    int i=0,num=0;
    
    
    while(1){
        scanf("%d %c %d",&a[num],&op[num],&b[num]);
        
        if(op[num]=='+'){x=a[num]+b[num];}
        else if(op[num]=='-'){x=a[num]-b[num];}
        else if(op[num]=='*'){x=a[num]*b[num];}
        else if(op[num]=='/'){x=a[num]/b[num];}
        else if(a[num]==0 && op[num]=='?' && b[num]==0){
            break;
        }
        else{num--;}
        
        num++;
        if(a[num]==0 && op[num]=='?' && b[num]==0){
            break;
        }
    }
    
    for (i=0; i<num; i++) {
        printf("%d\n",result[i]);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:26: error: 'x' undeclared (first use in this function)
   12 |         if(op[num]=='+'){x=a[num]+b[num];}
      |                          ^
main.c:12:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(int argc, const char * argv[]){
    int a[10],b[10],result[10];
    char op[100];
    int i=0,num=0;
    
    
    while(1){
        scanf("%d %c %d",&a[num],&op[num],&b[num]);
        
        if(op[num]=='+'){result[num]=a[num]+b[num];}
        else if(op[num]=='-'){result[num]=a[num]-b[num];}
        else if(op[num]=='*'){result[num]=a[num]*b[num];}
        else if(op[num]=='/'){result[num]=a[num]/b[num];}
        else if(a[num]==0 && op[num]=='?' && b[num]==0){
            break;
        }
        else{op[num]='!'}
        
        num++;
        if(a[num]==0 && op[num]=='?' && b[num]==0){
            break;
        }
    }
    
    for (i=0; i<num; i++) {
        if(op[i]!='!'){
            printf("%d\n",result[i]);
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:25: error: expected ';' before '}' token
   19 |         else{op[num]='!'}
      |                         ^
      |                         ;
Language: C

#include <stdio.h>

int main(int argc, const char * argv[]){
    int a[10],b[10],result[10];
    char op[10];
    int i=0,num=0;
    
    
    while(1){
        scanf("%d %c %d",&a[num],&op[num],&b[num]);
        
        if(op[num]=='+'){result[num]=a[num]+b[num];}
        else if(op[num]=='-'){result[num]=a[num]-b[num];}
        else if(op[num]=='*'){result[num]=a[num]*b[num];}
        else if(op[num]=='/'){
            if (b[num] == 0) {
                op[num]='0'
                break;
            }
            else{result[num]=a[num]/b[num];}
        }
        else if(op[num]=='?'){
            break;
        }
        else{op[num]='0';}
        
        num++;
        if(a[num]==0 && op[num]=='?' && b[num]==0){
            break;
        }
    }
    
    for (i=0; i<num; i++) {
        if(op[i]!='0'){
            printf("%d\n",result[i]);
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:28: error: expected ';' before 'break'
   17 |                 op[num]='0'
      |                            ^
      |                            ;
   18 |                 break;
      |                 ~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected expression before '?' token
    7 |   if(op == ?){
      |            ^
main.c:10:13: error: expected expression before ')' token
   10 |   if(op == +){
      |             ^
main.c:13:13: error: expected expression before ')' token
   13 |   if(op == -){
      |             ^
main.c:14:20: error: expected ';' before '}' token
   14 |    printf("%d",a-b)
      |                    ^
      |                    ;
   15 |   }
      |   ~                 
main.c:16:12: error: expected expression before '/' token
   16 |   if(op == /){
      |            ^
main.c:17:20: error: expected ';' before '}' token
   17 |    printf("%d",a/b)
      |                    ^
      |                    ;
   18 |   }
      |   ~                 
main.c:19:13: error: expected expression before ')' token
   19 |   if(op == *){
      |             ^
main.c:20:20: error: expected ';' before '}' token
   20 |    printf("%d",a*b)
      |                    ^
      |                    ;
   21 |   }
      |   ~
Language: C

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:12: error: stray '`' in program
    7 |   if(op == `?`){
      |            ^
main.c:7:13: error: expected expression before '?' token
    7 |   if(op == `?`){
      |             ^
main.c:7:14: error: stray '`' in program
    7 |   if(op == `?`){
      |              ^
main.c:10:12: error: stray '`' in program
   10 |   if(op == `+`){
      |            ^
main.c:10:14: error: stray '`' in program
   10 |   if(op == `+`){
      |              ^
main.c:10:15: error: expected expression before ')' token
   10 |   if(op == `+`){
      |               ^
main.c:13:12: error: stray '`' in program
   13 |   if(op == `-`){
      |            ^
main.c:13:14: error: stray '`' in program
   13 |   if(op == `-`){
      |              ^
main.c:13:15: error: expected expression before ')' token
   13 |   if(op == `-`){
      |               ^
main.c:16:12: error: stray '`' in program
   16 |   if(op == `/`){
      |            ^
main.c:16:13: error: expected expression before '/' token
   16 |   if(op == `/`){
      |             ^
main.c:16:14: error: stray '`' in program
   16 |   if(op == `/`){
      |              ^
main.c:19:12: error: stray '`' in program
   19 |   if(op == `*`){
      |            ^
main.c:19:14: error: stray '`' in program
   19 |   if(op == `*`){
      |              ^
main.c:19:15: error: expected expression before ')' token
   19 |   if(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== '+'){
            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:12:24: error: expected ')' before 'a'
   12 |             printf("%d"a+b);
      |                   ~    ^
      |                        )
main.c:14:24: error: expected ')' before 'a'
   14 |             printf("%d"a-b);
      |                   ~    ^
      |                        )
main.c:16:24: error: expected ')' before 'a'
   16 |             printf("%d"a*b);
      |                   ~    ^
      |                        )
main.c:18:24: error: expected ')' before 'a'
   18 |             printf("%d"a/b);
      |                   ~    ^
      |                        )
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:12:26: error: expected ')' before 'a'
   12 |             printf("%d\n"a+b);
      |                   ~      ^
      |                          )
main.c:14:26: error: expected ')' before 'a'
   14 |             printf("%d\n"a-b);
      |                   ~      ^
      |                          )
main.c:16:26: error: expected ')' before 'a'
   16 |             printf("%d\n"a*b);
      |                   ~      ^
      |                          )
main.c:18:26: error: expected ')' before 'a'
   18 |             printf("%d\n"a/b);
      |                   ~      ^
      |                          )
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:10:20: error: expected ')' before 'a'
   10 |       printf("%d\n" a + b);
      |             ~      ^~
      |                    )
main.c:19:20: error: expected ')' before 'a'
   19 |       printf("%d\n" a / b);
      |             ~      ^~
      |                    )
Language: C

#include<stdio.h>

int main(){
	int a, b;
	char op[2];
	while( scanf("%d%s%d", &a, op, &b) != -1 ){
		if( op[0] == '?' )
	    	break;
	    
	    int ans;
	    switch( op[0] ){
	    case '+':
	    	ans = a + b;
	    	break;
	    case '-':
	    	ans = a - b;
	    	break;
	    case 'x':
	    	ans = a * b;
	    	break;
	    case '/':
	    	ans = a / b;
	    	break;
	    }
	    cout << ans << endl;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:13: error: 'cout' undeclared (first use in this function)
   25 |             cout << ans << endl;
      |             ^~~~
main.c:25:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:28: error: 'endl' undeclared (first use in this function)
   25 |             cout << ans << endl;
      |                            ^~~~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:6:12: error: 'return0' undeclared (first use in this function)
    6 | if(op=='?')return0;
      |            ^~~~~~~
main.c:6:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

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

Compiler output:
main.c: In function 'main':
main.c:9:15: error: 'true' undeclared (first use in this function)
    9 |         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:9:15: note: each undeclared identifier is reported only once for each function it appears in
    9 |         while(true){
      |               ^~~~
Language: C

#include <stdio.h>
#include <iostream>

using namespace std;

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


	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",(double)a/(double)b);
	}else{
		break;
	}
	
	}
	return(0);
}

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:20:28: error: stray '\' in program
   20 |             printf("%d\n",a\b);
      |                            ^
main.c:20:28: error: expected ')' before 'b'
   20 |             printf("%d\n",a\b);
      |                   ~        ^~
      |                            )
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;

  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:11:10: error: expected expression before '?' token
   11 |   if(op==?) break;
      |          ^
main.c:13:11: error: expected expression before ')' token
   13 |   if(op==+)printf("%d\n",a+b);
      |           ^
main.c:14:16: error: expected expression before ')' token
   14 |   else if(op==-)printf("%d\n",a-b);
      |                ^
main.c:15:16: error: expected expression before ')' token
   15 |   else if(op==*)printf("%d\n",a*b);
      |                ^
main.c:16:15: error: expected expression before '/' token
   16 |   else if(op==/)printf("%d\n",a/b);
      |               ^
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;

  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:11:10: error: expected expression before '?' token
   11 |   if(op==?) break;
      |          ^
main.c:13:11: error: expected expression before ')' token
   13 |   if(op==+)printf("%d\n",a+b);
      |           ^
main.c:14:16: error: expected expression before ')' token
   14 |   else if(op==-)printf("%d\n",a-b);
      |                ^
main.c:15:16: error: expected expression before ')' token
   15 |   else if(op==*)printf("%d\n",a*b);
      |                ^
main.c:16:15: error: expected expression before '/' token
   16 |   else if(op==/)printf("%d\n",a/b);
      |               ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:9:16: error: expected expression before '?' token
    9 |         if(op==?)break;
      |                ^
Language: C

#include<stdio.h>

int main()
{
	int a,b;
	char op;
	while(1){
		scanf("%d %c %d",&a,&op,&b);
	if(op=='?')break;
	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:11:34: error: expected ')' before ';' token
   11 |                 printf("%d\n",a+b;);
      |                       ~          ^
      |                                  )
Language: C

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

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

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

  while(1){

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

    if(op=='+'){
      c=a+b;
      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);
    }
    if(op=='?'){
      break;
    }

  }
      return 0;
    }

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

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

int main(void){

  int a, b;
  char op;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:7: error: expected ':' or '...' before 'break'
   26 |       break;
      |       ^~~~~
main.c:29:8: error: 'c' undeclared (first use in this function)
   29 |     if(c == '?') break;
      |        ^
main.c:29:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:14:24: warning: missing terminating ' character
   14 |              if( op == '?")
      |                        ^
main.c:14:24: error: missing terminating ' character
   14 |              if( op == '?")
      |                        ^~~~
main.c:15:18: error: expected expression before 'break'
   15 |                  break;
      |                  ^~~~~
main.c:16:15: error: expected expression before '}' token
   16 |               }
      |               ^
Language: C

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

	op=a+b;
	op=a-b;
	op=a*b;
	op=a/b;

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

Compiler output:
main.c:16:9: error: expected identifier or '(' before 'return'
   16 |         return 0;
      |         ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:9: error: unknown type name 'bool'
    7 |         bool ef=false;
      |         ^~~~
main.c:2:1: note: 'bool' 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:7:17: error: 'false' undeclared (first use in this function)
    7 |         bool ef=false;
      |                 ^~~~~
main.c:7:17: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:36: error: 'true' undeclared (first use in this function)
   25 |                                 ef=true;
      |                                    ^~~~
main.c:25:36: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include <stdio.h>

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

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

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

		op=a+b;
				
		op=a-b;	
				
		op=a*b;
				
		op=a/b;

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

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

#include <stdio.h>
int main()
{
 int a,b,i;
 char op;
 for(i=0; ; i++){
      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:11:39: error: expected ')' before ';' token
   11 | else if(op=='*')  printf("%d\n",(a*b );
      |                         ~             ^
      |                                       )
Language: C

#include <stdio.h>
int main()
{
 int a,b,i;
 char op;
 for(i=0; ; i++){
      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:12:39: error: expected ';' before ')' token
   12 | else if(op=='/')  printf("%d\n"),(a/b) );
      |                                       ^~
      |                                       ;
main.c:12:40: error: expected statement before ')' token
   12 | else if(op=='/')  printf("%d\n"),(a/b) );
      |                                        ^