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

#include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;

int main()
{
    int a,b;
    char Operator;
    
    while(cin >> a >> Operator >> b){
        
        if(Operator == "?"){
            return 0;
        }
        if(Operator == "+"){
            cout << a + b << endl;
        }else if(Operator == "-"){
            cout << a - b << endl;
        }else if(Operator == "*"){
            cout << a * b << endl;
        }else if(Operator == "/"){
            cout << a / b << endl;
        }  
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |         if(Operator == "?"){
      |            ~~~~~~~~~^~~~~~
a.cc:17:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         if(Operator == "+"){
      |            ~~~~~~~~~^~~~~~
a.cc:19:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |         }else if(Operator == "-"){
      |                  ~~~~~~~~~^~~~~~
a.cc:21:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |         }else if(Operator == "*"){
      |                  ~~~~~~~~~^~~~~~
a.cc:23:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |         }else if(Operator == "/"){
      |                  ~~~~~~~~~^~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
 int a,b,s;
 char op;
 while(1){
  cin >> a >> b >> op;
  if (op=='?') break;
  
  if (op=='+'){
   s=a+b;
  }
  else if (op=='-'){
   s=a-b;
  }
  else if ()op=='*'){
   s=a*b;
  }
  else{
   s=a/b;
  }
  cout << s << endl;
 }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected primary-expression before ')' token
   17 |   else if ()op=='*'){
      |            ^
a.cc:17:20: error: expected ';' before ')' token
   17 |   else if ()op=='*'){
      |                    ^
      |                    ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: storage size of 'op' isn't known
    4 |     char op[];
      |          ^~
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
    int i;
    int length=0;
    char op[10000];
    int a[10000];
    int b[10000];
    int answer[10000];
    do{
        scanf("%d %s %d", &a[i], &op[i], &b[i]);
        length += 1;
    }whlile(op != "?");
    for(i=0; i<length-1; i++){
        swich(op[i]){
            case "+": answer[i] = a + b; break;
            case "-": answer[i] = a - b; break;
            case "*": answer[i] = a * b; break;
            case "/": answer[i] = a / b; break;
            default : break;
        }
        printf("%d\n", answer[i]);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: expected 'while' before 'whlile'
   13 |     }whlile(op != "?");
      |      ^~~~~~
a.cc:13:6: error: expected '(' before 'whlile'
   13 |     }whlile(op != "?");
      |      ^~~~~~
      |      (
a.cc:13:6: error: 'whlile' was not declared in this scope
   13 |     }whlile(op != "?");
      |      ^~~~~~
a.cc:13:23: error: expected ')' before ';' token
   13 |     }whlile(op != "?");
      |      ~~~~~~           ^
      |                       )
