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

import java.io.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
	    int b = sc.nextInt();
		int c=0;
		if((a+b)==15)
			c=1;
		else if((a*b)==15)
			c=1;
		else
			c=3;
		
		switch(c){
			case 1:
					System.out.print("+");	
					break;
			case 2:
					System.out.print("*");	
					break;
			case 3:
					System.out.print("x");	
					break;
		}
	}
}

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

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
	    int b = sc.nextInt();
		int c=0;
		if((a+b)==15)
			c=1;
		else if((a*b)==15)
			c=1;
		else
			c=3;
		
		switch(c){
			case 1:
					System.out.print("+");	
					break;
			case 2:
					System.out.print("*");	
					break;
			case 3:
					System.out.print("x");	
					break;
		}
	}
}

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++

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
	    int b = sc.nextInt();
		int c=0;
		if((a+b)==15)
			c=1;
		else if((a*b)==15)
			c=1;
		else
			c=3;
		
		switch(c){
			case 1:
					System.out.print("+");	
					break;
			case 2:
					System.out.print("*");	
					break;
			case 3:
					System.out.print("x");	
					break;
		}
	}
}

Compiler output:
a.cc:2:15: error: expected ':' before 'static'
    2 |         public static void main(String[] args){
      |               ^~~~~~~
      |               :
a.cc:2:33: error: 'String' has not been declared
    2 |         public static void main(String[] args){
      |                                 ^~~~~~
a.cc:2:42: error: expected ',' or '...' before 'args'
    2 |         public static void main(String[] args){
      |                                          ^~~~
a.cc:26:2: error: expected ';' after class definition
   26 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:3:17: error: 'Scanner' was not declared in this scope
    3 |                 Scanner sc = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:4:25: error: 'sc' was not declared in this scope
    4 |                 int a = sc.nextInt();
      |                         ^~
a.cc:16:41: error: 'System' was not declared in this scope
   16 |                                         System.out.print("+");
      |                                         ^~~~~~
Language: C++

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
	    int b = sc.nextInt();
		int c=0;
		if((a+b)==15)
			c=1;
		else if((a*b)==15)
			c=1;
		else
			c=3;
		
		switch(c){
			case 1:
					System.out.print("+");	
					break;
			case 2:
					System.out.print("*");	
					break;
			case 3:
					System.out.print("x");	
					break;
		}
	}
}

Compiler output:
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'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: Java

import java.util.Scanner;

public class atcorder1 {
	public static void main(String[] args){
    int a = new java.util.Scanner(System.in).nextInt();
    int b = new java.util.Scanner(System.in).nextInt();

    if (a + b == 15) {
    	System.out.println("+");
	}
    else if(a * b == 15){
    	System.out.println("*");
    }
    else{
    	System.out.println("x");
    }
	}
}

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

public class atcorder1 {
	public static void main(String[] args){
    int a = new java.util.Scanner(System.in).nextInt();
    int b = new java.util.Scanner(System.in).nextInt();

    if (a + b == 15) {
    	System.out.println("+");
	}
    else if(a * b == 15){
    	System.out.println("*");
    }
    else{
    	System.out.println("x");
    }
	}
}

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

package atcorder;

public class atcorder1 {
	public static void main(String[] args){
    int a = new java.util.Scanner(System.in).nextInt();
    int b = new java.util.Scanner(System.in).nextInt();

    if (a + b == 15) {
    	System.out.println("+");
	}
    else if(a * b == 15){
    	System.out.println("*");
    }
    else{
    	System.out.println("x");
    }
	}
}

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

package atcorder;

public class atcorder1 {
	public static void main(String[] args){
    int a = new java.util.Scanner(System.in).nextInt();
    int b = new java.util.Scanner(System.in).nextInt();

    System.out.println("a+b=15 であれば + を、 a×b=15 であれば * を、 どちらでもなければ x を出力してください。");
    String input = new java.util.Scanner(System.in).nextLine();

    int answer1 = a + b ;
    int answer2 = a * b ;

    if (input == "+") {
    	System.out.println("a + b = " + answer1 + "です。");
	}
    if(input == "*"){
    	System.out.println("a * b =" +  answer2 + "です。");
    }
    if(input == "x"){
    	System.out.println("a + b =" + answer1 + "であり、a * b =" + answer2 + "であるため、どちらも15ではありません。");
    }
	}
}

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

#include <stdio.h>
int main(void){
   int a,b;
   scanf('%d',&a);
   scanf('%d',&b);
   if((a+b)==15){
      printf('+');
   }elseif((a*b)==15){
      printf('*');
   }else{
      printf('x');
   }
   return 0;
}

Compiler output:
a.cc:4:10: warning: multi-character character constant [-Wmultichar]
    4 |    scanf('%d',&a);
      |          ^~~~
a.cc:5:10: warning: multi-character character constant [-Wmultichar]
    5 |    scanf('%d',&b);
      |          ^~~~
a.cc: In function 'int main()':
a.cc:4:10: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    4 |    scanf('%d',&a);
      |          ^~~~
      |          |
      |          int
In file included from a.cc:1:
/usr/include/stdio.h:428:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:5:10: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    5 |    scanf('%d',&b);
      |          ^~~~
      |          |
      |          int
/usr/include/stdio.h:428:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:7:14: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    7 |       printf('+');
      |              ^~~
      |              |
      |              char
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:8:5: error: 'elseif' was not declared in this scope
    8 |    }elseif((a*b)==15){
      |     ^~~~~~
a.cc:10:5: error: 'else' without a previous 'if'
   10 |    }else{
      |     ^~~~
a.cc:11:14: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |       printf('x');
      |              ^~~
      |              |
      |              char
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <iostream>
using namespace std;
 
int main(){
int a,b
cin >> a >> b;
if (a+b == 15){
cout << "+" << "\n";
}else{
if(a*b == 15){
cout << "*" << "\n";
}else{
cout << "x" << "\n";
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'cin'
    6 | cin >> a >> b;
      | ^~~
a.cc:7:7: error: 'b' was not declared in this scope
    7 | if (a+b == 15){
      |       ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std:

int main(){
int a,b
cin >> a >> b;
if (a+b == 15){
cout << "+" << "\n";
}else{
if(a*b == 15){
cout << "*" << "\n";
}else{
cout << "x" << "\n";
}
}

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

#include <iostream>
#include <vector>
#include <queue>
using namespace std;

typedef unsigned long long ll;

struct Rail {
  int from;
  int to;
  int yen;
  int sunuke;
  ll cost;

  bool operator<(const Rail &e) const {
    return this->cost>e.cost;
  }
};

const int N = 100001;
vector<Rail> adj_list[N];

vector<ll> dijkstra(int start, bool changed) {
  vector<ll> res(N);
  bool visited[N];
  memset(visited, 0, sizeof(visited));

  priority_queue<Rail> q;
  Rail r = { start, start, 0, 0, 0 };
  q.push(r);
  while (!q.empty()) {
    Rail e = q.top();
    q.pop();

    int now_city = e.to;
    ll cost = e.cost;
    if (visited[now_city])
      continue;
    visited[now_city] = true;
    res[now_city] = cost;

    //cout << now_city+1 << ' ' << cost << endl;

    vector<Rail> v = adj_list[now_city];
    for (int i=0; i<v.size(); i++) {
      Rail r = v[i];
      int to = r.to;
        
      r.cost = cost + (changed ? r.sunuke : r.yen);
      q.push(r);
    }
  }

  return res;
}

int main() {
  int n, m, start, to;
  cin >> n >> m >> start >> to;
  start--;
  to--;
  for (int i=0; i<m; i++) {
    int u, v, yen, sunuke;
    cin >> u >> v >> yen >> sunuke;
    u--;
    v--;

    Rail r = { u, v, yen, sunuke, 0 };
    adj_list[u].push_back(r);
    Rail r2 = { v, u, yen, sunuke, 0 };
    adj_list[v].push_back(r2);
  }
  vector<ll> yen_min_path = dijkstra(start, false);
  vector<ll> sunuke_min_path = dijkstra(to, true);

  vector<ll> res;
  ll max = 0;
  for (int i=0; i<n; i++) {
    int j = n-i-1;
    ll use_yen = yen_min_path[j];
    ll use_sunuke = sunuke_min_path[j];
    ll s = 1000000000000000 - use_yen - use_sunuke;
    if (s>max) {
      max = s;
    }
    res.push_back(max);
  }
  for (int i=0; i<n; i++) {
    cout << res[n-i-1] << endl;
  }
  return 0;
}



Compiler output:
a.cc: In function 'std::vector<long long unsigned int> dijkstra(int, bool)':
a.cc:26:3: error: 'memset' was not declared in this scope
   26 |   memset(visited, 0, sizeof(visited));
      |   ^~~~~~
a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <queue>
  +++ |+#include <cstring>
    4 | using namespace std;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  if (a + b == 15) cout << "+" << endl;
  else if (a * b == 15) cour << "*" << endl;
  else cout << "x" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: 'cour' was not declared in this scope
    7 |   else if (a * b == 15) cour << "*" << endl;
      |                         ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){ 
cin >> a >> b;
int a,b;
 
if(a+b==15) cout<<{"+"}<<endl;;
else if(a*b==15) "*";
else "x";
 << endl;
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'a' was not declared in this scope
    5 | cin >> a >> b;
      |        ^
a.cc:5:13: error: 'b' was not declared in this scope
    5 | cin >> a >> b;
      |             ^
a.cc:8:19: error: expected primary-expression before '{' token
    8 | if(a+b==15) cout<<{"+"}<<endl;;
      |                   ^
a.cc:8:24: error: expected primary-expression before '<<' token
    8 | if(a+b==15) cout<<{"+"}<<endl;;
      |                        ^~
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else if(a*b==15) "*";
      | ^~~~
a.cc:11:2: error: expected primary-expression before '<<' token
   11 |  << endl;
      |  ^~
Language: C++

#include<iostream>
using namespace std;

int main(){ 
cin >> a >> b;
int a,b;
cout << 
if(a+b==15) "+";
else if(a*b==15) "*";
else "x";
 << endl;
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'a' was not declared in this scope
    5 | cin >> a >> b;
      |        ^
a.cc:5:13: error: 'b' was not declared in this scope
    5 | cin >> a >> b;
      |             ^
a.cc:8:1: error: expected primary-expression before 'if'
    8 | if(a+b==15) "+";
      | ^~
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else if(a*b==15) "*";
      | ^~~~
a.cc:11:2: error: expected primary-expression before '<<' token
   11 |  << endl;
      |  ^~
Language: Java

package atcorder;

import java.util.Scanner;

public class atcorder1 {
	public static void main(String[] args){
	Scanner scanner = new Scanner(System.in);
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    System.out.println("a+b=15 であれば + を、 a×b=15 であれば * を、 どちらでもなければ x を出力してください。");

    String input = scanner.nextLine();

    int answer1;
    int answer2;

    if (input == "+") {
    	answer1 = a + b ;
    	System.out.println("a + b = answerです。");
	}
    if(input == "*"){
    	answer2 = a * b ;
    	System.out.println("a * b = answerです。");
    }
    if(input == "x"){
    	answer1 = a + b ;
    	answer2 = a + b ;
    	System.out.println("a + b = answerであり、a * b = answer1であるため、どちらも15ではありません。");
    }
	}
}

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

package atcorder;

import java.util.Scanner;

public class atcorder1 {
	public static void main(String[] args){
	Scanner scanner = new Scanner(System.in);
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    System.out.println("a+b=15 であれば + を、 a×b=15 であれば * を、 どちらでもなければ x を出力してください。");

    String input = scanner.nextLine();

    int answer;
    int answer1;

    if (input == "+") {
    	a + b = answer;
    	System.out.println("a + b = answerです。");
	}
    if(input == "*"){
    	a * b = answer;
    	System.out.println("a * b = answerです。");
    }
    if(input == "x"){
    	a + b = answer;
    	a * b = answer1;
    	System.out.println("a + b = answerであり、a * b = answer1であるため、どちらも15ではありません。");
    }
	}
}

Compiler output:
Main.java:5: error: class atcorder1 is public, should be declared in a file named atcorder1.java
public class atcorder1 {
       ^
Main.java:18: error: unexpected type
    	a + b = answer;
    	  ^
  required: variable
  found:    value
Main.java:22: error: unexpected type
    	a * b = answer;
    	  ^
  required: variable
  found:    value
Main.java:26: error: unexpected type
    	a + b = answer;
    	  ^
  required: variable
  found:    value
Main.java:27: error: unexpected type
    	a * b = answer1;
    	  ^
  required: variable
  found:    value
5 errors
Language: C++

#include<iostream>
using namespace std;

int main(){ 
cin >> a b;
int a,b;
cout << 
if(a+b==15) "+";
else if(a*b==15) "*";
else "x";
 << endl;
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'a' was not declared in this scope
    5 | cin >> a b;
      |        ^
a.cc:8:1: error: expected primary-expression before 'if'
    8 | if(a+b==15) "+";
      | ^~
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else if(a*b==15) "*";
      | ^~~~
a.cc:11:2: error: expected primary-expression before '<<' token
   11 |  << endl;
      |  ^~
Language: C++

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

int n, m, d;
int a[1000000010];
double ans = 0;

void check() {
    for (int i = 1; i < m; ++i) {
        if (abs(a[i] - a[i - 1]) == d) ans++;
    }
}

int main() {
    cin >> n >> m >> d;

    for (int i = 0; i < m; ++i) {
        a[i] = 1;
    }

    check();
    for (int i = 0; i < pow(n, m); ++i) {
        for (int k = 0; k < m; ++k) {
            if (a[k] != n) {
                a[k]++;
                if (k > 0) {
                    for (int j = 0; j < k; ++j) {
                        a[j] = 1;
                    }
                }
                check();
                break;
            }
        }
    }

    cout << ans / pow(n, m) << endl;
    return 0;
}

Compiler output:
/tmp/ccwcHQ73.o: in function `check()':
a.cc:(.text+0x56): relocation truncated to fit: R_X86_64_PC32 against symbol `ans' defined in .bss section in /tmp/ccwcHQ73.o
a.cc:(.text+0x6a): relocation truncated to fit: R_X86_64_PC32 against symbol `ans' defined in .bss section in /tmp/ccwcHQ73.o
/tmp/ccwcHQ73.o: in function `main':
a.cc:(.text+0x203): relocation truncated to fit: R_X86_64_PC32 against symbol `ans' defined in .bss section in /tmp/ccwcHQ73.o
collect2: error: ld returned 1 exit status
Language: C++

a, b = map(int,  input(). split())
if a+b == 15;
 print('+')
elsif a*b == 15;
 print('*')
else;
 print('x')

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = map(int,  input(). split())
      | ^
a.cc:3:7: error: expected constructor, destructor, or type conversion before '(' token
    3 |  print('+')
      |       ^
a.cc:5:7: error: expected constructor, destructor, or type conversion before '(' token
    5 |  print('*')
      |       ^
a.cc:7:7: error: expected constructor, destructor, or type conversion before '(' token
    7 |  print('x')
      |       ^
Language: C++

#include<iostream>
using namespace std;

int main(){ 
cin >> a b;
int a,b;
cout << 
if(a+b==15) "+";
else if(a*b==15) "*";
else "x";
 << endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'a' was not declared in this scope
    5 | cin >> a b;
      |        ^
a.cc:8:1: error: expected primary-expression before 'if'
    8 | if(a+b==15) "+";
      | ^~
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else if(a*b==15) "*";
      | ^~~~
a.cc:11:2: error: expected primary-expression before '<<' token
   11 |  << endl;
      |  ^~
Language: C++

#include<iostream>
using namespace std;

int main(){ 
int a,b;
cin >> a b;
cout << 
if(a+b==15) "+";
else if(a*b==15) "*";
else "x";
 << endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'b'
    6 | cin >> a b;
      |         ^~
      |         ;
a.cc:8:1: error: expected primary-expression before 'if'
    8 | if(a+b==15) "+";
      | ^~
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else if(a*b==15) "*";
      | ^~~~
a.cc:11:2: error: expected primary-expression before '<<' token
   11 |  << endl;
      |  ^~
Language: Java

import java.util.Scanner;

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

		int a = sc.nextInt();
		int b = sc.nextInt();

		if(a + b == 15) {
			System.out.println("+");
		}
		else if(a * b == 15){
			System.out.println("*");
		}
		else {
			System.out.println("×");
		}

	}
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
string s;
int w , t, u;
cin >> s >> w;
u = s.size ();
u/=w;
if ( u % w == 0 ) {
}
else {
u++
}
for (int i = 0; i < u ; i++) {
t = w * i;
cout << s.at ( t );
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:4: error: expected ';' before '}' token
   13 | u++
      |    ^
      |    ;
   14 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int maxn=2e5+10;
int a[maxn*4];
int vis[maxn*4];
int b[maxn*4];
int main()
{
   int a,b;
   cin>>a>>b;
   if(a+b==15) cout<<"+"<<endl;
   else if(a*b==15) cout<<"*"<<endl;
   else cout<<"x"<<endl
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected ';' before 'return'
   13 |    else cout<<"x"<<endl
      |                        ^
      |                        ;
   14 |     return 0;
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int maxn=2e5+10;
int a[maxn*4];
int vis[maxn*4];
int b[maxn*4];
int main()
{
   int a,b;
   cin>.a>>b;
   if(a+b==15) cout<<"+"<<endl;
   else if(a*b==15) cout<<"*"<<endl;
   else cout<<"x"<<endl
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected primary-expression before '.' token
   10 |    cin>.a>>b;
      |        ^
a.cc:13:24: error: expected ';' before 'return'
   13 |    else cout<<"x"<<endl
      |                        ^
      |                        ;
   14 |     return 0;
      |     ~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){ 
int a,b;
cin >> a b;
cout << if(a+b==15) "+";
else if(a*b==15) "*";
else "x";
>> endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'b'
    6 | cin >> a b;
      |         ^~
      |         ;
a.cc:7:9: error: expected primary-expression before 'if'
    7 | cout << if(a+b==15) "+";
      |         ^~
a.cc:8:1: error: 'else' without a previous 'if'
    8 | else if(a*b==15) "*";
      | ^~~~
a.cc:10:1: error: expected primary-expression before '>>' token
   10 | >> endl;
      | ^~
Language: C++

#include<iostream>
using namespace std;

int main(){ 
int a,b;
cin >> a b;
cout << if(a+b==15) “+”;
else if(a*b==15) “*”;
else “x”;
>> endl;
return 0;
}


Compiler output:
a.cc:7:21: error: extended character “ is not valid in an identifier
    7 | cout << if(a+b==15) “+”;
      |                     ^
a.cc:7:23: error: extended character ” is not valid in an identifier
    7 | cout << if(a+b==15) “+”;
      |                       ^
a.cc:8:18: error: extended character “ is not valid in an identifier
    8 | else if(a*b==15) “*”;
      |                  ^
a.cc:8:20: error: extended character ” is not valid in an identifier
    8 | else if(a*b==15) “*”;
      |                    ^
a.cc:9:6: error: extended character “ is not valid in an identifier
    9 | else “x”;
      |      ^
a.cc:9:6: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'b'
    6 | cin >> a b;
      |         ^~
      |         ;
a.cc:7:9: error: expected primary-expression before 'if'
    7 | cout << if(a+b==15) “+”;
      |         ^~
a.cc:8:1: error: 'else' without a previous 'if'
    8 | else if(a*b==15) “*”;
      | ^~~~
a.cc:8:18: error: '\U0000201c' was not declared in this scope
    8 | else if(a*b==15) “*”;
      |                  ^
a.cc:8:20: error: '\U0000201d' was not declared in this scope
    8 | else if(a*b==15) “*”;
      |                    ^
a.cc:9:6: error: '\U0000201cx\U0000201d' was not declared in this scope
    9 | else “x”;
      |      ^~~
a.cc:10:1: error: expected primary-expression before '>>' token
   10 | >> endl;
      | ^~
Language: C++

#include<iostream>
using namespace std;

int main(){ 
int a,b;
cin >> a b;
cout << if(a+b) “+”;
else if(a*b) “*”;
else “x”;
>> endl;
return 0;
}


Compiler output:
a.cc:7:17: error: extended character “ is not valid in an identifier
    7 | cout << if(a+b) “+”;
      |                 ^
a.cc:7:19: error: extended character ” is not valid in an identifier
    7 | cout << if(a+b) “+”;
      |                   ^
a.cc:8:14: error: extended character “ is not valid in an identifier
    8 | else if(a*b) “*”;
      |              ^
a.cc:8:16: error: extended character ” is not valid in an identifier
    8 | else if(a*b) “*”;
      |                ^
a.cc:9:6: error: extended character “ is not valid in an identifier
    9 | else “x”;
      |      ^
a.cc:9:6: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'b'
    6 | cin >> a b;
      |         ^~
      |         ;
a.cc:7:9: error: expected primary-expression before 'if'
    7 | cout << if(a+b) “+”;
      |         ^~
a.cc:8:1: error: 'else' without a previous 'if'
    8 | else if(a*b) “*”;
      | ^~~~
a.cc:8:14: error: '\U0000201c' was not declared in this scope
    8 | else if(a*b) “*”;
      |              ^
a.cc:8:16: error: '\U0000201d' was not declared in this scope
    8 | else if(a*b) “*”;
      |                ^
a.cc:9:6: error: '\U0000201cx\U0000201d' was not declared in this scope
    9 | else “x”;
      |      ^~~
a.cc:10:1: error: expected primary-expression before '>>' token
   10 | >> endl;
      | ^~
Language: C++

#include<iostream>
using namespace std;

int main(){ 
int a,b;
cin >> a b;
cout << { if(a+b) +;
else if(a*b) *;
else x;
endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'b'
    6 | cin >> a b;
      |         ^~
      |         ;
a.cc:7:9: error: expected primary-expression before '{' token
    7 | cout << { if(a+b) +;
      |         ^
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int main(){ 
int a,b;
cin >>a b;
cout << { f(a+b) +;
else if(a*b) *;
else x;
endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected ';' before 'b'
    6 | cin >>a b;
      |        ^~
      |        ;
a.cc:7:9: error: expected primary-expression before '{' token
    7 | cout << { f(a+b) +;
      |         ^
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int main(){ 
int a,b;
cin>>a b;
cout<<{ f(a+b) +;
else if(a*b) *;
else x;
endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected ';' before 'b'
    6 | cin>>a b;
      |       ^~
      |       ;
a.cc:7:7: error: expected primary-expression before '{' token
    7 | cout<<{ f(a+b) +;
      |       ^
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

package text;

public class main {
	public main(String[] args) {
		String s = args[0];
		int w = Integer.parseInt(args[1]);
		String str[] = s.split("");
		
		String st = "";
		
		for(int i=0;i < str.length;i =  i + w) {
			st = st + str[i];
		}
		System.out.println(st);
	}
}


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

#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<map>
#include<vector>
#include<set>
#include<queue>
#include<algorithm>
#include<stack>
#include<cstdlib>
#include<cctype>
#include<bits\stdc++.h>
using namespace std;
#define ll long long
typedef pair<int,int>P;
const int len=2e5+5;
int arr[len];
int num[len];
int main()
{
	int a,b;
	cin>>a>>b;
	if(a+b==15)puts("+");
	else if(a*b==15)puts("*");
	else puts("x");
}

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

#include<bits/stdc++>
int main()
{
	int a,b;
	scanf("%d %d",&a,&b);
	if(a*b==15)
	{
		printf("*");
	}
	else if(a+b==15)
	{
		printf("+");
	}
	else
	{
		printf("x")； 
	}
	return 0;
} 

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

package text;

public class main {
	public static void main(String[] args) {
		int a = Integer.parseInt(args[0]);
		int b = Integer.parseInt(args[1]);
		
		if(a * b == 15) {
			System.out.println("*");
		}else {
			if (a + b == 15) {
				System.out.println("+");
			}else {
				System.out.println("×");
			}
		}
    }
}


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

a,b=map(int,input().split())
if (a+b) == 15:
    print("+")
elif (a*b) == 15:
    print("*")
else:
    print("x")

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b=map(int,input().split())
      | ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <map>
#include <vector>
#include <list>
using namespace std;

int main()
{

	int a, b:

    cin >> a >> b;

    if(a + b == 15) cout << '+' << endl;

    else if(a * b == 15) cout << '*' << endl;

    else cout << 'x' << endl;

    

	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: found ':' in nested-name-specifier, expected '::'
   12 |         int a, b:
      |                 ^
      |                 ::
a.cc:12:16: error: 'b' has not been declared
   12 |         int a, b:
      |                ^
a.cc:14:9: error: qualified-id in declaration before '>>' token
   14 |     cin >> a >> b;
      |         ^~
a.cc:16:12: error: 'b' was not declared in this scope
   16 |     if(a + b == 15) cout << '+' << endl;
      |            ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int a, b;
	cin >> a >> b:
	if(a + b == 15){
		cout << "+" << endl;
	}else if(a * b == 15){
		cout << "*" << endl;
	}else{
		cout << "x" << endl;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected ';' before ':' token
    6 |         cin >> a >> b:
      |                      ^
      |                      ;
a.cc:9:10: error: 'else' without a previous 'if'
    9 |         }else if(a * b == 15){
      |          ^~~~
Language: Java

import java.util.Scanner;
public class MainA {
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a= sc.nextInt();
		int b =  sc.nextInt();
		if((a+b)==15)System.out.println("+");
		else if((a * b)==15)System.out.println("*");
		else System.out.println("x");
		return ;
	

Compiler output:
Main.java:11: error: reached end of file while parsing
		return ;
		        ^
1 error
Language: C

#include <stdio.h>

int main()
{
int a, b;

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

if (a+b == 15 ){
printf ("+\n");
}

else if ( a*b == 15){
printf ("*\n");
}

else {
printf ("x\n");
}

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:8: error: expected expression before '%' token
    7 | scanf (%d %d, &a, &b);
      |        ^
Language: Java

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


public class main {

	public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String line2 = br.readLine();
        
        String boxx[] = line.split("");
        
        
        
        int n = boxx.length;
        int k = Integer.parseInt(line2);
        String ans =("");
        
        for(int i=0;i<n;i++){
        //    System.out.println(i);
        	if((i-1)%k == 0){
        		ans+=boxx[i];
        	}
        	
        	
        }
        System.out.println(ans);
        
        
        
	}

}


Compiler output:
Main.java:5: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <map>
#include <vector>
#include <list>
using namespace std;

int main()
{

	int a, b:

    cin >> a >> b;

    if(a + b == 15) cout << '+' << endl;

    else if(a * b == 15) cout << '*' << endl;

    else cout <<7x7 << endl;

    

	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: found ':' in nested-name-specifier, expected '::'
   12 |         int a, b:
      |                 ^
      |                 ::
a.cc:12:16: error: 'b' has not been declared
   12 |         int a, b:
      |                ^
a.cc:14:9: error: qualified-id in declaration before '>>' token
   14 |     cin >> a >> b;
      |         ^~
a.cc:16:12: error: 'b' was not declared in this scope
   16 |     if(a + b == 15) cout << '+' << endl;
      |            ^
a.cc:20:17: error: unable to find numeric literal operator 'operator""x7'
   20 |     else cout <<7x7 << endl;
      |                 ^~~
Language: C++

#include <stdio.h>
#include <iostream>
#include <string>I
#include <stdlib.h>
#include <math.h>
#include <algorithm>
#include <sstream>
#include <fstream>
#include <iomanip>

#define rep(i,a,b) for(long long i=a;i<b;i++)
using namespace std;

int main(void) {

	long long N = 0, D = 0, A = 0, B = 0, C = 0;
	//char x[100] = {‘+’,’*’,’x’}

	string x = "+*x";

	cin >> A >>B;
	
if(A+B==15)
cout << x[0] << endl;
else if(A*B==15)
	cout <<x[1] << endl;
	else
cout << x[2]<< endl;

	return 0;

}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b;
    scanf("%d %d"，&a,&b);
    if(a+b==15)
    {
        printf("+");
    }
    else if(a*b==15)
    {
        printf("*");
    }
    else
    {
        printf("x");
    }
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: unable to find string literal operator 'operator""\U0000ff0c' with 'const char [6]', 'long unsigned int' arguments
    6 |     scanf("%d %d"，&a,&b);
      |           ^~~~~~~~~
a.cc:19:14: error: expected '}' at end of input
   19 |     return 0;
      |              ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b;
    scanf("%d %d“，&a,&b);
    if(a+b==15)
    {
        printf("+");
    }
    else if(a*b==15)
    {
        printf("*");
    }
    else
    {
        printf("x");
    }
    return 0;
}


Compiler output:
a.cc:6:11: warning: missing terminating " character
    6 |     scanf("%d %d“，&a,&b);
      |           ^
a.cc:6:11: error: missing terminating " character
    6 |     scanf("%d %d“，&a,&b);
      |           ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: expected primary-expression before 'if'
    7 |     if(a+b==15)
      |     ^~
Language: C

#include<stdio.h>
int main(){
  int a,b,c,d;
  scanf("%d%d",&a,&b); 
 
a*b=c;
a+b=d;
 
if(d==15){
printf("+\n");
}else if(c==15){
printf("*\n");
}else{
printf("x\n");
}
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:4: error: lvalue required as left operand of assignment
    6 | a*b=c;
      |    ^
main.c:7:4: error: lvalue required as left operand of assignment
    7 | a+b=d;
      |    ^
Language: C++


#include<iostream>
#include <cmath>
#include <string>
#include <float.h>
using namespace std;

int main()
{
	int a;
	int b;
	cin>>a;
	cin>>b;
	if(a+b=15){
	
		cout<<"+";
	}else if(a*b=15){
		cout<<"*";
	}else{
		cout<<"x";
	}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: lvalue required as left operand of assignment
   14 |         if(a+b=15){
      |            ~^~
a.cc:17:19: error: lvalue required as left operand of assignment
   17 |         }else if(a*b=15){
      |                  ~^~
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
  	int a,b;
  	cin >> a;
  	cin >> b;
  	if(a+b == 15){
      cout<< "+" <<endl;
    }else if(a*b == 15){
      cout<< "*" <<endl;
    }else{
      cout<< "×" <<endl;
    return 0;
}

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

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

a*b=c
a+b=d

if(d==15){
printf("+\n");
}else if(c==15){
printf("*\n");
}else{
printf("x\n");
}
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:4: error: lvalue required as left operand of assignment
    6 | a*b=c
      |    ^
main.c:6:6: error: expected ';' before 'a'
    6 | a*b=c
      |      ^
      |      ;
    7 | a+b=d
      | ~
Language: C++

int main()
{
int a,b;
cin >> a >> b;
if(a+b == 15)cout << "+";
else if(a*b == 15)cout << "*";
else cout << "x";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope
    4 | cin >> a >> b;
      | ^~~
a.cc:5:14: error: 'cout' was not declared in this scope
    5 | if(a+b == 15)cout << "+";
      |              ^~~~
a.cc:6:19: error: 'cout' was not declared in this scope
    6 | else if(a*b == 15)cout << "*";
      |                   ^~~~
a.cc:7:6: error: 'cout' was not declared in this scope
    7 | else cout << "x";
      |      ^~~~
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
  	int a,b;
  	cin >> a;
  	cin >> b;
  	if(a+b == 15){
      cout<< "+" <<endl;
    }else if(a*b == 15){
      cout<< "*" <<endl;
    }else{
      cout<< "×" <<endl;
    return 0;
}
 
#include <stdlib.h>
#include <iostream.h>
using namespace std;

int main()
{
  	int a,b;
  	cin >> a;
  	cin >> b;
  	if(a+b == 15){
      cout<< "+" <<endl;
    }else if(a*b == 15){
      cout<< "*" <<endl;
    }else{
      cout<< "×" <<endl;
    return 0;
}

提出情報


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

#include <stdlib.h>
#include <iostream.h>
using namespace std;

int main()
{
  	int a,b;
  	cin >> a;
  	cin >> b;
  	if(a+b == 15){
      cout<< "+" <<endl;
    }else if(a*b == 15){
      cout<< "*" <<endl;
    }else{
      cout<< "×" <<endl;
    return 0;
}



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

#include<stdio.h>

int main(void)
{
  int N;
  int a;
  scanf("%d",&a);
  scanf("%d",&N);
  if(a+N==15){
    printf("+");
    break;
  }
  if(a*N==15){
    printf("*");
    break;
  }

  printf("×");

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:5: error: break statement not within loop or switch
   11 |     break;
      |     ^~~~~
main.c:15:5: error: break statement not within loop or switch
   15 |     break;
      |     ^~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
int a,b;
cin>>a>>b;
if(a+b==15){
   cout<<‘+’<<endl;
}else if(a*b==15){
   cout<<‘*’<<endl;
}else{
   cout<<‘x’<<endl;
}
return 0;
}



Compiler output:
a.cc:8:10: error: extended character ‘ is not valid in an identifier
    8 |    cout<<‘+’<<endl;
      |          ^
a.cc:8:12: error: extended character ’ is not valid in an identifier
    8 |    cout<<‘+’<<endl;
      |            ^
a.cc:10:10: error: extended character ‘ is not valid in an identifier
   10 |    cout<<‘*’<<endl;
      |          ^
a.cc:10:12: error: extended character ’ is not valid in an identifier
   10 |    cout<<‘*’<<endl;
      |            ^
a.cc:12:10: error: extended character ‘ is not valid in an identifier
   12 |    cout<<‘x’<<endl;
      |          ^
a.cc:12:10: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:10: error: '\U00002018' was not declared in this scope
    8 |    cout<<‘+’<<endl;
      |          ^
a.cc:8:12: error: '\U00002019' was not declared in this scope
    8 |    cout<<‘+’<<endl;
      |            ^
a.cc:10:10: error: '\U00002018' was not declared in this scope
   10 |    cout<<‘*’<<endl;
      |          ^
a.cc:10:12: error: '\U00002019' was not declared in this scope
   10 |    cout<<‘*’<<endl;
      |            ^
a.cc:12:10: error: '\U00002018x\U00002019' was not declared in this scope
   12 |    cout<<‘x’<<endl;
      |          ^~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a, b;

	cin >> a;
	cin >> b;

	if (a + b == 15)
		cout << "+";
	if (a*b == 15)
		cout << "*";
	else
	{
		cout << "x";
	}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: expected '}' at end of input
   18 |         }
      |          ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
int main()
{
    int a, b;
    scanf("%d%d", &a, &b);
    if(a + b == 15)
    {
        printf("+\n")l
    }
    else if(a * b == 15)
    {
        printf("*\n);
    }
    else
    {
        printf("x\n);
    }
}

Compiler output:
a.cc:13:16: warning: missing terminating " character
   13 |         printf("*\n);
      |                ^
a.cc:13:16: error: missing terminating " character
   13 |         printf("*\n);
      |                ^~~~~~
a.cc:17:16: warning: missing terminating " character
   17 |         printf("x\n);
      |                ^
a.cc:17:16: error: missing terminating " character
   17 |         printf("x\n);
      |                ^~~~~~
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before 'l'
    9 |         printf("+\n")l
      |                      ^
      |                      ;
a.cc:14:5: error: expected primary-expression before '}' token
   14 |     }
      |     ^
a.cc:18:5: error: expected primary-expression before '}' token
   18 |     }
      |     ^
Language: Java

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


public class main {

	public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        
        String boxx[] = line.split(" ");
        
        
        int n = Integer.parseInt(boxx[0]);   //n
        int k = Integer.parseInt(boxx[1]); 
		
        
        
        if(n+k==15){
        	System.out.println("+");
        }else if(n*k ==15){
        	System.out.println("*");
        }else{
        	System.out.println("x");
        }
        
	}

}


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

import java.util.*;
public class Main {
  public static void main(String...args) {
    final Scanner sc = new Scanner(System.in);
    final int a = sc.nextInt();
    final int b = sc.nextInt();
    System.out.println(a + b == 15 ? '+' : a * b = 15 ? '*' : 'x');
  }
}

Compiler output:
Main.java:7: error: unexpected type
    System.out.println(a + b == 15 ? '+' : a * b = 15 ? '*' : 'x');
                                   ^
  required: variable
  found:    value
Main.java:7: error: incompatible types: int cannot be converted to boolean
    System.out.println(a + b == 15 ? '+' : a * b = 15 ? '*' : 'x');
                                                   ^
2 errors
Language: C++

#include <iostream>
#include<algorithm>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	if(a+b==15)cout<<'+'<<endl;
	else if(a*b==15)cout<<'*'<<endl;
	else cout<<'x'<<endl;
	cout<<<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected primary-expression before '<<' token
   10 |         cout<<<<endl;
      |               ^~
Language: C++

import sequtils,strutils
var
    a,b : int
(a, b) = stdin.readline.split.map(parseInt)
if a + b == 15:
    echo "+"
elif a * b == 15:
    echo "*"
else:
    echo "x"

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

if __name__ == '__main__':
    N = 15
    line = input()
    nums = line.split(' ')
    a, b = [int(i.strip()) for i in nums]
    assert 1 <= a <= 15
    assert 1 <= b <= 15
    if N - a == b:
        print('+')
    elif N / a == b:
        print('*')
    else:
        print('x')

Compiler output:
a.cc:1:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    1 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: expected unqualified-id before 'if'
    1 | if __name__ == '__main__':
      | ^~
Language: C++

#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <string>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <queue>
#define INF 1<<19
const int MOD = 1000000007;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long ll;
typedef pair<int,int> P;

int main(){
    int a,b;
    cin >> a >> b;
    if(a+b == 15){
        cout << '+' << endl;
    }else if(a * b = 15){
        cout << '*' << endl;
    }else{
        cout << 'x' << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:16: error: lvalue required as left operand of assignment
   25 |     }else if(a * b = 15){
      |              ~~^~~
Language: C++

#include<stdio,h>
int main() {
int a , b;
scanf("%d %d" ,&a ,&b);
if(a + b == 15) puts("+");
else if(a * b == 15) puts("*");
else puts("x");
 return 0;
}

Compiler output:
a.cc:1:9: fatal error: stdio,h: No such file or directory
    1 | #include<stdio,h>
      |         ^~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;

public class Main {

	public static void main(String[] args) {
		// make new Scanner.
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		
		if (n + t == 15 || n * t == 15) {
			System.out.println('*');
		} else {
			System.out.println('x');
		}
		
		// Listに格納.
//		List<Integer> list = inList(sc,n);
		

		// close Scanner
		sc.close();

	}

Compiler output:
Main.java:24: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++


#include <iostream>
#include <cstdio>
#include <string>
#include <vector>
#include <algorithm>
#include <list>
#include <iomanip>
#include <queue>
#include <functional>
#include <cassert>
#include <cmath>


#define REP(i, n) for(int i = 0; i < (n); i++)
#define FOR(i, a, b) for(int i = (a); i < (b), i++)
#define NL << endl

using namespace std;
using ll = long long;
using ull = unsigned long long;

int main() {

	int a, b;

	cin >> a >> b;

	if (a + b == 15) cout << "+" NL;
	else if (a * b == 15) cout << "*" NL;
	else cout << "x"  NL;

	return 0;


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

#include <iostream>
using namespace std;

int main(){
	int a,b;
	cin>>x>>y;
	if(a+b==15){
		cout<<"+"<<endl;
	}else if(a*b==15){
		cout<<"*"<<endl;
	}else{
		cout<<"x"<<endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'x' was not declared in this scope
    6 |         cin>>x>>y;
      |              ^
a.cc:6:17: error: 'y' was not declared in this scope
    6 |         cin>>x>>y;
      |                 ^