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

int main(void)
{
  int num;
  char num2;
  int num3;
  
  scanf("%d",&num);
  scanf("%c",&num2);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d",num1 + num3);
  }
  else{
    printf("%d",num1 - num3);
  }
  
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d",&num);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d",&num);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |     printf("%d",num1 + num3);
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:17: error: 'num1' undeclared (first use in this function); did you mean 'num3'?
   12 |     printf("%d",num1 + num3);
      |                 ^~~~
      |                 num3
main.c:12:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |     printf("%d",num1 - num3);
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>
 
int main(void)
{
  int num;
  char num2;
  int num3;
  
  scanf("%d",&num);
  scanf("%c",&num2);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d\n",num1 + num3);
  }
  else{
    printf("%d\n",num1 - num3);
  }
  
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:19: error: 'num1' undeclared (first use in this function); did you mean 'num3'?
   14 |     printf("%d\n",num1 + num3);
      |                   ^~~~
      |                   num3
main.c:14:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
 
int main(void)
{
  int num;
  char num2;
  int num3;
  
  scanf("%d",&num);
  scanf("%c",&num2);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d\n",num1 + num3);
  }
  else if(num2 == '-'){
    printf("%d\n",num1 - num3);
  }
  
  else {
    puts("");
  }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:19: error: 'num1' undeclared (first use in this function); did you mean 'num3'?
   14 |     printf("%d\n",num1 + num3);
      |                   ^~~~
      |                   num3
main.c:14:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
  int num;
  char num2;
  int num3;
  
  scanf("%d",&num);
  scanf("%c",&num2);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d\n",num1 + num3);
  }
  else if(num2 == '-'){
    printf("%d\n",num1 - num3);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:19: error: 'num1' undeclared (first use in this function); did you mean 'num3'?
   14 |     printf("%d\n",num1 + num3);
      |                   ^~~~
      |                   num3
main.c:14:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main(void)
{
  int num;
  char num2;
  int num3;
  
  scanf("%d",&num);
  scanf("%c",&num2);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d\n",num1 + num3);
  }
  else if(num2 == '-'){
    printf("%d\n",num1 - num3);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d",&num);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d",&num);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |     printf("%d\n",num1 + num3);
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:19: error: 'num1' undeclared (first use in this function); did you mean 'num3'?
   12 |     printf("%d\n",num1 + num3);
      |                   ^~~~
      |                   num3
main.c:12:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |     printf("%d\n",num1 - num3);
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
 
int main(void)
{
  int num;
  char num2;
  int num3;
  
  scanf("%d",&num);
  scanf("%c",&num2);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d\n",num1 + num3);
  }
  else if(num2 == '-'){
    printf("%d\n",num1 + num3);
  }
  
  return 0;
}
#include<stdio.h>
 