a.cc:15:9: error: 'swich' was not declared in this scope
   15 |         swich(op[i]){
      |         ^~~~~
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
    int i;
    int length=0;
    char op[10000];
    int a[10000];
    int b[10000];
    int answer[10000];
    do{
        scanf("%d %s %d", &a[i], &op[i], &b[i]);
        length += 1;
    }while(op != "?");
    for(i=0; i<length-1; i++){
        swich(op[i]){
            case "+": answer[i] = a + b; break;
            case "-": answer[i] = a - b; break;
            case "*": answer[i] = a * b; break;
            case "/": answer[i] = a / b; break;
            default : break;
        }
        printf("%d\n", answer[i]);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'swich' was not declared in this scope
   15 |         swich(op[i]){
      |         ^~~~~
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
    int i;
    int length=0;
    char op[10000];
    int a[10000];
    int b[10000];
    int answer[10000];
    do{
        scanf("%d %s %d", &a[i], &op[i], &b[i]);
        length += 1;
    }while(op != "?");
    for(i=0; i<length-1; i++){
        switch(op[i]){
            case "+": answer[i] = a[i] + b[i]; break;
            case "-": answer[i] = a[i] - b[i]; break;
            case "*": answer[i] = a[i] * b[i]; break;
            case "/": answer[i] = a[i] / b[i]; break;
            default : break;
        }
        printf("%d\n", answer[i]);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   16 |             case "+": answer[i] = a[i] + b[i]; break;
      |                  ^~~
a.cc:16:18: error: could not convert '"+"' from 'const char [2]' to 'int'
   16 |             case "+": answer[i] = a[i] + b[i]; break;
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:17:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   17 |             case "-": answer[i] = a[i] - b[i]; break;
      |                  ^~~
a.cc:17:18: error: could not convert '"-"' from 'const char [2]' to 'int'
   17 |             case "-": answer[i] = a[i] - b[i]; break;
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:18:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   18 |             case "*": answer[i] = a[i] * b[i]; break;
      |                  ^~~
a.cc:18:18: error: could not convert '"*"' from 'const char [2]' to 'int'
   18 |             case "*": answer[i] = a[i] * b[i]; break;
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:19:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   19 |             case "/": answer[i] = a[i] / b[i]; break;
      |                  ^~~
a.cc:19:18: error: could not convert '"/"' from 'const char [2]' to 'int'
   19 |             case "/": answer[i] = a[i] / b[i]; break;
      |                  ^~~
      |                  |
      |                  const char [2]
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
    int i;
    int length=0;
    char op[10000];
    int a[10000];
    int b[10000];
    int answer[10000];
    do{
        scanf("%d %s %d", &a[i], &op[i], &b[i]);
        length += 1;
    }while(op != "?");
    for(i=0; i<length-1; i++){
        if(op[i] == "+"){
            answer[i] = a[i] + b[i];
        }else if(op[i] == "-"){
            answer[i] = a[i] - b[i];
        }else if(op[i] == "*"){
            answer[i] = a[i] * b[i];
        }else if(op[i] == "/"){
            answer[i] = a[i] / b[i];
        }
        printf("%d\n", answer[i]);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(op[i] == "+"){
      |            ~~~~~~^~~~~~
a.cc:17:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         }else if(op[i] == "-"){
      |                  ~~~~~~^~~~~~
a.cc:19:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |         }else if(op[i] == "*"){
      |                  ~~~~~~^~~~~~
a.cc:21:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |         }else if(op[i] == "/"){
      |                  ~~~~~~^~~~~~
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
    int i;
    int length=0;
    int answer[10000];
    do{
        char op;
        int a, b;
        scanf("%d %s %d", &a, &op, &b);
        if(op == "+"){
            answer[i] = a + b;
        }else if(op == "-"){
            answer[i] = a - b;
        }else if(op == "*"){
            answer[i] = a * b;
        }else if(op == "/"){
            answer[i] = a / b;
        }
        length += 1;
    }while(op != "?");
    for(i=0; i<length-1; i++){
        printf("%d\n", answer[i]);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(op == "+"){
      |            ~~~^~~~~~
a.cc:13:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         }else if(op == "-"){
      |                  ~~~^~~~~~
a.cc:15:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         }else if(op == "*"){
      |                  ~~~^~~~~~
a.cc:17:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         }else if(op == "/"){
      |                  ~~~^~~~~~
a.cc:21:12: error: 'op' was not declared in this scope
   21 |     }while(op != "?");
      |            ^~
Language: C++

import java.util.Scanner;

/**
 * @author kawakami
 *
 */
 class  calcutator{

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner as = new Scanner(System.in);
		
		int a,b;
		String op;
		
		
		
		
		while(true){
			
			a=as.nextInt();
			op=as.next();
			b=as.nextInt();
			
			
			if(op.equals("?")){
				break;
			}
			else{
		
				switch(op){
		
				case"+":
					System.out.println(a+b);
					break;
				
				case"-":
					System.out.println(a-b);
					break;
					
				case"*":
					System.out.println(a*b);
					break;
					
				case"/":
					System.out.println(Math.ceil(a/b));
					break;
					
				default:
					System.out.println("Error!!");
					break;
			}
		}
		}
			
		
				
		
		

	}

}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:12:15: error: expected ':' before 'static'
   12 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:12:33: error: 'String' has not been declared
   12 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:12:42: error: expected ',' or '...' before 'args'
   12 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:67:2: error: expected ';' after class definition
   67 | }
      |  ^
      |  ;
a.cc: In static member function 'static void calcutator::main(int*)':
a.cc:15:17: error: 'Scanner' was not declared in this scope
   15 |                 Scanner as = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:18:17: error: 'String' was not declared in this scope
   18 |                 String op;
      |                 ^~~~~~
a.cc:25:27: error: 'as' was not declared in this scope; did you mean 'a'?
   25 |                         a=as.nextInt();
      |                           ^~
      |                           a
a.cc:26:25: error: 'op' was not declared in this scope
   26 |                         op=as.next();
      |                         ^~
a.cc:38:41: error: 'System' was not declared in this scope
   38 |                                         System.out.println(a+b);
      |                                         ^~~~~~
a.cc:50:60: error: 'Math' was not declared in this scope
   50 |                                         System.out.println(Math.ceil(a/b));
      |                                                            ^~~~
Language: C++

#include<stdio.h>
#include<iostream>
#include<math.h>
using namespace std;

int main()
{
	int a, b;
	char c;
	while (true) {
		scanf_s("%d %c %d", &a, &c, &b);
		if (c !='?') {
			switch (c)
			{
			case '+':
				cout << a + b << endl; break;
			case'-':
				cout << a - b << endl; break;
			case'/':
				cout << a / b << endl; break;
			case'*':
				cout << a*b << endl; break;
			}
		}
		else { return 0; }
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   11 |                 scanf_s("%d %c %d", &a, &c, &b);
      |                 ^~~~~~~
      |                 scanf
Language: C++

# include <iostream>
# include <iomanip>

int main() {
	int a, b;
	char ch;
	b_loop = true;
	std::cout << std::setprecision(10);
	std::cout << fixed;
	while(b_loop){
		std::cin >> a >> ch >> b;
		switch(ch){
			case '?':
				b_loop = false;
		  		break;
			case '+':
		  		std::cout << a + b ;
		  		break;
			case '-':
		  		std::cout << a - b;
		  		break;
			case '*':
			  std::cout << a * b;
			  break;
			case '/':
			  std::cout << static_cast<double>(a) / static_cast<double>(b);
			  break;
			case '%':
			  std::cout << a % b;
			  break;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'b_loop' was not declared in this scope
    7 |         b_loop = true;
      |         ^~~~~~
a.cc:9:22: error: 'fixed' was not declared in this scope; did you mean 'std::fixed'?
    9 |         std::cout << fixed;
      |                      ^~~~~
      |                      std::fixed
In file included from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/ios_base.h:1104:3: note: 'std::fixed' declared here
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
Language: C++

# include <iostream>
# include <iomanip>

int main() {
	int a, b;
	char ch;
	b_loop = true;
	std::cout << std::setprecision(10);
	std::cout << fixed;
	while(b_loop){
		std::cin >> a >> ch >> b;
		switch(ch){
			case '?':
				b_loop = false;
		  		break;
			case '+':
		  		std::cout << a + b << std::endl;
		  		break;
			case '-':
		  		std::cout << a - b << std::endl;
		  		break;
			case '*':
			  std::cout << a * b << std::endl;
			  break;
			case '/':
			  std::cout << static_cast<double>(a) / static_cast<double>(b) << std::endl;
			  break;
			case '%':
			  std::cout << a % b << std::endl;
			  break;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'b_loop' was not declared in this scope
    7 |         b_loop = true;
      |         ^~~~~~
a.cc:9:22: error: 'fixed' was not declared in this scope; did you mean 'std::fixed'?
    9 |         std::cout << fixed;
      |                      ^~~~~
      |                      std::fixed
In file included from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/ios_base.h:1104:3: note: 'std::fixed' declared here
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
Language: C++

# include <iostream>
# include <iomanip>

int main() {
	int a, b;
	char ch;
	bool b_loop = true;
	std::cout << std::setprecision(10);
	std::cout << std::fix# include <iostream>
# include <iomanip>

int main() {
	int a, b;
	char ch;
	bool b_loop = true;
	std::cout << std::setprecision(10);
	std::cout << std::fixed;
	while (b_loop) {
		std::cin >> a >> ch >> b;
		switch (ch) {
		case '?':
			b_loop = false;
			break;
		case '+':
			std::cout << a + b << std::endl;
			break;
		case '-':
			std::cout << a - b << std::endl;
			break;
		case '*':
			std::cout << a * b << std::endl;
			break;
		case '/':
			std::cout << a / b << std::endl;
			break;
		case '%':
			std::cout << a % b << std::endl;
			break;
		}
	}
	return 0;
}d;
	while (b_loop) {
		std::cin >> a >> ch >> b;
		switch (ch) {
		case '?':
			b_loop = false;
			break;
		case '+':
			std::cout << a + b << std::endl;
			break;
		case '-':
			std::cout << a - b << std::endl;
			break;
		case '*':
			std::cout << a * b << std::endl;
			break;
		case '/':
			std::cout << static_cast<double>(a) / static_cast<double>(b) << std::endl;
			break;
		case '%':
			std::cout << a % b << std::endl;
			break;
		}
	}
	return 0;
}

Compiler output:
a.cc:9:30: error: stray '#' in program
    9 |         std::cout << std::fix# include <iostream>
      |                              ^
a.cc: In function 'int main()':
a.cc:9:27: error: 'fix' is not a member of 'std'
    9 |         std::cout << std::fix# include <iostream>
      |                           ^~~
a.cc:42:2: error: 'd' was not declared in this scope
   42 | }d;
      |  ^
Language: C++

#include <iostream>
using namespace std;

int main(void){

    int a;
    char op;
    int b;
    
    const int num = 1000;
    int result[num];
    int outPutNum;

    for(int i = 0; i < 1000; i++) {
        std::cin >> a >> op >> b;
        
        if ( op == '+' ){
            result[i] = a + b;
        } else if ( op == '-' ){
            result[i] = a - b;
        } else if ( op == '*' ){
            result[i] = a * b;
        } else if ( op == '/' ){
            result[i] = a / b;
        } else {
            outPutNum = i;
        ???  break;
        }
    }
    
    for(int i = 0; i < outPutNum; i++) {
        std::cout << result[i] << std::endl;
    }
    
    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:9: error: expected primary-expression before '?' token
   27 |         ???  break;
      |         ^
a.cc:27:10: error: expected primary-expression before '?' token
   27 |         ???  break;
      |          ^
a.cc:27:11: error: expected primary-expression before '?' token
   27 |         ???  break;
      |           ^
a.cc:27:14: error: expected primary-expression before 'break'
   27 |         ???  break;
      |              ^~~~~
a.cc:27:12: error: expected ':' before 'break'
   27 |         ???  break;
      |            ^ ~~~~~
      |            :
a.cc:27:14: error: expected primary-expression before 'break'
   27 |         ???  break;
      |              ^~~~~
a.cc:27:12: error: expected ':' before 'break'
   27 |         ???  break;
      |            ^ ~~~~~
      |            :
a.cc:27:14: error: expected primary-expression before 'break'
   27 |         ???  break;
      |              ^~~~~
a.cc:27:12: error: expected ':' before 'break'
   27 |         ???  break;
      |            ^ ~~~~~
      |            :
a.cc:27:14: error: expected primary-expression before 'break'
   27 |         ???  break;
      |              ^~~~~
Language: C++

#include <iostream>
using namespace std;

int main(void){

    int a;
    char op;
    int b;
    
    const int num = 1000;
    int result[num];
    int outPutNum;

    for(int i = 0; i < 1000; i++) {
        std::cin >> a >> op >> b;
        
        if ( op == '+' ){
            result[i] = a + b;
        } else if ( op == '-' ){
            result[i] = a - b;
        } else if ( op == '*' ){
            result[i] = a * b;
        } else if ( op == '/' ){
            result[i] = a / b;
        } else {
            outPutNum = i;
        ???  break;
        }
    }
    
    for(int i = 0; i < outPutNum + 1; i++) {
        std::cout << result[i] << std::endl;
    }
    
    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:9: error: expected primary-expression before '?' token
   27 |         ???  break;
      |         ^
a.cc:27:10: error: expected primary-expression before '?' token
   27 |         ???  break;
      |          ^
a.cc:27:11: error: expected primary-expression before '?' token
   27 |         ???  break;
      |           ^
a.cc:27:14: error: expected primary-expression before 'break'
   27 |         ???  break;
      |              ^~~~~
a.cc:27:12: error: expected ':' before 'break'
   27 |         ???  break;
      |            ^ ~~~~~
      |            :
a.cc:27:14: error: expected primary-expression before 'break'
   27 |         ???  break;
      |              ^~~~~
a.cc:27:12: error: expected ':' before 'break'
   27 |         ???  break;
      |            ^ ~~~~~
      |            :
a.cc:27:14: error: expected primary-expression before 'break'
   27 |         ???  break;
      |              ^~~~~
a.cc:27:12: error: expected ':' before 'break'
   27 |         ???  break;
      |            ^ ~~~~~
      |            :
a.cc:27:14: error: expected primary-expression before 'break'
   27 |         ???  break;
      |              ^~~~~
Language: C++

#include <iostream>
using namespace std;

int main(void){

    int a;
    char op;
    int b;
    
    const int num = 1000;
    int result[num];
    int outPutNum;

    for(int i = 0; i < num; i++) {
        
        std::cin >> a >> op >> b;
        
        if ( op == '+' ){
            result[i] = a + b;
        } else if ( op == '-' ){
            result[i] = a - b;
        } else if ( op == '*' ){
            result[i] = a * b;
        } else if ( op == '/' ){
            result[i] = a / b;
        } else {
            outPutNum = i;
        ???  break;
        }
    }
    
    for(int i = 0; i < outPutNum + 1; i++) {
        std::cout << result[i] << std::endl;
    }
    
    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:9: error: expected primary-expression before '?' token
   28 |         ???  break;
      |         ^
a.cc:28:10: error: expected primary-expression before '?' token
   28 |         ???  break;
      |          ^
a.cc:28:11: error: expected primary-expression before '?' token
   28 |         ???  break;
      |           ^
a.cc:28:14: error: expected primary-expression before 'break'
   28 |         ???  break;
      |              ^~~~~
a.cc:28:12: error: expected ':' before 'break'
   28 |         ???  break;
      |            ^ ~~~~~
      |            :
a.cc:28:14: error: expected primary-expression before 'break'
   28 |         ???  break;
      |              ^~~~~
a.cc:28:12: error: expected ':' before 'break'
   28 |         ???  break;
      |            ^ ~~~~~
      |            :
a.cc:28:14: error: expected primary-expression before 'break'
   28 |         ???  break;
      |              ^~~~~
a.cc:28:12: error: expected ':' before 'break'
   28 |         ???  break;
      |            ^ ~~~~~
      |            :
a.cc:28:14: error: expected primary-expression before 'break'
   28 |         ???  break;
      |              ^~~~~
Language: C++

#include <iostream>
using namespace std;

int main(void){

    int a, b;
    char op;
    
    while(std::cin >> a >> op >> b, op != '?') {
        switch(op) {
            case '+':
                std::cout << a + b << std::endl;
                break;
            case '-';
                std::cout << a - b << std::endl;
                break;
            case '*';
                std::cout << a * b << std::endl;
                break;
            case '/';
                std::cout << a / b << std::endl;
                break;
        }
    }
    
    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected ':' before ';' token
   14 |             case '-';
      |                     ^
      |                     :
a.cc:17:21: error: expected ':' before ';' token
   17 |             case '*';
      |                     ^
      |                     :
a.cc:20:21: error: expected ':' before ';' token
   20 |             case '/';
      |                     ^
      |                     :
Language: C++

#include <stdio.h>
#include <string.h.>
int main(){
	int a,b;
	char op[10];
	char tasu[10] = "+";
	char hiku[10] = "-";
	char kake[10] = "*";
	char waru[10] = "/";

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

Compiler output:
a.cc:2:10: fatal error: string.h.: No such file or directory
    2 | #include <string.h.>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
int cong=0,tru=0,nhan=0,chia=0;
if(a == 0 && b == 0)break;
for(int i=1;;i++){
cong = a + b;
tru = a - b;
nhan = a * b;
chia = a / b;
}
cout<<cong<<endl;
cout<<tru<<endl;
cout<<nhan<<endl;
chia<<chia<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: break statement not within loop or switch
    8 | if(a == 0 && b == 0)break;
      |                     ^~~~~
a.cc:18:11: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   18 | chia<<chia<<endl;
      | ~~~~~~~~~~^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
int cong=0,tru=0,nhan=0;
double chia;
if(a == 0 && b == 0)break;
for(int i=1;;i++){
cong = a + b;
tru = a - b;
nhan = a * b;
chia = a / b;
}
cout<<cong<<endl;
cout<<tru<<endl;
cout<<nhan<<endl;
chia<<chia<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: break statement not within loop or switch
    9 | if(a == 0 && b == 0)break;
      |                     ^~~~~
a.cc:19:5: error: invalid operands of types 'double' and 'double' to binary 'operator<<'
   19 | chia<<chia<<endl;
      | ~~~~^~~~~~
      | |     |
      | |     double
      | double
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
int cong=0,tru=0,nhan=0;
double chia;
if(a == 0 && b == 0)break;
for(int i=1;;i++){
cong = a + b;
tru = a - b;
nhan = a * b;
chia = a / b;
}
cout<<cong<<endl;
cout<<tru<<endl;
cout<<nhan<<endl;
cout<<chia<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: break statement not within loop or switch
    9 | if(a == 0 && b == 0)break;
      |                     ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
int cong=0,tru=0,nhan=0;
double chia;
if(a == 0 && b == 0) break;
for(int i=1;;i++){
cong = a + b;
tru = a - b;
nhan = a * b;
chia = a / b;
}
cout<<cong<<endl;
cout<<tru<<endl;
cout<<nhan<<endl;
cout<<chia<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: break statement not within loop or switch
    9 | if(a == 0 && b == 0) break;
      |                      ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b;
char c;
cin>>a>>c>>b;
int cong=0,tru=0,nhan=0;
double chia;
if(c = '?') break;
for(int i=1;;i++){
cong = a + b;
tru = a - b;
nhan = a * b;
chia = a / b;
}
cout<<cong<<endl;
cout<<tru<<endl;
cout<<nhan<<endl;
cout<<chia<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: break statement not within loop or switch
   10 | if(c = '?') break;
      |             ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b;
char c;
cin>>a>>c>>b;
int cong=0,tru=0,nhan=0;
double chia;
if(c == '?') break;
for(int i=1;;i++){
cong = a + b;
tru = a - b;
nhan = a * b;
chia = a / b;
}
cout<<cong<<endl;
cout<<tru<<endl;
cout<<nhan<<endl;
cout<<chia<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: break statement not within loop or switch
   10 | if(c == '?') break;
      |              ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b;
char c;
cin>>a>>c>>b;
int cong=0,tru=0,nhan=0;
double chia;
if(c == "?") break;
for(int i=1;;i++){
cong = a + b;
tru = a - b;
nhan = a * b;
chia = a / b;
}
cout<<cong<<endl;
cout<<tru<<endl;
cout<<nhan<<endl;
cout<<chia<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 | if(c == "?") break;
      |    ~~^~~~~~
a.cc:10:14: error: break statement not within loop or switch
   10 | if(c == "?") break;
      |              ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b;
char c;
int cong=0,tru=0,nhan=0;
double chia;
for(int i=1;;i++){
cin>>a>>c>>b;
if(c == "?") break;
cong = a + b;
tru = a - b;
nhan = a * b;
chia = a / b;
}
cout<<cong<<endl;
cout<<tru<<endl;
cout<<nhan<<endl;
cout<<chia<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 | if(c == "?") break;
      |    ~~^~~~~~
Language: C++

#include<iostream>
using namespace std;
static const int a,b = 20000;

int main(){
	int a,b,c;
	char op;
	
	while(1){
		cin >> a;
		cin >> op;
		cin >> b;
		if(op == '+'){
			c=a+b;
			cout<<c<<endl;
		}
		if(op == '-'){
			c=a-b;
			cout<<c<<endl;
		}
		if(op == '*'){
			c=a*b;
			cout<<c<<endl;
		}
		if(op == '/'){
			c=a/b;
			cout<<c<<endl;
		}
		if(op == '?') break;
	}
	
	return 0;
}

Compiler output:
a.cc:3:18: error: uninitialized 'const a' [-fpermissive]
    3 | static const int a,b = 20000;
      |                  ^
Language: C++

#include<iostream>
using namespace std;

int main() {
	char kt;
	while (true) {
		cin >> kt;
		if (kt == '?') break;
		switch (kt) {
		case ('+'): cout << (a + b) << endl; break;
		case ('-'): cout << (a - b) << endl; break;
		case ('*'): cout << (a * b) << endl; break;
		case ('/'): cout << (a / b) << endl; break;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:38: error: 'a' was not declared in this scope
   10 |                 case ('+'): cout << (a + b) << endl; break;
      |                                      ^
a.cc:10:42: error: 'b' was not declared in this scope
   10 |                 case ('+'): cout << (a + b) << endl; break;
      |                                          ^
Language: C++

#include<stdio.h>

int main(void){
    for( ; ; ){
        int a, b;
        char op;
        scanf(" %d %c %d",&a, &op, &b);
        if(op=="?") break;
    
        switch(){
            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:
a.cc: In function 'int main()':
a.cc:8:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if(op=="?") break;
      |            ~~^~~~~
a.cc:10:16: error: expected primary-expression before ')' token
   10 |         switch(){
      |                ^
Language: C++

#include<stdio.h>

int main(void){
    for( ; ; ){
        int a, b;
        char op;
        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:
a.cc: In function 'int main()':
a.cc:8:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if(op=="?") break;
      |            ~~^~~~~
a.cc:11:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   11 |             case "+" : printf("%d\n",a+b);break;
      |                  ^~~
a.cc:11:18: error: could not convert '"+"' from 'const char [2]' to 'int'
   11 |             case "+" : printf("%d\n",a+b);break;
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:12:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   12 |             case "-" : printf("%d\n",a-b);break;
      |                  ^~~
a.cc:12:18: error: could not convert '"-"' from 'const char [2]' to 'int'
   12 |             case "-" : printf("%d\n",a-b);break;
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:13:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   13 |             case "*" : printf("%d\n",a*b);break;
      |                  ^~~
a.cc:13:18: error: could not convert '"*"' from 'const char [2]' to 'int'
   13 |             case "*" : printf("%d\n",a*b);break;
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:14:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   14 |             case "/" : printf("%d\n",a/b);break;
      |                  ^~~
a.cc:14:18: error: could not convert '"/"' from 'const char [2]' to 'int'
   14 |             case "/" : printf("%d\n",a/b);break;
      |                  ^~~
      |                  |
      |                  const char [2]
Language: C++

#include<stdio.h>

int main(){
    for( ; ; ){
        int a, b;
        char op;
        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:
a.cc: In function 'int main()':
a.cc:8:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if(op=="?") break;
      |            ~~^~~~~
a.cc:11:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   11 |             case "+" : printf("%d\n",a+b);break;
      |                  ^~~
a.cc:11:18: error: could not convert '"+"' from 'const char [2]' to 'int'
   11 |             case "+" : printf("%d\n",a+b);break;
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:12:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   12 |             case "-" : printf("%d\n",a-b);break;
      |                  ^~~
a.cc:12:18: error: could not convert '"-"' from 'const char [2]' to 'int'
   12 |             case "-" : printf("%d\n",a-b);break;
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:13:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   13 |             case "*" : printf("%d\n",a*b);break;
      |                  ^~~
a.cc:13:18: error: could not convert '"*"' from 'const char [2]' to 'int'
   13 |             case "*" : printf("%d\n",a*b);break;
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:14:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   14 |             case "/" : printf("%d\n",a/b);break;
      |                  ^~~
a.cc:14:18: error: could not convert '"/"' from 'const char [2]' to 'int'
   14 |             case "/" : printf("%d\n",a/b);break;
      |                  ^~~
      |                  |
      |                  const char [2]
Language: C++

import Control.Applicative

import Control.Monad
    (when)
    
operate :: String -> (Int -> Int -> Int)

operate op
    = case op of
        "+" -> (+)
        "-" -> (-)
        "*" -> (*)
        "/" -> div
        
solve :: Int -> String -> Int -> Int

solve a op b
    = operate op a b

input :: IO (Int, String, Int)

input
    = do
        [a, op, b] <- words <$> getLine
        return (read a, op, read b)

output :: Int -> String

output
    = show
    
loop :: IO ()

loop
    = do
        (a, op, b) <- input
        when (op /= "?") $ do
            putStrLn $ output $ solve a op b
            loop
            
main :: IO ()
    
main
    = loop

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import Control.Applicative
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    7 | if(c="+")
      |      ^~~
      |      |
      |      const char*
a.cc:9:6: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    9 | if(c="-")
      |      ^~~
      |      |
      |      const char*
a.cc:11:6: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   11 | if(c="*")
      |      ^~~
      |      |
      |      const char*
a.cc:13:6: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   13 | if(c="/")
      |      ^~~
      |      |
      |      const char*
a.cc:15:6: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   15 | if(c="?")
      |      ^~~
      |      |
      |      const char*
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 | if(c=="+")
      |    ~^~~~~
a.cc:9:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 | if(c=="-")
      |    ~^~~~~
a.cc:11:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 | if(c=="*")
      |    ~^~~~~
a.cc:13:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 | if(c=="/")
      |    ~^~~~~
a.cc:15:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 | if(c=="?")
      |    ~^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:1: error: break statement not within loop or switch
   16 | break;
      | ^~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>

int main()
{
	int a[128], b[128], result[128];
	char m[256] = {0};
	int i = 0;
	int I = 0;
	
	while (a[i] != 0 || b[i] != 0 || m[i] != "?") {
		std::cin >> a[i] >> m[i] >> b[i]; 
		i++;
	}
	i = 0;
	
	while (a[i] != 0 || b[i] != 0 || m[I] != "?") {
		if (m[I] == "+") {
			result[i] = a[i] + b[i]; 
		}
		else if(m[I] == "-"){
			result[i] = a[i] - b[i];
		}
		else if (m[I] == "*") {
			result[i] = a[i] * b[i];
		}
		else{
			result[i] = a[i] / b[i];
		}
		i++;
		I += 2;
	}
	i = 0;
	
	while (a[i] != 0 || b[i] != 0 || m[i] != "?") {
		std::cout << result[i] << endl;
		i++;
	}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         while (a[i] != 0 || b[i] != 0 || m[i] != "?") {
      |                                          ~~~~~^~~~~~
a.cc:18:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         while (a[i] != 0 || b[i] != 0 || m[I] != "?") {
      |                                          ~~~~~^~~~~~
a.cc:19:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |                 if (m[I] == "+") {
      |                     ~~~~~^~~~~~
a.cc:22:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |                 else if(m[I] == "-"){
      |                         ~~~~~^~~~~~
a.cc:25:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |                 else if (m[I] == "*") {
      |                          ~~~~~^~~~~~
a.cc:36:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   36 |         while (a[i] != 0 || b[i] != 0 || m[i] != "?") {
      |                                          ~~~~~^~~~~~
a.cc:37:43: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   37 |                 std::cout << result[i] << endl;
      |                                           ^~~~
      |                                           std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

public class Main {

	public static void main(String[] args) {

		//?????£?????????
		int numA = 0;
		int numB = 0;

		int Anser = 0;

		String op = null;
		String line = null;

		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			//???????????????
			while(true){
				line = br.readLine();

				String[] InputList = line.split(" ");
				if (line != null || line.equals("")) {

					numA = Integer.parseInt(InputList[0]);
					numB = Integer.parseInt(InputList[2]);
					op = InputList[1];

					switch (op) {
						case "+":
							System.out.println(numA + numB);
							break;

						case "-":
							System.out.println(numA - numB);
							break;

						case "*":
							System.out.println(numA * numB);
							break;

						case "/":
							System.out.println(numA / numB);
							break;

						default:
							System.out.println("error");
							break;
					}
				}else{
					break;
				}
			}

		}catch (NumberFormatException e) {
			System.out.println(e);
		} catch (IOException e) {
			System.out.println(e);
		}

	}

}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main {
      | ^~~~~~
Language: C++

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

	int a,b,c[2000],i,j;
	char op;
	i=0;
	while(1)
	{
		scanf("%d%c%d",&a,&op,&b);
		if(op=='?')
		{
		break;
		}
		else if(op=='+')
		{
			c[i]=a+b;
		}
		else if(op=='-')
		{
			c[i]=a-b;
		
		}
		else if(op=='*')
		{
			c[i]=a*b;
		
		}
		else (op=='/')
		{
			c[i]=a/b;
		}
		i++;
	}

	for(j=0;j<i;j++)
	{
		printf("%d\n",c[j]);
	}
	
	return 0;	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:31: error: expected ';' before '{' token
   29 |                 else (op=='/')
      |                               ^
      |                               ;
   30 |                 {
      |                 ~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a,b;
    string op;
    
    
    while(1){
        cin >> a >> op >> b ;

        if(op=="/"){
        cout << a/b <<endl;        }
    else if(op=="+"){
        cout << a+b << endl;
    }else if (op=="-"){
        cout << a-b << endl;
    }else if (op=="*"){
        cout << a*b << endl;
    }else if(op=="?"){
            break;

        
    }
    
    return 0;
    }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:27:6: error: expected '}' at end of input
   27 |     }
      |      ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<char.h>
using namespace std;
int main(){
	int a, b;
	char op ;
	cin >> a>>op>>b ;
	switch (op){
	case '+':cout << a + b;
		break;
	case '-':cout << a - b;
		break;
	case '*':cout << a*b;
		break;
	case '/':cout << a / b;

	}
}

Compiler output:
a.cc:2:9: fatal error: char.h: No such file or directory
    2 | #include<char.h>
      |         ^~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
>using namespace std;
int main(){
	int a, b;
	char op ;
	cin >> a>>op>>b ;
	switch (op){
	case '+':cout << a + b;
		break;
	case '-':cout << a - b;
		break;
	case '*':cout << a*b;
		break;
	case '/':cout << a / b;

	}
}

Compiler output:
a.cc:2:1: error: expected unqualified-id before '>' token
    2 | >using namespace std;
      | ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> a>>op>>b ;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         case '+':cout << a + b;
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
>using namespace std;
int main(){
	int a, b;
	char op ;
	cin >> a>>op>>b ;
	switch (op){
	case '+':cout << a + b;
		break;
	case '-':cout << a - b;
		break;
	case '*':cout << a*b;
		break;
	case '/':cout << a / b;

	}
return 0;
}

Compiler output:
a.cc:2:1: error: expected unqualified-id before '>' token
    2 | >using namespace std;
      | ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> a>>op>>b ;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         case '+':cout << a + b;
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

// ConsoleApplication7.cpp : ??????????????? ??¢????????±????????§????????¨????????? ?????????????????????????????????
//

#include <stdio.h>
#include <string.h>

int main(int argc, char* argv[])
{
	int i;
	int a, b;
	int num;
	int aa[10000], bb[10000];
	char o;
	char op[10000];
	char temp[15];

	for (num = 0; 1; num++) {
		fgets(temp, sizeof(temp), stdin);
		sscanf(temp, "%d", &a);
		o = *(strchr(temp, ' ') + 1);
		if (o == '?') break; 
		sscanf_s(strrchr(temp, ' ') + 1, "%d", &b);
		aa[num] = a;
		bb[num] = b;
		op[num] = o;
	}
	for (i = 0; i < num; i++) {
		switch (op[i]) {
		case '+':
			printf("%d\n", aa[i] + bb[i]);
			break;
		case '-':
			printf("%d\n", aa[i] - bb[i]);
			break;
		case '*':
			printf("%d\n", aa[i] * bb[i]);
			break;
		case '/':
			printf("%d\n", aa[i] / bb[i]);
			break;
		default:
			break;
		}
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:22:17: error: 'sscanf_s' was not declared in this scope; did you mean 'sscanf'?
   22 |                 sscanf_s(strrchr(temp, ' ') + 1, "%d", &b);
      |                 ^~~~~~~~
      |                 sscanf
Language: C++

#include <bits/stdc++>
using namespace std;

int a,b;
char op;
int ans;

int main() {
  while(0) {
    xin >> a >> op >> b;
    if ( op == +) {
      ans = a + b;
    }else if ( op == -) {
      ans = a - b;
    }else if ( op == *) {
      ans = a * b;
    }else if ( op == /) {
      ans = a / b;
    }else if ( op == ?) {
      break;
    }
    cout << ans << endl;
  }
}

Compiler output:
a.cc:1:10: fatal error: bits/stdc++: No such file or directory
    1 | #include <bits/stdc++>
      |          ^~~~~~~~~~~~~
compilation terminated.