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

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

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

while(1){
if(x = +)
printf("%d",a + b);
if(x = -)
printf("%d",a - b);
if(x = *)
printf("%d",a * b);
if(x = /)
printf("%d",a / b);
if(x = ?)
break;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before ')' token
    9 | if(x = +)
      |         ^
a.cc:11:9: error: expected primary-expression before ')' token
   11 | if(x = -)
      |         ^
a.cc:13:9: error: expected primary-expression before ')' token
   13 | if(x = *)
      |         ^
a.cc:15:8: error: expected primary-expression before '/' token
   15 | if(x = /)
      |        ^
a.cc:15:9: error: expected primary-expression before ')' token
   15 | if(x = /)
      |         ^
a.cc:17:8: error: expected primary-expression before '?' token
   17 | if(x = ?)
      |        ^
a.cc:17:9: error: expected primary-expression before ')' token
   17 | if(x = ?)
      |         ^
a.cc:17:9: error: expected ':' before ')' token
   17 | if(x = ?)
      |         ^
      |         :
a.cc:17:9: error: expected primary-expression before ')' token
Language: C++

#include<stdio.h>

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'ope' was not declared in this scope; did you mean 'op'?
    8 |   while(ope!='?'){
      |         ^~~
      |         op
Language: C++

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

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

	while (true){

		cin >> a >> op >> b;

		if (op == '+')
		{
			x = a + b;
			cout << x << endl;
		}

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

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

		else if (op == '/')
		{
			x = a / b;
			cout << x << endl;
		}

		else if (op == '?')
		{
			break;
		}
	}
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<iostream>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:12:17: error: 'cin' was not declared in this scope
   12 |                 cin >> a >> op >> b;
      |                 ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<stdio.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:17:25: error: 'cout' was not declared in this scope
   17 |                         cout << x << endl;
      |                         ^~~~
a.cc:17:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:38: error: 'endl' was not declared in this scope
   17 |                         cout << x << endl;
      |                                      ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<stdio.h>
  +++ |+#include <ostream>
    3 | using namespace std;
a.cc:23:25: error: 'cout' was not declared in this scope
   23 |                         cout << x << endl;
      |                         ^~~~
a.cc:23:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:38: error: 'endl' was not declared in this scope
   23 |                         cout << x << endl;
      |                                      ^~~~
a.cc:23:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:29:25: error: 'cout' was not declared in this scope
   29 |                         cout << x << endl;
      |                         ^~~~
a.cc:29:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:29:38: error: 'endl' was not declared in this scope
   29 |                         cout << x << endl;
      |                                      ^~~~
a.cc:29:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:35:25: error: 'cout' was not declared in this scope
   35 |                         cout << x << endl;
      |                         ^~~~
a.cc:35:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:38: error: 'endl' was not declared in this scope
   35 |                         cout << x << endl;
      |                                      ^~~~
a.cc:35:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

Compiler output:
a.cc:8:31: warning: missing terminating " character
    8 |     else if(op == '+'){printf("%d\n,a+b);}
      |                               ^
a.cc:8:31: error: missing terminating " character
    8 |     else if(op == '+'){printf("%d\n,a+b);}
      |                               ^~~~~~~~~~~~
a.cc:9:31: warning: missing terminating " character
    9 |     else if(op == '-'){printf("%d\n,a-b);}
      |                               ^
a.cc:9:31: error: missing terminating " character
    9 |     else if(op == '-'){printf("%d\n,a-b);}
      |                               ^~~~~~~~~~~~
a.cc:10:31: warning: missing terminating " character
   10 |     else if(op == '*'){printf("%d\n,a*b);}
      |                               ^
a.cc:10:31: error: missing terminating " character
   10 |     else if(op == '*'){printf("%d\n,a*b);}
      |                               ^~~~~~~~~~~~
a.cc:11:31: warning: missing terminating " character
   11 |     else if(op == '/'){printf("%d\n,a/b);}
      |                               ^
a.cc:11:31: error: missing terminating " character
   11 |     else if(op == '/'){printf("%d\n,a/b);}
      |                               ^~~~~~~~~~~~
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:5: error: expected primary-expression before 'else'
    9 |     else if(op == '-'){printf("%d\n,a-b);}
      |     ^~~~
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:8:23: note: to match this '{'
    8 |     else if(op == '+'){printf("%d\n,a+b);}
      |                       ^
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:5:10: note: to match this '{'
    5 |  while(1){
      |          ^
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:2:7: note: to match this '{'
    2 | main(){
      |       ^
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;

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

Compiler output:
a.cc:16:18: error: empty character constant
   16 |     }else if(op==''){
      |                  ^~
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:22:12: error: expected '}' at end of input
   22 |   return 0;
      |            ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected unqualified-id before '==' token
    8 |     if(char == '+' || '-' || '*' || '/'){
      |             ^~
a.cc:9:16: error: expected unqualified-id before '==' token
    9 |        if(char == '+'){
      |                ^~
a.cc:11:20: error: expected unqualified-id before '==' token
   11 |      }else if(char == '-'){
      |                    ^~
a.cc:13:20: error: expected unqualified-id before '==' token
   13 |      }else if(char == '*'){
      |                    ^~
a.cc:15:20: error: expected unqualified-id before '==' token
   15 |      }else if(char == '/'){
      |                    ^~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a, b;
    char op;
    while(){
        cin >> a >> op >> b;
        if(op == '?') break;
        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;
       }
     return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before ')' token
    7 |     while(){
      |           ^
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main()
{
    while (true) {
        int a, b;
        string op;
        cin >> a >> op >> b;
        else if (op == "+") {
            cout << a + b << "\n";
        }
        else if (op == "-") {
            cout << a - b << "\n";
        }
        else if (op == "*") {
            cout << a * b << "\n";
        }
        else if (op == "/") {
            cout << a / b << "\n";
        }
        else break;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'else' without a previous 'if'
   11 |         else if (op == "+") {
      |         ^~~~
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:49: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |                 if(op=='+')std::cout << a + b <<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)
      |     ^~~~
a.cc:13:54: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |                 else if(op=='-')std::cout << a - b <<endl;
      |                                                      ^~~~
      |                                                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:54: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |                 else if(op=='*')std::cout << a * b <<endl;
      |                                                      ^~~~
      |                                                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:15:60: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |                 else if(op=='/'&&b!=0)std::cout << a / b <<endl;
      |                                                            ^~~~
      |                                                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]

if op == '?':
break
elif op =='+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b)

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while True:
      | ^~~~~
Language: C++

#include <iostream>

int main(){
int a,b,op;
std::cin>>a>>op>>b;

while(1){
if ( op == '+' ){
  std::cout<< a+b << std::endl;
} else if ( op == '-' ){
  std::cout<< a-b << std::endl;
} else if ( op == '*' ){
  std::cout<< a*b << std::endl;
} else if ( op == '/' ){
  std::cout<< a/b << std::endl;
} else {
???break;
}
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:1: error: expected primary-expression before '?' token
   17 | ???break;
      | ^
a.cc:17:2: error: expected primary-expression before '?' token
   17 | ???break;
      |  ^
a.cc:17:3: error: expected primary-expression before '?' token
   17 | ???break;
      |   ^
a.cc:17:4: error: expected primary-expression before 'break'
   17 | ???break;
      |    ^~~~~
a.cc:17:4: error: expected ':' before 'break'
   17 | ???break;
      |    ^~~~~
      |    :
a.cc:17:4: error: expected primary-expression before 'break'
   17 | ???break;
      |    ^~~~~
a.cc:17:4: error: expected ':' before 'break'
   17 | ???break;
      |    ^~~~~
      |    :
a.cc:17:4: error: expected primary-expression before 'break'
   17 | ???break;
      |    ^~~~~
a.cc:17:4: error: expected ':' before 'break'
   17 | ???break;
      |    ^~~~~
      |    :
a.cc:17:4: error: expected primary-expression before 'break'
   17 | ???break;
      |    ^~~~~
Language: C++

#include <iostream>

int main(){
int a,b,op;
std::cin>>a>>op>>b;

while(1){
if ( op == '+' ){
  std::cout<< a+b << std::endl;
 } else if ( op == '-' ){
  std::cout<< a-b << std::endl;
 } else if ( op == '*' ){
  std::cout<< a*b << std::endl;
 } else if ( op == '/' ){
  std::cout<< a/b << std::endl;
 } else {
???break;
 }
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:1: error: expected primary-expression before '?' token
   17 | ???break;
      | ^
a.cc:17:2: error: expected primary-expression before '?' token
   17 | ???break;
      |  ^
a.cc:17:3: error: expected primary-expression before '?' token
   17 | ???break;
      |   ^
a.cc:17:4: error: expected primary-expression before 'break'
   17 | ???break;
      |    ^~~~~
a.cc:17:4: error: expected ':' before 'break'
   17 | ???break;
      |    ^~~~~
      |    :
a.cc:17:4: error: expected primary-expression before 'break'
   17 | ???break;
      |    ^~~~~
a.cc:17:4: error: expected ':' before 'break'
   17 | ???break;
      |    ^~~~~
      |    :
a.cc:17:4: error: expected primary-expression before 'break'
   17 | ???break;
      |    ^~~~~
a.cc:17:4: error: expected ':' before 'break'
   17 | ???break;
      |    ^~~~~
      |    :
a.cc:17:4: error: expected primary-expression before 'break'
   17 | ???break;
      |    ^~~~~
Language: C++

#include <iostream>

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:1: error: expected primary-expression before '?' token
   17 | ???break;
      | ^
a.cc:17:2: error: expected primary-expression before '?' token
   17 | ???break;
      |  ^
a.cc:17:3: error: expected primary-expression before '?' token
   17 | ???break;
      |   ^
a.cc:17:4: error: expected primary-expression before 'break'
   17 | ???break;
      |    ^~~~~
a.cc:17:4: error: expected ':' before 'break'
   17 | ???break;
      |    ^~~~~
      |    :
a.cc:17:4: error: expected primary-expression before 'break'
   17 | ???break;
      |    ^~~~~
a.cc:17:4: error: expected ':' before 'break'
   17 | ???break;
      |    ^~~~~
      |    :
a.cc:17:4: error: expected primary-expression before 'break'
   17 | ???break;
      |    ^~~~~
a.cc:17:4: error: expected ':' before 'break'
   17 | ???break;
      |    ^~~~~
      |    :
a.cc:17:4: error: expected primary-expression before 'break'
   17 | ???break;
      |    ^~~~~
Language: C++

#include <iostream>

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:1: error: expected primary-expression before '?' token
   16 | ???break;
      | ^
a.cc:16:2: error: expected primary-expression before '?' token
   16 | ???break;
      |  ^
a.cc:16:3: error: expected primary-expression before '?' token
   16 | ???break;
      |   ^
a.cc:16:4: error: expected primary-expression before 'break'
   16 | ???break;
      |    ^~~~~
a.cc:16:4: error: expected ':' before 'break'
   16 | ???break;
      |    ^~~~~
      |    :
a.cc:16:4: error: expected primary-expression before 'break'
   16 | ???break;
      |    ^~~~~
a.cc:16:4: error: expected ':' before 'break'
   16 | ???break;
      |    ^~~~~
      |    :
a.cc:16:4: error: expected primary-expression before 'break'
   16 | ???break;
      |    ^~~~~
a.cc:16:4: error: expected ':' before 'break'
   16 | ???break;
      |    ^~~~~
      |    :
a.cc:16:4: error: expected primary-expression before 'break'
   16 | ???break;
      |    ^~~~~
Language: C++

#import<iostream>
using namespace std;

int main() {
  while (true) {
  int a, b;
  char op;
  cin >> a >> op >> b;

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

  int answer = 0;
  if (op == '+') {
    answer = a + b;
  } else if (op == '-') {
    answer = a - b;
  } else if (op == '*') {
    answer = a * b;
  ] else if (op == '/') {
    answer =  a /b;
  }

  cout << answer << endl;
  }
  return 0;
}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
a.cc: In function 'int main()':
a.cc:19:3: error: expected primary-expression before ']' token
   19 |   ] else if (op == '/') {
      |   ^
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
#include <string>
using namespace std;
#include<cstdio>
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;
		}
	if(op=="?"){
		break;
	}
	}
	return 0;
	}
#include<iostream>
#include <string>
using namespace std;
#include<cstdio>
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;
		}
	if(op=="?"){
		break;
	}
	}
	return 0;
	}

Compiler output:
a.cc:32:5: error: redefinition of 'int main()'
   32 | int main(){
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main(){
      |     ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){

int x,y;
string str;

while(true){
cin >> x >> y >> str;

if(str.equals("?"))break;

if(str.equals("+"))
cout << x + y;
if(str.equals("-"))
cout << x - y;
if(str.equals("*"))
cout << x * y;
if(str.equals("/"))

}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   14 | if(str.equals("?"))break;
      |        ^~~~~~
a.cc:16:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   16 | if(str.equals("+"))
      |        ^~~~~~
a.cc:18:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   18 | if(str.equals("-"))
      |        ^~~~~~
a.cc:20:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   20 | if(str.equals("*"))
      |        ^~~~~~
a.cc:22:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   22 | if(str.equals("/"))
      |        ^~~~~~
a.cc:24:1: error: expected primary-expression before '}' token
   24 | }
      | ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){

int x,y;
string str;

while(true){
cin >> x >> y;
cin >> str;

if(str.equals("?"))break;

if(str.equals("+"))
cout << x + y;
if(str.equals("-"))
cout << x - y;
if(str.equals("*"))
cout << x * y;
if(str.equals("/"))
cout << x / y;
}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   15 | if(str.equals("?"))break;
      |        ^~~~~~
a.cc:17:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   17 | if(str.equals("+"))
      |        ^~~~~~
a.cc:19:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   19 | if(str.equals("-"))
      |        ^~~~~~
a.cc:21:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   21 | if(str.equals("*"))
      |        ^~~~~~
a.cc:23:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   23 | if(str.equals("/"))
      |        ^~~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){

int x,y;
string str;

while(true){
cin >> x >> y;
cin >> str;

if(str.equals("?"))break;

if(str.equals("+"))
cout << x + y << endl;
if(str.equals("-"))
cout << x - y << endl;
if(str.equals("*"))
cout << x * y << endl;
if(str.equals("/"))
cout << x / y << endl;
}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   15 | if(str.equals("?"))break;
      |        ^~~~~~
a.cc:17:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   17 | if(str.equals("+"))
      |        ^~~~~~
a.cc:19:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   19 | if(str.equals("-"))
      |        ^~~~~~
a.cc:21:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   21 | if(str.equals("*"))
      |        ^~~~~~
a.cc:23:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
   23 | if(str.equals("/"))
      |        ^~~~~~
Language: C++

#include <iostream>
using namespace std;
   int a,b;
   int main(){
  cin>>a>>b;
   cout() 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) ()'
    6 |    cout()
      |    ~~~~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
    6 |    cout<<"???"a+b<<endl;
      |          ^~~~~~
a.cc:7:10: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
    7 |    cout<<"???"a-b<<endl;
      |          ^~~~~~
a.cc:8:10: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
    8 |    cout<<"???"a*b<<endl;
      |          ^~~~~~
a.cc:9:10: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
    9 |    cout<<"???"a/b<<endl;
      |          ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'i' was not declared in this scope
    6 |  op=i
      |     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: expected primary-expression before '?' token
    6 |  ???int op=i;
      |  ^
a.cc:6:3: error: expected primary-expression before '?' token
    6 |  ???int op=i;
      |   ^
a.cc:6:4: error: expected primary-expression before '?' token
    6 |  ???int op=i;
      |    ^
a.cc:6:5: error: expected primary-expression before 'int'
    6 |  ???int op=i;
      |     ^~~
a.cc:6:5: error: expected ':' before 'int'
    6 |  ???int op=i;
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'int'
    6 |  ???int op=i;
      |     ^~~
a.cc:6:5: error: expected ':' before 'int'
    6 |  ???int op=i;
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'int'
    6 |  ???int op=i;
      |     ^~~
a.cc:6:5: error: expected ':' before 'int'
    6 |  ???int op=i;
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'int'
    6 |  ???int op=i;
      |     ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: expected primary-expression before '?' token
    6 |  ???int op==i;
      |  ^
a.cc:6:3: error: expected primary-expression before '?' token
    6 |  ???int op==i;
      |   ^
a.cc:6:4: error: expected primary-expression before '?' token
    6 |  ???int op==i;
      |    ^
a.cc:6:5: error: expected primary-expression before 'int'
    6 |  ???int op==i;
      |     ^~~
a.cc:6:5: error: expected ':' before 'int'
    6 |  ???int op==i;
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'int'
    6 |  ???int op==i;
      |     ^~~
a.cc:6:5: error: expected ':' before 'int'
    6 |  ???int op==i;
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'int'
    6 |  ???int op==i;
      |     ^~~
a.cc:6:5: error: expected ':' before 'int'
    6 |  ???int op==i;
      |     ^~~
      |     :
a.cc:6:5: error: expected primary-expression before 'int'
    6 |  ???int op==i;
      |     ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before ')' token
    6 |   for(i=op; i++)???
      |                ^
      |                ;
a.cc:6:17: error: expected primary-expression before '?' token
    6 |   for(i=op; i++)???
      |                 ^
a.cc:6:18: error: expected primary-expression before '?' token
    6 |   for(i=op; i++)???
      |                  ^
a.cc:6:19: error: expected primary-expression before '?' token
    6 |   for(i=op; i++)???
      |                   ^
a.cc:7:24: error: expected ':' before ';' token
    7 |    cout<<"i"<<a+b<<endl;
      |                        ^
      |                        :
a.cc:7:24: error: expected primary-expression before ';' token
a.cc:7:24: error: expected ':' before ';' token
    7 |    cout<<"i"<<a+b<<endl;
      |                        ^
      |                        :
a.cc:7:24: error: expected primary-expression before ';' token
a.cc:7:24: error: expected ':' before ';' token
    7 |    cout<<"i"<<a+b<<endl;
      |                        ^
      |                        :
a.cc:7:24: error: expected primary-expression before ';' token
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected primary-expression before '?' token
    6 |     i==op???
      |           ^
a.cc:6:12: error: expected primary-expression before '?' token
    6 |     i==op???
      |            ^
a.cc:7:24: error: expected ':' before ';' token
    7 |    cout<<"i"<<a+b<<endl;
      |                        ^
      |                        :
a.cc:7:24: error: expected primary-expression before ';' token
a.cc:7:24: error: expected ':' before ';' token
    7 |    cout<<"i"<<a+b<<endl;
      |                        ^
      |                        :
a.cc:7:24: error: expected primary-expression before ';' token
a.cc:7:24: error: expected ':' before ';' token
    7 |    cout<<"i"<<a+b<<endl;
      |                        ^
      |                        :
a.cc:7:24: error: expected primary-expression before ';' token
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected primary-expression before '?' token
    6 |     i==op;???
      |           ^
a.cc:6:12: error: expected primary-expression before '?' token
    6 |     i==op;???
      |            ^
a.cc:6:13: error: expected primary-expression before '?' token
    6 |     i==op;???
      |             ^
a.cc:7:24: error: expected ':' before ';' token
    7 |    cout<<"i"<<a+b<<endl;
      |                        ^
      |                        :
a.cc:7:24: error: expected primary-expression before ';' token
a.cc:7:24: error: expected ':' before ';' token
    7 |    cout<<"i"<<a+b<<endl;
      |                        ^
      |                        :
a.cc:7:24: error: expected primary-expression before ';' token
a.cc:7:24: error: expected ':' before ';' token
    7 |    cout<<"i"<<a+b<<endl;
      |                        ^
      |                        :
a.cc:7:24: error: expected primary-expression before ';' token
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before '==' token
    6 |    int i==op;
      |         ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected primary-expression before '?' token
    6 |   ???cout<<"i==op"<<endl;
      |   ^
a.cc:6:4: error: expected primary-expression before '?' token
    6 |   ???cout<<"i==op"<<endl;
      |    ^
a.cc:6:5: error: expected primary-expression before '?' token
    6 |   ???cout<<"i==op"<<endl;
      |     ^
a.cc:6:25: error: expected ':' before ';' token
    6 |   ???cout<<"i==op"<<endl;
      |                         ^
      |                         :
a.cc:6:25: error: expected primary-expression before ';' token
a.cc:6:25: error: expected ':' before ';' token
    6 |   ???cout<<"i==op"<<endl;
      |                         ^
      |                         :
a.cc:6:25: error: expected primary-expression before ';' token
a.cc:6:25: error: expected ':' before ';' token
    6 |   ???cout<<"i==op"<<endl;
      |                         ^
      |                         :
a.cc:6:25: error: expected primary-expression before ';' token
Language: C++

#include <iostream>
using namespace std;

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

  while(1){
    cin >> a >> op >> b;

    if(op == '?')???break;
    
    switch (op) {
      case '+' : value = a + b; break;
      case '-' : value = a - b; break;
      case '*' : value = a * b; break;
      case '/' : value = a / b; break;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: storage size of 'op' isn't known
    6 |   char op[];
      |        ^~
a.cc:11:18: error: expected primary-expression before '?' token
   11 |     if(op == '?')???break;
      |                  ^
a.cc:11:19: error: expected primary-expression before '?' token
   11 |     if(op == '?')???break;
      |                   ^
a.cc:11:20: error: expected primary-expression before '?' token
   11 |     if(op == '?')???break;
      |                    ^
a.cc:11:21: error: expected primary-expression before 'break'
   11 |     if(op == '?')???break;
      |                     ^~~~~
a.cc:11:21: error: expected ':' before 'break'
   11 |     if(op == '?')???break;
      |                     ^~~~~
      |                     :
a.cc:11:21: error: expected primary-expression before 'break'
   11 |     if(op == '?')???break;
      |                     ^~~~~
a.cc:11:21: error: expected ':' before 'break'
   11 |     if(op == '?')???break;
      |                     ^~~~~
      |                     :
a.cc:11:21: error: expected primary-expression before 'break'
   11 |     if(op == '?')???break;
      |                     ^~~~~
a.cc:11:21: error: expected ':' before 'break'
   11 |     if(op == '?')???break;
      |                     ^~~~~
      |                     :
a.cc:11:21: error: expected primary-expression before 'break'
   11 |     if(op == '?')???break;
      |                     ^~~~~
Language: C++

#include <iostream>
using namespace std;

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

  while(1){
    cin >> a >> op >> b;
    
    if(op == '?') break;
    
    switch (op) {
      case '+' : value = a + b; break;
      case '-' : value = a - b; break;
      case '*' : value = a * b; break;
      case '/' : value = a / b; break;
    }

    cout << value << endl;
  }
}

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

#include <iostream>
#include <vector>
#include <iomanip>
#include <cmath>
using namespace std;


int main(void){

	int a,b;
	char 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 << (int)(a/b) << endl;
		}
		else if( op == "?" ){
			break;
		}
	}
	return 0;
}

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

#include<iostream>
#include<string>
using namespace std;

int main(){
int a[100000],b[100000],c;
c=0;
char op[100000];
for(int i=1;i<100000;i++){
cin>>a[i]>>op[i]>>b[i];
c++;
if(op=='?'){
goto aa;
}
}
aa:;
for(int i=1;i<c;i++){
if(op[i]='+'){
cout<<a+b<<endl;
}
if(op[i]='-'){
cout<<a-b<<endl;
}
if(op[i]='*'){
cout<<a*b<<endl;
}
if(op[i]='/'){
cout<<a/b<<endl;
}
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 | if(op=='?'){
      |    ~~^~~~~
a.cc:19:8: error: invalid operands of types 'int [100000]' and 'int [100000]' to binary 'operator+'
   19 | cout<<a+b<<endl;
      |       ~^~
      |       | |
      |       | int [100000]
      |       int [100000]
a.cc:25:8: error: invalid operands of types 'int [100000]' and 'int [100000]' to binary 'operator*'
   25 | cout<<a*b<<endl;
      |       ~^~
      |       | |
      |       | int [100000]
      |       int [100000]
a.cc:28:8: error: invalid operands of types 'int [100000]' and 'int [100000]' to binary 'operator/'
   28 | cout<<a/b<<endl;
      |       ~^~
      |       | |
      |       | int [100000]
      |       int [100000]
Language: C++

#include<iostream>
#include<string>
using namespace std;

int main(){
int a[100000],b[100000],c;
c=0;
char op[100000];
for(int i=1;i<100000;i++){
cin>>a[i]>>op[i]>>b[i];
c++;
if(op=='?'){
goto aa;
}
}
aa:;
for(int i=1;i<c;i++){
if(op[i]='+'){
cout<<a[i]+b[i]<<endl;
}
if(op[i]='-'){
cout<<a[i]-b[i]<<endl;
}
if(op[i]='*'){
cout<<a[i]*b[i]<<endl;
}
if(op[i]='/'){
cout<<a[i]/b[i]<<endl;
}
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 | if(op=='?'){
      |    ~~^~~~~
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{
        break;
    }
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 | if(op=='+')
      |    ~~^~~~~
a.cc:13:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 | else if(op=='-')
      |         ~~^~~~~
a.cc:17:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 | else if(op=='*')
      |         ~~^~~~~
a.cc:21:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 | else if(op=='/')
      |         ~~^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 | if(op=='+')
      |    ~~^~~~~
a.cc:13:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 | else if(op=='-')
      |         ~~^~~~~
a.cc:17:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 | else if(op=='*')
      |         ~~^~~~~
a.cc:21:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 | else if(op=='/')
      |         ~~^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:30:17: error: 'd' was not declared in this scope
   30 | printf("%lf\n",&d);
      |                 ^
Language: C++

#include<iostream>
using namespace std;
int main(){
	int a,b,c;
	char op;
	cin>>a>>op>>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: In function 'int main()':
a.cc:11:21: error: break statement not within loop or switch
   11 |         if(op=='?') break;
      |                     ^~~~~
Language: C++

using namespace std;
int main(){
	double a,b,c;
	char op;
	while(1){
	cin>>a>>op>>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*1.0; cout<<c<<endl;}
	if(op=='?') break;
	}
	return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>a>>op>>b;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:29: error: 'cout' was not declared in this scope
    7 |         if(op=='+') {c=a+b; cout<<c<<endl;}
      |                             ^~~~
a.cc:7:29: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:38: error: 'endl' was not declared in this scope
    7 |         if(op=='+') {c=a+b; cout<<c<<endl;}
      |                                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:8:29: error: 'cout' was not declared in this scope
    8 |         if(op=='-') {c=a-b; cout<<c<<endl;}
      |                             ^~~~
a.cc:8:29: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:38: error: 'endl' was not declared in this scope
    8 |         if(op=='-') {c=a-b; cout<<c<<endl;}
      |                                      ^~~~
a.cc:8:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:9:29: error: 'cout' was not declared in this scope
    9 |         if(op=='*') {c=a*b; cout<<c<<endl;}
      |                             ^~~~
a.cc:9:29: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:38: error: 'endl' was not declared in this scope
    9 |         if(op=='*') {c=a*b; cout<<c<<endl;}
      |                                      ^~~~
a.cc:9:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:10:33: error: 'cout' was not declared in this scope
   10 |         if(op=='/') {c=a/b*1.0; cout<<c<<endl;}
      |                                 ^~~~
a.cc:10:33: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:42: error: 'endl' was not declared in this scope
   10 |         if(op=='/') {c=a/b*1.0; cout<<c<<endl;}
      |                                          ^~~~
a.cc:10:42: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
using namespace std;

int main(void) {
    int a, b;
    char op;
    
    while (1) {
        cin >> a >> op >> b;
        
        if (op == "?") {
            break;
        }
        
        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;}
        
        
    }
    return 0;
}

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

#include<cstdio>
#include<iostream>
using namespace std;

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

 cin >> a >> op >> b;

 switch(op){
  case '+':
   cout << a + b << endl ;
   break;
  case '-':
   cout << a-b << endl;
   break;
  case '*':
   cout << a*b << endl;
   break;
  case '/':
   cout << a/b << endl;
   break;
  default:
   break;
 }

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: expected initializer before 'char'
    7 |  char op;
      |  ^~~~
a.cc:9:14: error: 'op' was not declared in this scope
    9 |  cin >> a >> op >> b;
      |              ^~
a.cc:9:20: error: 'b' was not declared in this scope
    9 |  cin >> a >> op >> b;
      |                    ^
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;

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

 cin >> a >> op >> b;

 switch(op){
  case '+':
   cout << a + b << endl ;
   break;
  case '-':
   cout << a-b << endl;
   break;
  case '*':
   cout << a*b << endl;
   break;
  case '/':
   cout << a/b << endl;
   break;
  default:
   break;
 }

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: 'cher' was not declared in this scope; did you mean 'char'?
    7 |  cher op;
      |  ^~~~
      |  char
a.cc:9:14: error: 'op' was not declared in this scope
    9 |  cin >> a >> op >> b;
      |              ^~
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;

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

 cin >> a >> op >> b;

 switch(op){
  case '+':
   cout << a + b << endl ;
   break;
  case '-':
   cout << a-b << endl;
   break;
  case '*':
   cout << a*b << endl;
   break;
  case '/':
   cout << a/b << endl;
   break;
  case '?':
   berak;
  default:
   break;
 }

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:4: error: 'berak' was not declared in this scope
   25 |    berak;
      |    ^~~~~