int main(void)
{
  int num;
  char num2;
  int num3;
  
  scanf("%d",&num);
  scanf("%c",&num2);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d\n",num1 + num3);
  }
  else if(num2 == '-'){
    printf("%d\n",num1 - num3);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:19: error: 'num1' undeclared (first use in this function); did you mean 'num3'?
   14 |     printf("%d\n",num1 + num3);
      |                   ^~~~
      |                   num3
main.c:14:19: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:24:5: error: redefinition of 'main'
   24 | int main(void)
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int(void)'
    3 | int main(void)
      |     ^~~~
main.c: In function 'main':
main.c:35:19: error: 'num1' undeclared (first use in this function); did you mean 'num3'?
   35 |     printf("%d\n",num1 + num3);
      |                   ^~~~
      |                   num3
Language: C

#include <stdio.h>
 
int main(void)
{
  int num;
  char num2;
  int num3;
  
  scanf("%d",&num);
  scanf("%c",&num2);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d\n",num1 + num3);
  }
  else if(num2 == '-'){
    printf("%d\n",num1 + num3);
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:19: error: 'num1' undeclared (first use in this function); did you mean 'num3'?
   14 |     printf("%d\n",num1 + num3);
      |                   ^~~~
      |                   num3
main.c:14:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
 
int main(void)
{
  int num;
  char num2;
  int num3;
  
  scanf("%d",&num);
  scanf("%c",&num2);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d\n",num1 + num3);
  }
  else if(num2 == '-'){
    printf("%d\n",num1 + num3);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:19: error: 'num1' undeclared (first use in this function); did you mean 'num3'?
   14 |     printf("%d\n",num1 + num3);
      |                   ^~~~
      |                   num3
main.c:14:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
 
int main(void)
{
  int num;
  char num2;
  int num3;
  
  scanf("%d",&num);
  scanf("%c",&num2);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d\n",num1 + num3);
  }
  
  if(num2 == '-'){
    printf("%d\n",num1 + num3);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:19: error: 'num1' undeclared (first use in this function); did you mean 'num3'?
   14 |     printf("%d\n",num1 + num3);
      |                   ^~~~
      |                   num3
main.c:14:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
 
int main(void)
{
  int num;
  char num2;
  int num3;
  int num4;
  
  scanf("%d",&num);
  scanf("%c",&num2);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d\n",num1 + num3 = num4);
  }
  
  if(num2 == '-'){
    printf("%d\n",num1 + num3 = num4);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:19: error: 'num1' undeclared (first use in this function); did you mean 'num4'?
   15 |     printf("%d\n",num1 + num3 = num4);
      |                   ^~~~
      |                   num4
main.c:15:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
 
int main(void)
{
  int num;
  char num2[10];
  int num3;
  int num4;
  
  scanf("%d",&num);
  scanf("%c",&num2);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d\n",num1 + num3 = num4);
  }
  
  if(num2 == '-'){
    printf("%d\n",num1 + num3 = num4);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:11: warning: comparison between pointer and integer
   14 |   if(num2 == '+'){
      |           ^~
main.c:15:19: error: 'num1' undeclared (first use in this function); did you mean 'num4'?
   15 |     printf("%d\n",num1 + num3 = num4);
      |                   ^~~~
      |                   num4
main.c:15:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:11: warning: comparison between pointer and integer
   18 |   if(num2 == '-'){
      |           ^~
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

#include<stdio.h>
 
int main(void)
{
  int num;
  char num2[10];
  int num3;
  int num4;
  
  scanf("%d",&num);
  scanf("%c",&num2);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d + %d = %d\n",num1,num3,num4);
  }
  
  if(num2 == '-'){
    printf("%d - %d = %d\n",num1,num3,num4);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:11: warning: comparison between pointer and integer
   14 |   if(num2 == '+'){
      |           ^~
main.c:15:29: error: 'num1' undeclared (first use in this function); did you mean 'num4'?
   15 |     printf("%d + %d = %d\n",num1,num3,num4);
      |                             ^~~~
      |                             num4
main.c:15:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:11: warning: comparison between pointer and integer
   18 |   if(num2 == '-'){
      |           ^~
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

#include<stdio.h>
 
int main(void)
{
  int num;
  char num2[10];
  int num3;
  int num4;
  
  scanf("%d",&num);
  fgets(num2,10,stdin);
  scanf("%d",&num3);
  
  if(num2 == '+'){
    printf("%d + %d = %d\n",num1,num3,num4);
  }
  
  if(num2 == '-'){
    printf("%d - %d = %d\n",num1,num3,num4);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:11: warning: comparison between pointer and integer
   14 |   if(num2 == '+'){
      |           ^~
main.c:15:29: error: 'num1' undeclared (first use in this function); did you mean 'num4'?
   15 |     printf("%d + %d = %d\n",num1,num3,num4);
      |                             ^~~~
      |                             num4
main.c:15:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:11: warning: comparison between pointer and integer
   18 |   if(num2 == '-'){
      |           ^~
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

#include<stdio.h>

int main(void)
{
  int num;
  char num2[10];
  int num3;
  int num4;
  
  scanf("%d",&num);
  fgets(num2,10,stdin);
  scanf("%d",&num3);
  
  if(num2 == "+"){
    printf("%d + %d = %d\n",num1,num3,num4);
  }
  
  if(num2 == "-"){
    printf("%d - %d = %d\n",num1,num3,num4);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:29: error: 'num1' undeclared (first use in this function); did you mean 'num4'?
   15 |     printf("%d + %d = %d\n",num1,num3,num4);
      |                             ^~~~
      |                             num4
main.c:15:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C++

using namespace std;
int main(){
string a;
int c,b;
cin>>b>>a>>c;
if(a=='-') cout<<b-c;
else cout<<b+c;
cout<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'string' was not declared in this scope
    3 | string a;
      | ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>b>>a>>c;
      | ^~~
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:5:9: error: 'a' was not declared in this scope
    5 | cin>>b>>a>>c;
      |         ^
a.cc:6:12: error: 'cout' was not declared in this scope
    6 | if(a=='-') cout<<b-c;
      |            ^~~~
a.cc:6:12: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:6: error: 'cout' was not declared in this scope
    7 | else cout<<b+c;
      |      ^~~~
a.cc:7:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:1: error: 'cout' was not declared in this scope
    8 | cout<<"\n";
      | ^~~~
a.cc:8:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

a = input()
left, op, right = a.split(" ")

if op == '-':
    print(int(left) - int(right))
else:
    print(int(left) + int(right))

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | a = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'left'
    2 | left, op, right = a.split(" ")
      | ^~~~
Language: C++

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

int main() {
  int A,B;
  char S;
  cin >> A >> S >> B;

  // ここにプログラムを追記
 if ( S == '+') {
 cout << A+B << endl;
}else if ( S == '-') {
cout << A-B << endl;
}else {
cout << error << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'error' was not declared in this scope; did you mean 'perror'?
   15 | cout << error << endl;
      |         ^~~~~
      |         perror
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define ll long long
#define rep(i,l,r) for(ll i=(l);i<(r);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p):(-(p)))
int cmp(const void *a, const void *b);
//your code here!

int main(void){
    char mm;
    ll A, B;
    scanf("%lld %c %lld", );
    if(mm=='+')printf("%lld\n", A+B);
    else printf("%lld\n", A-B);
    return 0;
}

int cmp(const void *a, const void *b){
    ll A=*(ll *)a, B=*(ll *)b;
    if(A==B)return 0;
    else return A>B ? 1:-1;//昇順ソート
}


Compiler output:
main.c: In function 'main':
main.c:18:27: error: expected expression before ')' token
   18 |     scanf("%lld %c %lld", );
      |                           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,c
    string op;
    cin>>a>>op>>c;
    if(op=="+"){
      cout<<a+c<<endl;
    }else{
      cout<<a-c<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'string'
    5 |     string op;
      |     ^~~~~~
a.cc:6:13: error: 'op' was not declared in this scope
    6 |     cin>>a>>op>>c;
      |             ^~
a.cc:6:17: error: 'c' was not declared in this scope
    6 |     cin>>a>>op>>c;
      |                 ^
Language: C++

#include <bts/stdc++.h>
using namespace std;
int main() {
  int A, B;
  string op;
  cin >> A >> op >> B;
  if (op == "+") {
    cout << A + B << endl;
  }
  else if (op == "-") {
    cout << A - B << endl;
  }
}

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

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

int main()
{
    int A, B;
    string op;
    cin >> A >> op >> C;
    if (op == "+") cout << A + B << endl;
    else cout << A - B << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'C' was not declared in this scope
    8 |     cin >> A >> op >> C;
      |                       ^
Language: C++

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

int main() {
  int A, B
  string S;
  cin >> A >> S >> B;
  if (S == "+"){
    cout << A+B<<endl;
  }
  else {
    cout << A-B << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'string'
    6 |   string S;
      |   ^~~~~~
a.cc:7:15: error: 'S' was not declared in this scope
    7 |   cin >> A >> S >> B;
      |               ^
a.cc:7:20: error: 'B' was not declared in this scope
    7 |   cin >> A >> S >> B;
      |                    ^
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      String op = sc.next();
      int b = sc.next();
      if(op.equals("-"))System.out.println(a-b);
      else System.out.println(a+b);
    }
}

Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to int
      int b = sc.next();
                     ^
1 error
Language: C++

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

int main()
{
  int A, B, ans;
  char C;
  cin >> A >> C >> B;
  if (C == '+')
  {
    ans = A + B
  }
  else
  {
    ans = A - B
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before '}' token
   11 |     ans = A + B
      |                ^
      |                ;
   12 |   }
      |   ~             
a.cc:15:16: error: expected ';' before '}' token
   15 |     ans = A - B
      |                ^
      |                ;
   16 |   }
      |   ~
Language: C++

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

int main() {
  int A,B,ans;
  char op;
  cin >> A >> op >> Bl;

  if(op == '+') {
    ans = A + B;
  }
  else if(op == '-') {
    ans = A - B;
  }

  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'Bl' was not declared in this scope; did you mean 'B'?
    7 |   cin >> A >> op >> Bl;
      |                     ^~
      |                     B
Language: C++

import java.util.*

fun main() {
    val scanner = Scanner(System.`in`)
    val n = scanner.nextInt()
    val list = mutableListOf<Int>()
    for (i in 0..n) {
        val a = scanner.nextInt()
        list.add(i, a)
    }

    val m = scanner.nextInt()
    for (i in 0 until m){
        val drink = scanner.nextInt()
        list[i] = scanner.nextInt()
        System.out.print(list.sum())
    }
}

Compiler output:
a.cc:4:34: error: stray '`' in program
    4 |     val scanner = Scanner(System.`in`)
      |                                  ^
a.cc:4:37: error: stray '`' in program
    4 |     val scanner = Scanner(System.`in`)
      |                                     ^
a.cc:7:15: error: too many decimal points in number
    7 |     for (i in 0..n) {
      |               ^~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

int main() {
  int a, b;
  char op;
  cin >> a >> op >> b;
  if (op == "+") {
    cout << a + b << endl;
  }
  else {
    cout << a - b << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (op == "+") {
      |       ~~~^~~~~~
Language: C++

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

int main() {
  int a, b;
  char op;
  cin >> a >> op >> c;
  if (op == "+") {
    cout << a + b << endl;
  }
  else {
    cout << a - b << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'c' was not declared in this scope
    7 |   cin >> a >> op >> c;
      |                     ^
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (op == "+") {
      |       ~~~^~~~~~
Language: Java

import lesson.topcoder.FriendsScore;

import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        String op = sc.next();
        int b = sc.nextInt();

        int ans = 0;
        if (op.equals("+")) {
            ans = a + b;
        } else {
            ans = a - b;
        }

        System.out.println(ans);
    }
}


Compiler output:
Main.java:1: error: package lesson.topcoder does not exist
import lesson.topcoder.FriendsScore;
                      ^
1 error
Language: C

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	char c;
	cin>>a>>c>>b;
	if(c=='+') cout<<a+b<<endl;
	else if(c=='-') cout<<a-b<<endl;
	else if(c=='*') cout<<a*b<<endl;
	else if(c=='/'){
		if(b==0) cout<<"Divided by zero!"<<endl;
		else cout<<a/b<<endl;
	} 
	else cout<<"Invalid operator!"<<endl;
	return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <string>

using namespace std;

class Cal {
public:
	Cal(int num1, int num2, int num3) {
		CaNum1 = num1;
		CaM = num2;
		CaNum2 = num3;
	}
	void Result();
private:
	int add() { return CaNum1 + CaNum2; };
	int sub() { return CaNum1 - CaNum2; };
	int CaNum1, CaNum2, CaM;
};

void Cal::Result() {
	switch (CaM)
	{
	case '+':
		printf("%d", add());
		break;
	case '-':
		printf("%d", sub());
		break;
	default:
		break;
	}
	return;
}

int takeNum(int num) {
	switch (num)
	{
	case '0':
		return 0;
	case '1':
		return 1;
	case '2':
		return 2;
	case '3':
		return 3;
	case '4':
		return 4;
	case '5':
		return 5;
	case '6':
		return 6;
	case '7':
		return 7;
	case '8':
		return 8;
	case '9':
		return 9;
	default:
		return 0;
		break;
	}
	return 0;
}

int main(void) {
	string s;
	int i = 0;
	bool boo = false;
	int buf[3] = { 0,'+',0 };
	int p = 0;
	int mar = 1;
	getline(cin, s);

	char* str = new char[s.length() + 1];

	strcpy(str, s.c_str());

	while (s[i] != '\0') {
		if ('0' <= str[i] && str[i] <= '9') {

			buf[p] = (buf[p] * 10) + takeNum(str[i]);
		}
		else if ('-' == str[i] || '+' == str[i]) {
			p++;
			buf[p] = (int)str[i];
			p++;
		}
		i++;
	}

	Cal myCal1{buf[0], buf[1], buf[2]};

	myCal1.Result();
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:76:9: error: 'strcpy' was not declared in this scope
   76 |         strcpy(str, s.c_str());
      |         ^~~~~~
a.cc:2:1: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  long x,y,z,a;
  cin >> x >> y >> z;
  if (y == "+") {
    a = x+z;
    cout << a << endl;
  } else if (y == "-") {
    a = x-z;
    cout << a << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (y == "+") {
      |       ~~^~~~~~
a.cc:9:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   } else if (y == "-") {
      |              ~~^~~~~~
Language: C++

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

int main(){
   int A, B;
   char op;
   cin A >> op >> B;

   if(op=='+') cout << A+B << endl;
   else cout << A-B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected ';' before 'A'
    7 |    cin A >> op >> B;
      |       ^~
      |       ;
Language: C++

#include<bits/std c++.h>
using namespace std.
long long a,b;
char s;
int main(){
scanf("%lld %c %lld",&a,&s,&b);
if(s=='+'){
printf("%lld\n",a+b);}
else{
printf("%lld\n" ,a-b);}
return 0;}

Compiler output:
a.cc:1:9: fatal error: bits/std c++.h: No such file or directory
    1 | #include<bits/std c++.h>
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

include<bits/stdc++.h>
using namespace std;
long long a,b;
char s;
int main()
{
    scanf("%lld %c %lld",&a,&s,&b);
    if(s=='+')
    {
        printf("%lld\n",a+b);
    }
    else
    {
         printf("%lld\n",a-b);
    }
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'scanf' was not declared in this scope
    7 |     scanf("%lld %c %lld",&a,&s,&b);
      |     ^~~~~
a.cc:10:9: error: 'printf' was not declared in this scope
   10 |         printf("%lld\n",a+b);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include<bits/stdc++.h>
a.cc:14:10: error: 'printf' was not declared in this scope
   14 |          printf("%lld\n",a-b);
      |          ^~~~~~
a.cc:14:10: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  char op;
  int a,b
  cin>>a>>op>>b;
 if(op=='+')
  cout << a+b <<endl;
  else cout << a-b <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>a>>op>>b;
      |   ^~~
a.cc:8:13: error: 'b' was not declared in this scope
    8 |   cout << a+b <<endl;
      |             ^
a.cc:9:18: error: 'b' was not declared in this scope
    9 |   else cout << a-b <<endl;
      |                  ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b;
char c ='z';
cin>>a,c,b;
if('z'=='+'){
cout<<a+b;
else
cout<<a-b;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: expected '}' before 'else'
    9 | else
      | ^~~~
a.cc:7:13: note: to match this '{'
    7 | if('z'=='+'){
      |             ^
a.cc: At global scope:
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b;
char c ='z';
cin>>a,b,c;
if('z'=='+'){
cout<<a+b;
else
cout<<a-b;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: expected '}' before 'else'
    9 | else
      | ^~~~
a.cc:7:13: note: to match this '{'
    7 | if('z'=='+'){
      |             ^
a.cc: At global scope:
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b;
char c ='z';
cin>>a,b,c;
if(c=='+')
cout<<a+b
else
cout<<a-b;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before 'else'
    8 | cout<<a+b
      |          ^
      |          ;
    9 | else
      | ~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b;
char ;
cin>>a,b,c;
if(c=='+'){
cout<<a+b
else
cout<<a-b;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: declaration does not declare anything [-fpermissive]
    5 | char ;
      | ^~~~
a.cc:6:10: error: 'c' was not declared in this scope
    6 | cin>>a,b,c;
      |          ^
a.cc:8:10: error: expected ';' before 'else'
    8 | cout<<a+b
      |          ^
      |          ;
    9 | else
      | ~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b;
char c ='';
cin>>a,b,c;
if(c=='+'){
cout<<a+b
else
cout<<a-b;
}
}

Compiler output:
a.cc:5:9: error: empty character constant
    5 | char c ='';
      |         ^~
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before 'else'
    8 | cout<<a+b
      |          ^
      |          ;
    9 | else
      | ~~~~
Language: C++

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

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

#include <iostream>
using namespace std;
int main(){
int a,b;
char c ='';
cin>>a,b,c;
switch (c):{
case '+':
cout<<a+b;
break;
case '-':
cout<<a-b;
break;
default;
}
}



Compiler output:
a.cc:5:9: error: empty character constant
    5 | char c ='';
      |         ^~
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before ':' token
    7 | switch (c):{
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
	long long a,b;
	char o;
	cin>>a>>o>>b;
	if(1<=a && b<=10^9){
		if(o=='+'){
		z=a+b;
		printf("%d",z);}
		else{
		if(o=='-')
		z=a-b;
		printf("%d",z);}
	}
	//return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'z' was not declared in this scope
   10 |                 z=a+b;
      |                 ^
a.cc:14:17: error: 'z' was not declared in this scope
   14 |                 z=a-b;
      |                 ^
a.cc:15:29: error: 'z' was not declared in this scope
   15 |                 printf("%d",z);}
      |                             ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
	long long a,b;
	char o;
	cin>>a>>o>>b;
	if(1<=a && b<=10^9){
		if(o=='+')
		z=a+b;
		printf("%d",z);
		else
		if(o=='-')
		z=a-b;
		printf("%d",z);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'z' was not declared in this scope
   10 |                 z=a+b;
      |                 ^
a.cc:11:29: error: 'z' was not declared in this scope
   11 |                 printf("%d",z);
      |                             ^
a.cc:12:17: error: expected '}' before 'else'
   12 |                 else
      |                 ^~~~
a.cc:8:28: note: to match this '{'
    8 |         if(1<=a && b<=10^9){
      |                            ^
a.cc:14:17: error: 'z' was not declared in this scope
   14 |                 z=a-b;
      |                 ^
a.cc:15:29: error: 'z' was not declared in this scope
   15 |                 printf("%d",z);
      |                             ^
a.cc: At global scope:
a.cc:17:9: error: expected unqualified-id before 'return'
   17 |         return 0;
      |         ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	
	
	
	long long a,b;
	char op;
	cin>>a>>op>>b;
	if(op='+'){
	
	
	cout<<a+b;
	else
	cout<<a-b;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected '}' before 'else'
   14 |         else
      |         ^~~~
a.cc:10:19: note: to match this '{'
   10 |         if(op='+'){
      |                   ^
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		String op = sc.next();
		int b = sc.nextInt();
		if (op.equals("+")) {
			System.out.println(a + b);
		} else {
			System.out.println(a - b);
		}
	}
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
long long a,b;
char op;
scanf("%lld%c%lld",&a &op &b);

if(op=='+'){
printf("%lld",a+b);
}
else if(op=='-'){
printf("%lld",a-b);
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: invalid operands of types 'long long int*' and 'char' to binary 'operator&'
    6 | scanf("%lld%c%lld",&a &op &b);
      |                    ~~ ^~~
      |                    |   |
      |                    |   char
      |                    long long int*
Language: C

#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
char op;
scanf("%d%d%c",&a,&b,&op);
if(op=='+')
	printf("%d",(a+b));
else if(op=='-')
	printf("%d",(a-b));
return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits\stdc++.h>
using namespace std;
int main(){
	int a;
	int b;
	char x;
	cin>>a>>x>>b;
//	scanf("%d%c%d",&a,&x,&b);
	switch(x){
		case '-':
		cout<<a-b;
		break;
		case '+':
		cout<<a+b;
		break;
		
	}
	
	return 0;
	
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,x;
char s;
cin>>a>>s>>b;
if(s==43)
 {
x=a+b;
cout<<x;}
else
 {x=a-b;
cout<<x;
}
}


Compiler output:
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |  {
      | ^
a.cc:13:1: error: extended character   is not valid in an identifier
   13 |  {x=a-b;
      | ^
a.cc: In function 'int main()':
a.cc:9:1: error: '\U000000a0' was not declared in this scope
    9 |  {
      | ^
a.cc:13:1: error: '\U000000a0' was not declared in this scope
   13 |  {x=a-b;
      | ^
Language: C++

#include<bits\stdc++.h>
using namespace std;
int main(){
	int a;
	int b;
	char x;
	cin>>a>>x>>b;
	if(x=='-')
	cout<<a-b;
	else if(x=='+')
	cout<<a+b;
	
	
	return 0;
	
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
char op;
scanf("%d%c%d",&a,&op,&b);
if(op=='+')
	printf("%d",(a+b));
else if(op=='-')
	printf("%d",(a-b));
return 0;

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits\stdc++.h>
using namespace std;
int main(){
	int a;
	int b;
	char x;
	cin>>a>>x>>b;
	switch(x){
		case '-':
		cout<<a-b;
		break;
		case '+':
		cout<<a+b;
		break;
	}
	
	return 0;
	
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
char op;
scanf("%d%c%d",&a,&op,&b);
if(op=='+')
	printf("%d",(a+b));
else if(op=='-')
	printf("%d",(a-b));
return 0;

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

#include<iostream>
 using namespace std;
 int main( ){     
 int a,b; 	
 char op;   
   cin>>a>>op>>b;
	      if(op=='+'){    
  	cout<<a+b; 	 } 	
 if(op=='-'){ 	 	
cout<<a-b; 	
 }       	
return 0; }‏

Compiler output:
a.cc:12:12: error: extended character ‏ is not valid in an identifier
   12 | return 0; }‏
      |            ^
a.cc:12:12: error: '\U0000200f' does not name a type
   12 | return 0; }‏
      |
Language: C++

#include<iostream>
 using namespace std;
 int main(){     
 int a; 	
 char op;
int b;  
   cin>>a>>op>>b;
	      if(op=='+'){    
  	cout<<a+b; 	 } 	
 if(op=='-'){ 	 	
cout<<a-b; 	
 }       	
return 0; }‏

Compiler output:
a.cc:13:12: error: extended character ‏ is not valid in an identifier
   13 | return 0; }‏
      |            ^
a.cc:13:12: error: '\U0000200f' does not name a type
   13 | return 0; }‏
      |
Language: C++

#include<iostream>
 using namespace std;
 int   main(){     
 int a,b; 	
 char op;   
   cin>>a>>op>>b;
	      if(op=='+'){    
  	cout<<a+b; 	 } 	
 if(op=='-'){ 	 	
cout<<a-b; 	
 }       	
}‏

Compiler output:
a.cc:12:2: error: extended character ‏ is not valid in an identifier
   12 | }‏
      |  ^
a.cc:12:2: error: '\U0000200f' does not name a type
   12 | }‏
      |
Language: C++

#include<bits\stdc++.h>
using namespace std;
int main(){
	int a;
	int b;
	char op;
	cin>>a>>op>>b;
	if(op=='-')
	cout<<a-b;
	else if(op=='+')
	cout<<a+b;
	
	
	return 0;
	
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,x;
char s;
cin>>a>>s>>b;
if(s==43)
 {
x=a+b;
cout<<x;}
else
 {x=a-b;
cout<<x;
}
}

Compiler output:
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |  {
      | ^
a.cc:13:1: error: extended character   is not valid in an identifier
   13 |  {x=a-b;
      | ^
a.cc: In function 'int main()':
a.cc:9:1: error: '\U000000a0' was not declared in this scope
    9 |  {
      | ^
a.cc:13:1: error: '\U000000a0' was not declared in this scope
   13 |  {x=a-b;
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,x;
char s;
cin>>a>>s>>b;
if(s=='+')
 {
x=a+b;
cout<<x;}
else
 {x=a-b;
cout<<x;
}
}

Compiler output:
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |  {
      | ^
a.cc:13:1: error: extended character   is not valid in an identifier
   13 |  {x=a-b;
      | ^
a.cc: In function 'int main()':
a.cc:9:1: error: '\U000000a0' was not declared in this scope
    9 |  {
      | ^
a.cc:13:1: error: '\U000000a0' was not declared in this scope
   13 |  {x=a-b;
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,r;
string op;
scanf("%d%s%d",&a ,&op, &b);
r=aopb;
printf("%d");}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'aopb' was not declared in this scope; did you mean 'op'?
    7 | r=aopb;
      |   ^~~~
      |   op
Language: C++

#include<iostream>
 using namespace std;
 int main(){     
 int a,b; 	
 char op;   
   cin>>a>>op>>b;
	      if(op=='+'){    
  	cout<<a+b; 	 } 	
 if(op=='-'){ 	 	
cout<<a-b; 	
 }       	
return 0; }‏

Compiler output:
a.cc:12:12: error: extended character ‏ is not valid in an identifier
   12 | return 0; }‏
      |            ^
a.cc:12:12: error: '\U0000200f' does not name a type
   12 | return 0; }‏
      |
Language: C++

#include<bits/stdc++.h>
 using namespace std;
 int main(){     
 int a,b; 	
 char op;      cin>>a>>op>>b;
	      if(op=='+'){    
  	cout<<a+b; 	 } 	
 if(op=='-'){ 	 	
cout<<a-b; 	
 }       	
return 0; }‏

Compiler output:
a.cc:11:12: error: extended character ‏ is not valid in an identifier
   11 | return 0; }‏
      |            ^
a.cc:11:12: error: '\U0000200f' does not name a type
   11 | return 0; }‏
      |
Language: C

#include <iostream>

using namespace std;

int main()
{

long long a,b,x ,i=0;
cin >> a>>b>>x;
i=(b/x)-(a-1)/x;
    if (a<=b&&a==0)

cout << i<<endl;
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
int A,B;
string op;
cin>>A>>op>>p;

if(op=="+")
{
cout<<A+B;
}
else{
cout<<A-B;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'p' was not declared in this scope; did you mean 'op'?
    6 | cin>>A>>op>>p;
      |             ^
      |             op
Language: C++

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

int main() { 
int a,b; 
char c; 
cin>>a>>b>>c;
switch(c){
case'+':
cout<<a+b;
break;
default;
cout<<a-b;
break;}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: expected ':' before ';' token
   12 | default;
      |        ^
      |        :
Language: C++

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

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

#Include<bits/stdc++.h> using namespace std; int main(){      int a,b; 	 char op;      cin>>a>>op>>b;	      if(op=='+'){      	cout<<a+b; 	 } 	 if(op=='-'){ 	 	cout<<a-b; 	 }       	return 0; }‏

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include<bits/stdc++.h> using namespace std; int main(){      int a,b;   char op;      cin>>a>>op>>b;         if(op=='+'){              cout<<a+b;       }       if(op=='-'){           cout<<a-b;       }              return 0; }‏
      |  ^~~~~~~
      |  include
a.cc:1:228: error: extended character ‏ is not valid in an identifier
    1 | #Include<bits/stdc++.h> using namespace std; int main(){      int a,b;   char op;      cin>>a>>op>>b;         if(op=='+'){              cout<<a+b;       }       if(op=='-'){           cout<<a-b;       }              return 0; }‏
      |                                                                                                                                                                                                                                    ^
Language: C++

#include<bits/stdc++.h>
 using namespace std; 
int main(){    
  int a,b; 	
 char op; 
     cin>>a>>op>>b;
	      if(op=='+'){    
  	cout<<a+b; 	 } 	
 if(op=='-'){ 	 	
cout<<a-b; 	
 }       	
return 0; 
}‏


Compiler output:
a.cc:13:2: error: extended character ‏ is not valid in an identifier
   13 | }‏
      |  ^
a.cc:13:2: error: '\U0000200f' does not name a type
   13 | }‏
      |
Language: C++

include<bits/stdc++.h>
 using namespace std;
 int main(){     
 int a,b; 	
 char op;      cin>>a>>op>>b;
	      if(op=='+'){    
  	cout<<a+b; 	 } 	
 if(op=='-'){ 	 	
cout<<a-b; 	
 }       	
return 0; }‏


Compiler output:
a.cc:11:12: error: extended character ‏ is not valid in an identifier
   11 | return 0; }‏
      |            ^
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:16: error: 'cin' was not declared in this scope
    5 |  char op;      cin>>a>>op>>b;
      |                ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<a+b;       }
      |         ^~~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<a-b;
      | ^~~~
a.cc: At global scope:
a.cc:11:12: error: '\U0000200f' does not name a type
   11 | return 0; }‏
      |
Language: C

#include<stdio.h>
#include<stdlib.h>
int main(){
  int s,b;
  char op;
  scanf("%d%c%d",a,op,b);
  if(op=='+'){
    printf("%d\n",a+b);
  }else if(op=='-'){
    printf("%d\n",a-b);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:18: error: 'a' undeclared (first use in this function)
    6 |   scanf("%d%c%d",a,op,b);
      |                  ^
main.c:6:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <iostream>
#include <stdio.h>
using namespace std; 
int main() {
	int x ,y;
	char c;
	cin >> x;
	cin >> c;
	cin >> y;
	switch (c) {
	case '+':
		cout << x + y;
				break;
	case '-':
		cout << x - y;
				break;


			
	}

}

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

#include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
int main(){
long long a,b,r;
char c;
scanf("%lld%lld%c",&a,&c,&b);
if (c=='+')
    cout <<a+b;
else if c=='-')
    cout <<a-b;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected '(' before 'c'
   10 | else if c=='-')
      |         ^
      |         (
Language: C++

#include<bits/stdc++.h>
using namespace std ;
int main (){
int A,B;
char op;
scanf("%d ",&A);
scanf("%c ",&op);
scanf("%d",&B);
if(op=='+')
printf("%d",A+B);
else
printf("%d",A-B);


Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: expected '}' at end of input
   12 | printf("%d",A-B);
      |                  ^
a.cc:3:12: note: to match this '{'
    3 | int main (){
      |            ^
Language: C

#include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,sum=0;
char x;
cin>>a>>x>>b;
if(x=='+'){
    sum=a+b;
} else if(x=='-'){
    sum=a-b;
}else{
    printf("wrong op");
}
printf("%d",sum);
    return 0;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int main(){
int A,B;
char x;
	cin>>A;
	cin>>s;
	cin>>B;
	if(x=='+'){
		cout<<A+B<<endl;
	}
	else{
	cout<<A-B<<endl;
}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 's' was not declared in this scope
    7 |         cin>>s;
      |              ^
Language: C++

#include <iostream>

using namespace std;

int main() {
    int A, op, B;
    cin >> A >> op >> B ;

    if(op == "+"){
        cout << (A + B) << endl;
    }
    else
    {
        cout << (A - B) << endl;
    }
    
    return 0;
}

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

#include <iostream>

using namespace std;

int main() {
    int A, op, B;
    cin >> A >> op >> B ;

    if (op == "+"){
        cout << (A + B) << endl;
    }
    else
    {
        cout << (A - B) << endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if (op == "+"){
      |         ~~~^~~~~~
Language: C++

#include <iostream>

using namespace std;

int main() {
    int A, op, B;
    cin >> A >> op >> B ;
    cout << (A op B) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ')' before 'op'
    8 |     cout << (A op B) << endl;
      |             ~ ^~~
      |               )
Language: C++

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

int main() {
int A ,O,B;
  cin>>A>>O>>B;
  cout <<AOB;
  

}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'AOB' was not declared in this scope
    7 |   cout <<AOB;
      |          ^~~
Language: C

#include <iostream>
using namespace std;

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


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