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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, M;
  cin >> N >> M;
  if(N==M)
    cout << "Yes" << endl;
  else
    cout << "No" << endl:
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: expected ';' before ':' token
   10 |     cout << "No" << endl:
      |                         ^
      |                         ;
Language: C++

using namespace std;

int main()
{
    int n;
    int m;
    cin>>n>>m;
    if(n>=1 && n<=100)
    {
        if(m>=0 && m<=n)
        {
            if(n==m)
            {
                cout<<"Yes";
            }
            else{
                    cout<<"No";
            }
        }
    }


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>n>>m;
      |     ^~~
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:14:17: error: 'cout' was not declared in this scope
   14 |                 cout<<"Yes";
      |                 ^~~~
a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:21: error: 'cout' was not declared in this scope
   17 |                     cout<<"No";
      |                     ^~~~
a.cc:17:21: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;

public class Mustafa
{
  public static void main(String[] args) throws FileNotFoundException
  {
    Scanner scanner = new Scanner(System.in);
    int n, m;
    n = scanner.nextInt();
    m = scanner.nextInt();
    if(n != m){
      System.out.println("No");
    }else{
      System.out.println("Yes");
    }
  }
}


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

import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;

public class Mustafa
{
  public static void main(String[] args) throws FileNotFoundException
  {
    Scanner scanner = new Scanner(new File("input.txt"));
    int n, m;
    n = scanner.nextInt();
    m = scanner.nextInt();
    if(n != m){
      System.out.println("No");
    }else{
      System.out.println("Yes");
    }
  }
}


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

#include<stdio.h>
int main(void){
    int n,m;
    scanf("%d%d",&n,&m);
    if(n==m)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}3 

Compiler output:
main.c:10:2: error: expected identifier or '(' before numeric constant
   10 | }3
      |  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int M, M;
  cin >> N >> M;
  string answer = "No";
  if(N == M){
    answer = "Yes";
  }
  cout << answer << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: redeclaration of 'int M'
    4 |   int M, M;
      |          ^
a.cc:4:7: note: 'int M' previously declared here
    4 |   int M, M;
      |       ^
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N >> M;
      |          ^
Language: C

#include <stdio.h>

int main (void){
	int n, m;
	
	scanf("%d %d\n", &n, &m);
	
	if(n==m %% n<=100){
		printf("Yes");
	}else{
		printf("no");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected expression before '%' token
    8 |         if(n==m %% n<=100){
      |                  ^
Language: C

#include <stdio.h>

int main void(){
	int n, m;
	
	scanf("%d %d\n", &n, &m);
	
	if(n==m){
		printf("Yes");
	}else{
		printf("no");
	}
	return 0;
}

Compiler output:
main.c:3:9: error: expected ';' before 'void'
    3 | int main void(){
      |         ^~~~~
      |         ;
main.c:3:15: error: expected identifier or '(' before ')' token
    3 | int main void(){
      |               ^
Language: C++

import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int N = sc.nextInt();
        // スペース区切りの整数の入力
        int M = sc.nextInt();

        if(N > M){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
}

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

#include <bits/stdc++.h>
int main()
{
  int a,b;
  cin>>a>>b;
  if(a==b)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a>>b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(a==b)cout<<"Yes"<<endl;
      |           ^~~~
      |           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   if(a==b)cout<<"Yes"<<endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else cout<<"No"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else cout<<"No"<<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
int main()
{
  int a,b;
  if(a==b)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   if(a==b)cout<<"Yes"<<endl;
      |           ^~~~
      |           std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   if(a==b)cout<<"Yes"<<endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:6:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   else cout<<"No"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   else cout<<"No"<<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

import java.util.Scanner;

class Pass{
    public static void main(String[] args) {
        Scanner  s =  new Scanner(System.in);
        int numTest = s.nextInt();
        int numPassed = s.nextInt();
        System.out.println(numTest==numPassed?"Yes":"No");
        s.close();
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:11: error: expected ':' before 'static'
    4 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:4:29: error: 'String' has not been declared
    4 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:4:38: error: expected ',' or '...' before 'args'
    4 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:11:2: error: expected ';' after class definition
   11 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Pass::main(int*)':
a.cc:5:9: error: 'Scanner' was not declared in this scope
    5 |         Scanner  s =  new Scanner(System.in);
      |         ^~~~~~~
a.cc:6:23: error: 's' was not declared in this scope
    6 |         int numTest = s.nextInt();
      |                       ^
a.cc:8:9: error: 'System' was not declared in this scope
    8 |         System.out.println(numTest==numPassed?"Yes":"No");
      |         ^~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
 	int n, m; cin>>n>>m;
  	if(n == m){
    	cout<<"Yes"<<endl;
    }else{
      cout<<"No"<<endl;
}  


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

#include<iostream>
using namesapce std;

int main(){
 	int n, m; cin>>n>>m;
  	if(n == m){
    	cout<<"Yes"<<endl;
    }else{
      cout<<"No"<<endl;
}  

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:19: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         int n, m; cin>>n>>m;
      |                   ^~~
      |                   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout<<"Yes"<<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         cout<<"Yes"<<endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |       cout<<"No"<<endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |       cout<<"No"<<endl;
      |                   ^~~~
      |                   std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:2: error: expected '}' at end of input
   10 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using std::cin;
using std:cout;
int m,n;
int main (){
  cin>>m>>n;
  if (m==n) cout<<"Yes";
  else
    cout<<"No";
  
}return 0;

Compiler output:
a.cc:3:10: error: found ':' in nested-name-specifier, expected '::'
    3 | using std:cout;
      |          ^
      |          ::
a.cc:11:2: error: expected unqualified-id before 'return'
   11 | }return 0;
      |  ^~~~~~
Language: C


#include<Stdio.h>
int main()
{
    int A,B;


  scanf("%d %d",&A,&B);
    if(A!=B)
    {
        printf("No");
    }
    else
        printf("Yes");
        return 0;
}


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

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


int main(){
  int N,M;
  
  cin>>N>>M;
  
  if(N==M){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
    
  }

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

#include<bits/stdc++.h>					
using namespace std;	
int main()	
{	int n,m;
cin>>n>>m;
if(n==m){
	cout<<"yes";return 0;
}else{
	cout<<"no";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<bits/stdc++.h>
using namespace std;
#define int long long;
int32_t main(){
 int n, m;
  cin >> n >> m;
  if(n == m){
   cout << "Yes\n";
  }
  else{
   cout << "No\n"; 
  }
  return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
a.cc:5:2: note: in expansion of macro 'int'
    5 |  int n, m;
      |  ^~~
a.cc:5:6: error: 'n' was not declared in this scope; did you mean 'yn'?
    5 |  int n, m;
      |      ^
      |      yn
a.cc:5:9: error: 'm' was not declared in this scope; did you mean 'tm'?
    5 |  int n, m;
      |         ^
      |         tm
Language: C++

#include<bits/stdc++>h>
using namespace std;
int amin()
{
	int a,s;
	cin>>a>>s;
	if(a<s)cout<<"No";
	else cout<<"Yes";
	return 0;
} 

Compiler output:
a.cc:1:23: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++>h>
      |                       ^
a.cc:1:9: fatal error: bits/stdc++>: No such file or directory
    1 | #include<bits/stdc++>h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main(){
  int N, M;
  sanf("%d%d", &N, &M);
  
  if(N==M) printf("Yes")
    else printf("No")
    }

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'sanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |   sanf("%d%d", &N, &M);
      |   ^~~~
      |   scanf
main.c:6:25: error: expected ';' before 'else'
    6 |   if(N==M) printf("Yes")
      |                         ^
      |                         ;
    7 |     else printf("No")
      |     ~~~~
Language: C

#include<Stdio.h>
int main()
{
    int A,B;


  scanf("%d %d",&A,&B);
    if(A!=B)
    {
        printf("no");
    }
    else
        printf("yes");
}


Compiler output:
main.c:1:9: fatal error: Stdio.h: No such file or directory
    1 | #include<Stdio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: Java

	public static void main(String args[]) throws IOException {
		// 2020/1/30 No.152
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str[] = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);

	br.close();

		if (n == m )
			System.out.println("Yes");
		else
			System.out.println("No");
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String args[]) throws IOException {
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  if(a==b)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
  return 0;

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

public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str[] = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);

		System.out.println(n == m ? "Yes" : "No");
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String args[]) throws IOException {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

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

int main () {
    int N , M
    cin >> N >> M;

    if (N == M){
        cout << "Yes" << endl;
    }

    else {
        cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin >> N >> M;
      |     ^~~
a.cc:8:14: error: 'M' was not declared in this scope
    8 |     if (N == M){
      |              ^
Language: C++

#include <stdio.h>
int main(void)
{
	int N,M;
	scanf("%d%d", &N, &M);
	if (N==M){
			printf("Yes");
	}
	else{
		printf("No");
	}
	printf("%d", num);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: 'num' was not declared in this scope; did you mean 'enum'?
   12 |         printf("%d", num);
      |                      ^~~
      |                      enum
Language: C++

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

int main(){
    int A, B;
    cin >> A >> B;
    if(A == B){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
}1

Compiler output:
a.cc:13:2: error: expected unqualified-id before numeric constant
   13 | }1
      |  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  int n,m;
  cin>>n>>m;
  if(n==m){
    cout<<"Yes"<<endl;
  }else if(n>m){
    cout<<"No"<<endl;
  }

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

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  int n,m;
  cin>>n>>m;
  if(n=m){
    cout<<"Yes"<<endl;
  }else if(n>m){
    cout<<"No"<<endl;
  }

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

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

int main(){
  int n,m;
  cin>>n>>m;
  if(n=m){
    cout<<"Yes"<<endl;
  }else if(n>m){
    cout<<"No"<<endl;
  }

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

#include<stdio.h>
int main ()
{
    int N,M;
    scanf("%d%d",&N.&M);
    if(N==M){
        printf("Yes\n");
    }
    else{
        printf("No\n");
    }
}

Compiler output:
main.c: In function 'main':
main.c:5:21: error: expected identifier before '&' token
    5 |     scanf("%d%d",&N.&M);
      |                     ^
Language: C++

#include<bits/stdc++.h>
using namaspace std;
int main()
{
  int N,M;
  cin>>N>>M;
  if(N==M)
    cout<<"Yes";
  else
    cout<<"No";
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namaspace'
    2 | using namaspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>N>>M;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<"Yes";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<"No";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include<stdio.h>

int main(){
  int a,b;
  if(scanf("%d%d",&a,&b)!=2)) return 1;
  if(a==b) printf("Yes\n");
  else printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:29: error: expected statement before ')' token
    5 |   if(scanf("%d%d",&a,&b)!=2)) return 1;
      |                             ^
Language: Java

import java.util.Scanner;

public class Solution {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int M = sc.nextInt();
        int N = sc.nextInt();
        System.out.println(M == N ? "Yes" : "No");
        sc.close();
    }
}


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

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        System.out.println(s.nextInt() == s.nextInt() ? "Yes" : "No");
    }
}


Compiler output:
Main.java:2: error: illegal character: '\u00a0'
?
^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int N,M;
cin>>N>>M;
if(N==M)
{
	cout<<"YES"<<endl;

}
else{cout<<"NO"<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected '}' at end of input
   11 | else{cout<<"NO"<<endl;}
      |                        ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>

using namespace std;

string submit(int n, int m){
    if(n == m)
        return "Yes";
    return "No";
}
int main()
{
    int n, int m;
    cin>>n>>m;
    cout<<submit(n, m);

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected unqualified-id before 'int'
   12 |     int n, int m;
      |            ^~~
a.cc:13:13: error: 'm' was not declared in this scope
   13 |     cin>>n>>m;
      |             ^
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        
        System.out.println(submit(3,2));
    }

    public static String submit(int n, int m){
        if(n == m)
            return "Yes";
        return "No";
    }

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

mport 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();
      if(a==b){
        System.out.print("Yes");
      }else{
        System.out.print("No");
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
Main.java:13: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.*;

public class PlacingMarbles {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		
		if (1 <= N && N <= 100) {
			if (0 <= M && M <= N) {
				if (M == N) {
					System.out.println("Yes");
				} else {
					System.out.println("No");
				}
			}
		}
	}

}


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

#include<iostream>
 
int main(){
  int N, M;
  
  cin >> N;
  cin >> M;
  
  if(N == M)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
    
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> N;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << "Yes" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << "Yes" << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << "No" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout << "No" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>

int main(){
  int N, M;
  cin >> N >> M;
  
  if(N == M)
    cont << "Yes" << endl;
  else
    cont << "No" << endl;
    
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> N >> M;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cont' was not declared in this scope; did you mean 'const'?
    8 |     cont << "Yes" << endl;
      |     ^~~~
      |     const
a.cc:8:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cont << "Yes" << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   10 |     cont << "No" << endl;
      |     ^~~~
      |     const
a.cc:10:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cont << "No" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in)
      int M = sc.nextInt();
      int N = sc.nextInt();
      if (M==N){
        System.out.println("YES");}
    else{
      System.out.println("NO");}
  }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util*;
                ^
Main.java:4: error: ';' expected
    Scanner sc = new Scanner(System.in)
                                       ^
2 errors
Language: Java

import java.util*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in)
      int M = sc.nextInt();
      int N = sc.nextInt();
      if (M==N){
        System.out.println("YES")};
    else{
      System.out.println("NO")};
  }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util*;
                ^
Main.java:4: error: ';' expected
    Scanner sc = new Scanner(System.in)
                                       ^
Main.java:8: error: ';' expected
        System.out.println("YES")};
                                 ^
Main.java:10: error: ';' expected
      System.out.println("NO")};
                              ^
Main.java:9: error: 'else' without 'if'
    else{
    ^
5 errors
Language: C++

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

int main()
{
  int n, m;
  cin >> n >> m;
  if(n == m)
    cout << "Yes" << endl;
  else if(n != m)
    cout << "No" << endl;
  
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> n >> m;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "Yes" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << "Yes" << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << "No" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout << "No" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

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

int N,M;
//整数を入力
scanf(%d %d,&M,&N);
if(M==N)
{
  printf("Yes");
}
else
{
  printf("No");
}
return 0;


Compiler output:
main.c: In function 'main':
main.c:6:1: error: expected declaration specifiers before 'scanf'
    6 | scanf(%d %d,&M,&N);
      | ^~~~~
main.c:7:1: error: expected declaration specifiers before 'if'
    7 | if(M==N)
      | ^~
main.c:11:1: error: expected declaration specifiers before 'else'
   11 | else
      | ^~~~
main.c:15:1: error: expected declaration specifiers before 'return'
   15 | return 0;
      | ^~~~~~
main.c:2:5: error: old-style parameter declarations in prototyped function definition
    2 | int main(void)
      |     ^~~~
main.c:16: error: expected '{' at end of input
Language: C++

#include <iostream>
 
int main()
{
  int M, N;
  std::cin >> M >> N;
  
  if(M == N)
  { std::cout << "Yes"; }
  else
  { std::cout << "No" }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expected ';' before '}' token
   11 |   { std::cout << "No" }
      |                      ^~
      |                      ;
Language: Java

import java.util.Scanner;
public class ABC152QA {
	public static void main(String args[]) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		if(n == m) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}


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

class Solution {
 	 public static void main(String args[]) {
      	Scanner in = new Scanner(System.in);
       	int n = in.nextInt();
       	int m = in.nextInt();
       	if(n == m) {
          	System.out.println("Yes");
        } else {
          	System.out.println("No");
        }
     }
}

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

#include<stdio.h>

int main(void){
  int a,b,
  scanf("%d",&a);
  scanf("%d",&b);
  
  if(a==B){
    printf("Yes");
  }else{
    printf("No");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected declaration specifiers or '...' before string constant
    5 |   scanf("%d",&a);
      |         ^~~~
main.c:5:14: error: expected declaration specifiers or '...' before '&' token
    5 |   scanf("%d",&a);
      |              ^
main.c:8:9: error: 'B' undeclared (first use in this function)
    8 |   if(a==B){
      |         ^
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

    #include <vector>
    #include <string>
    #include <tuple>
    #include <iostream>
    #include <sstream>
    #include <algorithm>
    #include <set>
    #include <map>
    #include <cmath>
    #include <numeric>
    #include <queue>
    #include <conio.h>

    #define ll long long
    #define ld long double

    using namespace std;

    vector<ll> vert;

    ll getComp(ll v) {
        if(vert[v] == v) {
            return v;
        } else {
            return vert[v] = getComp(vert[v]);
        }
    }

    void edg(ll a, ll b) {
        a = getComp(a);
        b = getComp(b);
        vert[a] = b;
    }

    vector<vector<ll>> mat;

    ll dx[]{0, 1, 0, -1};
    ll dy[]{1, 0, -1, 0};

    bool isValid(ll x, ll y, ll n, ll m) {
        return x >= 0 && x < n && y >= 0 && y < m;
    }

    int main() {
        ll n, m;cin >> n >> m;cout << ((n == m) ? "Yes" : "No");
    }


Compiler output:
a.cc:12:14: fatal error: conio.h: No such file or directory
   12 |     #include <conio.h>
      |              ^~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        String N = scan.nextLine();
        String M = scan.nextLine();
        
        if( N == M ) {
            System.out.System.out.println("Yes");
        } else {
            System.out.System.out.println("No");    
        }
        
    }
}


Compiler output:
Main.java:12: error: cannot find symbol
            System.out.System.out.println("Yes");
                      ^
  symbol:   variable System
  location: variable out of type PrintStream
Main.java:14: error: cannot find symbol
            System.out.System.out.println("No");    
                      ^
  symbol:   variable System
  location: variable out of type PrintStream
2 errors
Language: C++

package main

import "fmt"

func main() {
	var n, m int
	fmt.Scan(&n, &m)

	if n == m {
		fmt.Println("Yes")
	} else {
		fmt.Println("No")
	}
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: C++

#include<iostream>
useing namespace std;

int main() {
  int N, M;
  cin >> N >> M;
  if(N == M) cout << "Yes" << endl;
  	else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc:2:1: error: 'useing' does not name a type
    2 | useing namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> N >> M;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(N == M) cout << "Yes" << endl;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   if(N == M) cout << "Yes" << endl;
      |                               ^~~~
      |                               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         else cout << "No" << endl;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |         else cout << "No" << endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include <stdio.h>
int main() {
        int n,m;
        scanf("%d %d", &n &m);
        if (n == m) {
                printf("Yes\n");
        } else {
                printf("No\n");
        }
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:27: error: invalid operands to binary & (have 'int *' and 'int')
    4 |         scanf("%d %d", &n &m);
      |                        ~~ ^
      |                        |
      |                        int *
Language: C

#include <stdio.h>
int main() {
        int n,m;
        scanf("%d %d", &n &m);
        if (n == m) {
                print("Yes\n");
        } else {
                print("No\n");
        }
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:27: error: invalid operands to binary & (have 'int *' and 'int')
    4 |         scanf("%d %d", &n &m);
      |                        ~~ ^
      |                        |
      |                        int *
main.c:6:17: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |                 print("Yes\n");
      |                 ^~~~~
      |                 printf
Language: C++

#include <iostream>
#include <cmath>
#include <cstdio>
#include<cstring>
#include<algorithm>
#include<map>
using namespace std;

int main()
{
  int n,m;
  cin >> n>> m;
  if (n == m)
    {
      cout << "Yes" <<endl;
    }
  else
    {
      cout << "No" << endl
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: expected ';' before '}' token
   19 |       cout << "No" << endl
      |                           ^
      |                           ;
   20 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main() {

	int m, n;
  cin >> m > >n;
  if(m == n) {
  cout << "Yes\n";
  } else {
    cout << "No\n";
  }
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected primary-expression before '>' token
    8 |   cin >> m > >n;
      |              ^
Language: C++

#include <iostream>

int main()
{
  int n, m;
  cin >> n >> m;
  if(n == m)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  returrn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> n >> m;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << "Yes" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << "Yes" << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << "No" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << "No" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:3: error: 'returrn' was not declared in this scope
   11 |   returrn 0;
      |   ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namepsace std;
int main()
{
int n,m;cin>>n>>m;if(m<n) cout<<"No\n";else cout<<"Yes\n";return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepsace'
    2 | using namepsace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | int n,m;cin>>n>>m;if(m<n) cout<<"No\n";else cout<<"Yes\n";return 0;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:27: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 | int n,m;cin>>n>>m;if(m<n) cout<<"No\n";else cout<<"Yes\n";return 0;
      |                           ^~~~
      |                           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:45: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 | int n,m;cin>>n>>m;if(m<n) cout<<"No\n";else cout<<"Yes\n";return 0;
      |                                             ^~~~
      |                                             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
#define INF (1e9 + 7)
#define mp make_pair
#define pb push_back
#define MAXN 4004
using namespace std;
typedef long long int lo;
lo dp[MAXN];

int main(){
    //freopen("input.txt","r",stdin);
    //freopen("ot.txt","w",stdout);
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);
    
    lo a,b;
    cin >> a >> b;
    if(a == b) cout << "YES";
    else cout << "NO;"

}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:23: error: expected ';' before '}' token
   19 |     else cout << "NO;"
      |                       ^
      |                       ;
   20 | 
   21 | }
      | ~