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

#include <stdio.h>

int main() {
  int i,n,t,time,cost,min_cost;
  min_time = 0;
  scanf("%d %d", &n, &t);
  for(i=0;i<n;i++) {
    scanf("%d %d", &cost, &time);
    if(time <= t && (min_cost == 0 || min_cost > cost)) {
	min_cost = cost;
    }
  }
  if(min_cost == 0) {
    printf("TLE");
  }else{
    printf("%d",min_cost);
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'min_time' was not declared in this scope
    5 |   min_time = 0;
      |   ^~~~~~~~
Language: C


#include <string>
int main(int argc,char *argv[]){
	if(*argv[1]=='1'){
		printf("Hello World\n");
	}
	else{
		int a,b,c;
		a=atoi(argv[2]);
		b=atoi(argv[3]);
		c=a+b;
		printf("%d\n",c );
	}
}

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

#include <stdio.h>

int main(void){
	int x,a,b;
	scanf("%d",%x);
	if(x==1){
		printf("Hello World");
	}
	else if(x==2){
		scanf("%d %d",&a,&b);
		printf("%d",a+b);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: expected primary-expression before '%' token
    5 |         scanf("%d",%x);
      |                    ^
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args){

        MyScanner sc = new MyScanner();

        int N = sc.nextInt();    	
        int A = sc.nextInt();
        int B = sc.nextInt();

        
        String ans = "Hello World";
        
        if( N == 1){
        	System.out.print(ans);
        } else {
        	System.out.print(A+B);
        }

        
        
        
    }
  }

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

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		
		if(n == 1){
			System.out.println("Hello World");
		}else{
			int a = sc.nextInt();
			int b = sc.nextInt();

			System.out.println(a + b);
		}
	}
}


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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

#include  < iostream >
using namespace std;

int main(){

int N,A,B;
cin << N ;
cin<<A;
cin<<B;

if(N==1){
cout >> "Hello World" ;
else{
cout >> A+B;
}


return 0;
}

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

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

public class A_ProgrammingEducation {

	public static void main(String[] args) throws IOException{
		// TODO Auto-generated method stub
		
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(reader.readLine());
		int a,b;
		
		if(n==1)
		{
			System.out.println("Hello World");
		}
		else if(n==2)
		{
			String s =reader.readLine();
			String[] inp = s.split(" ");
			a=Integer.parseInt(inp[0]);
			b=Integer.parseInt(inp[1]);
			System.out.println(a+b);
			
		}
	}
	

}


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

#include <bits/stdc++.h>

#define rep(i,n) for(long long int (i)=0;(i)<(int)(n);(i)++)
#define rrep(i,a,b) for(long long int i=(a);i<(b);i++)
#define rrrep(i,a,b) for(long long int i=(a);i>=(b);i--)
#define all(v) (v).begin(), (v).end()
#define pb(q) push_back(q)
#define Size(n) (n).size()
#define Cout(x) cout<<(x)<<endl

typedef long long ll;

using namespace std;

const int INF = 1e9,MOD = 1e9 + 7,ohara = 1e6;
const ll LINF = 1e18;
long long int n,cnt=0,ans=0,a,b,c,d,cmp,cmpp,m,h,w,x,y,sum=0,pos;
int dy[]={1,0,-1,0};
int dx[]={0,1,0,-1};
string alph("abcdefghijklmnopqrstuvwxyz"),s;
bool fl;
struct edge{int to,cost;};

//-------------------------↓↓↓↓↓↓------------------------

int main(void){
  
       cin.tie(0);
    ios::sync_with_stdio(false);
      
      cin>>n;
      if(n==2)cin>>a>>b;Cout(a+b);
      else Cout("Hello World");
    
       
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:7: error: 'else' without a previous 'if'
   33 |       else Cout("Hello World");
      |       ^~~~
Language: C

main(a,b,n){
  scanf("%d",&n);
  if(n=1)puts("Hello World");
  else if{scanf("%d%d",&a,&b);printf("%d",a+b);}
}


Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,n){
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:2:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 |   scanf("%d",&n);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b,n){
main.c:2:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 |   scanf("%d",&n);
      |   ^~~~~
main.c:2:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:10: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    3 |   if(n=1)puts("Hello World");
      |          ^~~~
main.c:3:10: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:4:10: error: expected '(' before '{' token
    4 |   else if{scanf("%d%d",&a,&b);printf("%d",a+b);}
      |          ^
      |          (
main.c:4:31: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |   else if{scanf("%d%d",&a,&b);printf("%d",a+b);}
      |                               ^~~~~~
main.c:4:31: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:31: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:31: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<iostream>
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    if(a==2){
         cout<<b+c<<endl;
    }
    else{
         cout<<“Hello World”<endl;
    }
    return 0;
}


Compiler output:
a.cc:10:16: error: extended character “ is not valid in an identifier
   10 |          cout<<“Hello World”<endl;
      |                ^
a.cc:10:23: error: extended character ” is not valid in an identifier
   10 |          cout<<“Hello World”<endl;
      |                       ^
a.cc: In function 'int main()':
a.cc:10:16: error: '\U0000201cHello' was not declared in this scope
   10 |          cout<<“Hello World”<endl;
      |                ^~~~~~
Language: C

#include <stdio.h>

int main()
{
  int n, a, b;

  scanf("%d",&n);
if(n==1)
printf("Hello World\n");
else
scanf("%d%d",&a,&b),printf("%d\n",a+b);

return0;
}

Compiler output:
main.c: In function 'main':
main.c:13:1: error: 'return0' undeclared (first use in this function)
   13 | return0;
      | ^~~~~~~
main.c:13:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>

using namespace std;

int main()
{
  int year;
  cin >> year;
  
  (year) ? 
  {cout << "Hello World" << endl;} :
  {cin >> a >> b; cout << a + b << endl;};
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected primary-expression before '{' token
   11 |   {cout << "Hello World" << endl;} :
      |   ^
a.cc:10:11: error: expected ':' before '{' token
   10 |   (year) ?
      |           ^
      |           :
   11 |   {cout << "Hello World" << endl;} :
      |   ~        
a.cc:11:3: error: expected primary-expression before '{' token
   11 |   {cout << "Hello World" << endl;} :
      |   ^
a.cc:11:36: error: expected primary-expression before ':' token
   11 |   {cout << "Hello World" << endl;} :
      |                                    ^
Language: C

main(a,b,n){
  scanf{"%d",&n};
  if(n=1)puts("Hello World");
  else if{scanf("%d%d",&a,&b);printf("%d",a+b);}
}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,n){
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:2:3: error: 'scanf' undeclared (first use in this function)
    2 |   scanf{"%d",&n};
      |   ^~~~~
main.c:2:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:2:8: error: expected ';' before '{' token
    2 |   scanf{"%d",&n};
      |        ^
      |        ;
main.c:3:10: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    3 |   if(n=1)puts("Hello World");
      |          ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
  +++ |+#include <stdio.h>
    1 | main(a,b,n){
main.c:4:10: error: expected '(' before '{' token
    4 |   else if{scanf("%d%d",&a,&b);printf("%d",a+b);}
      |          ^
      |          (
main.c:4:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   else if{scanf("%d%d",&a,&b);printf("%d",a+b);}
      |           ^~~~~
main.c:4:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:4:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:31: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |   else if{scanf("%d%d",&a,&b);printf("%d",a+b);}
      |                               ^~~~~~
main.c:4:31: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:31: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:31: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <iosteam>
using namespace std;
int main()
{
    int n;
    cin>>n;
    if(n==1)
        printf("Hello World");
    else
    {
        int a,b;
        cin>>a>>b;
        cout<<a+b;
    }
    return 0;
}


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

import java.util.*;

class Main {
	public static viod main(String[] args) {
		Scanner sc = new Scanner(system.in);
		
		int n = sc.nextInt();
		
		if (n == 1) {
			System.out.println("Hello World");
		} eles if (n == 2) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			
			System.out.println(a + b);
		}
	}
}

Compiler output:
Main.java:11: error: not a statement
		} eles if (n == 2) {
		  ^
Main.java:11: error: ';' expected
		} eles if (n == 2) {
		      ^
2 errors
Language: C++

#include<iostream>
using namespace std;
int main(void){
  int N;
  cin>>N;
  if(n==1){
    cout<<"Hello World"<<endl;
    return 0;
  }else{
    int A,B;
    cin>>A>>B;
    cout<<A+B<<endl;
	return 0;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: 'n' was not declared in this scope
    6 |   if(n==1){
      |      ^
Language: C++

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

int main(){

  int N,A,B;
  scanf("%d" ,&N);
  if(atoi(N)==1)printf("Hello World");
  else{
  scanf("%d" ,&A);
  scanf("%d" ,&B); 
  printf("%d",A+B);
  
  }
  

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    9 |   if(atoi(N)==1)printf("Hello World");
      |           ^
      |           |
      |           int
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/stdlib.h:36,
                 from a.cc:2:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int n;
	cin>>n>>a>>b;
	if(n==1)cout<<"Hello World"<<endl;
	else if(n==2){
		cout<<a+b<<endl;
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'a' was not declared in this scope
    5 |         cin>>n>>a>>b;
      |                 ^
a.cc:5:20: error: 'b' was not declared in this scope
    5 |         cin>>n>>a>>b;
      |                    ^
Language: C++

n = int(input())

if n == 1:
    print('Hello World')
else:
    A = int(input())
    B = int(input())
    print(A+B)


Compiler output:
a.cc:4:11: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    4 |     print('Hello World')
      |           ^~~~~~~~~~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int n;
	cin>>n;
	if(n==1)cout<<"Hello World"<<endl;
	else if(n==2){
		cin>>a>>b;
		cout<<a+b<<endl;
	}

	return 0;
}


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

#include<iostream>
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    if(a==1){
         cout<<“Hello World”<<endl;
    }
    else{
         cout<<b+c<<endl;
    }
    return 0;
}

Compiler output:
a.cc:7:16: error: extended character “ is not valid in an identifier
    7 |          cout<<“Hello World”<<endl;
      |                ^
a.cc:7:23: error: extended character ” is not valid in an identifier
    7 |          cout<<“Hello World”<<endl;
      |                       ^
a.cc: In function 'int main()':
a.cc:7:16: error: '\U0000201cHello' was not declared in this scope
    7 |          cout<<“Hello World”<<endl;
      |                ^~~~~~
Language: C++

include<iostream>
using namespace std;
int main(){
	int n;
	cin>>n;
	if(n==1){
		cout<<"Hello World";
	}
	else {
		int b;
		cin>>n>>b;
		cout<<n+b;
	}
	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>n;
      |         ^~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout<<"Hello World";
      |                 ^~~~
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout<<n+b;
      |                 ^~~~
Language: C++

n = int(input())
if n == 1:
    print('Hello World')
else:
    a = int(input())
    b = int(input())
    print(a+b)


Compiler output:
a.cc:3:11: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    3 |     print('Hello World')
      |           ^~~~~~~~~~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int n;
	cin>>n;
	if(n==1)cout<<"Hello World"<<endl;
	else if(n==2){
		for(int i=0;i<2;i++){
			cin>>a[i];
		}
		cout<<a[0]+a[1]<<endl;
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: 'a' was not declared in this scope
    9 |                         cin>>a[i];
      |                              ^
a.cc:11:23: error: 'a' was not declared in this scope
   11 |                 cout<<a[0]+a[1]<<endl;
      |                       ^
Language: C++

#include <stdio.h>

main(void)
{
  int N,A,B;
  char s;
  scanf("%d",&N);
  if
  {
    N==1
    printf("Hello World\n");
  }
  else
  {
    N==2
    scanf("%d %d",&A,&B);
    printf("%d",A+B);
  }
  return 0;
}
  

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(void)
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:3: error: expected '(' before '{' token
    9 |   {
      |   ^
      |   (
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else
      |   ^~~~
a.cc:15:9: error: expected ';' before 'scanf'
   15 |     N==2
      |         ^
      |         ;
   16 |     scanf("%d %d",&A,&B);
      |     ~~~~~
Language: C++

#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector> 
#include<limits>
#include<numeric>
#include<type_traits>
#include<math.h>
using namespace std;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define in(x) cin >> x
#define out(str) cout << str << endl

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }



int main(){
    int N,A,B;
cin>>N;
if(N==1){
out(“Hello World”);
}
else{
cin>>A>>B;
out(A+B);
}

}


Compiler output:
a.cc:26:5: error: extended character “ is not valid in an identifier
   26 | out(“Hello World”);
      |     ^
a.cc:26:12: error: extended character ” is not valid in an identifier
   26 | out(“Hello World”);
      |            ^
a.cc: In function 'int main()':
a.cc:26:5: error: '\U0000201cHello' was not declared in this scope
   26 | out(“Hello World”);
      |     ^~~~~~
a.cc:15:26: note: in definition of macro 'out'
   15 | #define out(str) cout << str << endl
      |                          ^~~
Language: C

#include <stdio.h>
int main()
{
  unsigned int N;
  int A, B;
  
  scanf (%d %d %d, &N, &A, &B);
  
  if (N==1){
    printf ("Hello World");
  }
  
  else if (N==2){
    printf ("%d", A+B);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: expected expression before '%' token
    7 |   scanf (%d %d %d, &N, &A, &B);
      |          ^
Language: C

#include<stdio.h>

int main()
{
	int A=0,B=0,N=0;

	scanf_s("%d", &N);

	if (N == 1) {
		printf("Hello World");
	}
	else if (N == 2) {
		scanf_s("%d,&A");
		scanf_s("%d,&B");
		printf("%d", A + B);
	}

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%d", &N);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iosream>
using namespace std;

int mian(){
	int age;
	
	cin >> age;
	
	if(age==1){
		cout << "Hello World" << endl;
	}
	if(age==2){
		int a,b;
		
		cin >> a >> b;
		cout << a+b << endl;
	}
	return 0;
}

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

#!/usr/bin/env python

from collections import deque
import itertools as it
import sys
import math

sys.setrecursionlimit(1000000)

INF = 10 ** 18

N = input()

if N == 1:
    print "Hello World"
else:
    A = input()
    B = input()
    print A + B

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python
      |  ^
a.cc:3:1: error: 'from' does not name a type
    3 | from collections import deque
      | ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
  
int main()
{
  long n;
  cin>>n;
  if(n&1)	cout<<"Hello world";
  else
  {
    long a,b;
    cin>>a>>b;
    cout<<a+b;
  }
  return 0;

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

#include <stdio.h>
int main()
{
  unsigned int N;
  int A, B;
  
  scanf (%d\n%d\n%d, &N, &A, &B);
  
  if (N==1){
    printf ("Hello World");
  }
  
  else if (N==2){
    printf ("%d", A+B);
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:10: error: expected expression before '%' token
    7 |   scanf (%d\n%d\n%d, &N, &A, &B);
      |          ^
main.c:7:12: error: stray '\' in program
    7 |   scanf (%d\n%d\n%d, &N, &A, &B);
      |            ^
main.c:7:16: error: stray '\' in program
    7 |   scanf (%d\n%d\n%d, &N, &A, &B);
      |                ^
Language: C++

#include <stdio.h>

int main(void)
{
	int N, A, B;
	scanf_s("%d",&N);
	if (N == 1)printf("Hello World");
	else {
		scanf_s("%d%d", &A, &B);
		printf("%d", A + B);
	}
	getchar();
	return 0;
}

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

#include <iostream>
#include <vector>

using namespace std;

int main()
{
    //年
    int n;
    cin>>n;

    //分岐
    if(n==1) 
    {
        cout<<"Hello world"<<endl;
        return 0;
    }
    else if(n==2)
    {
        int A, B;
        cin>>A>>B;
        cout<<A+B<<endl;
        return 0;
    }

    return 0;
}

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

#include<bits/stdc++.h>
using namespace std
  
int main()
{
  long n;
  cin>>n;
  if(n&1)	cout<<"Hello world";
  else
  {
    long a,b;
    cin>>a>>b;
    cout<<a+b;
  }
  return 0;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main()
      | ~~~
Language: C++

//Even better better solutions q{^.^}p

//#define ONLINE_JUDGE //in case i forget to uncomment this, sometimes the grader defines the macro ^.^
#ifdef ONLINE_JUDGE
#include <bits/stdc++.h>
#else
#include "stdc++.h"
#endif

#define MAX(x, y) (((x) > (y)) ? (x) : (y))
#define MIN(x, y) (((x) < (y)) ? (x) : (y))

using namespace std;

signed main() {
#ifndef ONLINE_JUDGE
    freopen("/Users/kdkdk/Desktop/input.txt", "r", stdin);
    //freopen("/Users/kdkdk/Desktop/output.txt", "w", stdout);
#endif
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    
    int n;
    cin >> n;
    if (n == 1) cout << "Hello World" << endl;
    else {
        int a, b;
        cin >> a >> b;
        cout << a+b << endl;
    }
    
    return 0;
}


Compiler output:
a.cc:7:10: fatal error: stdc++.h: No such file or directory
    7 | #include "stdc++.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    if(a==1){
         cout<<“Hello World”<<endl;
    }
    else{
        cout<<b+c<<endl;
    }
    return 0;
}

Compiler output:
a.cc:7:16: error: extended character “ is not valid in an identifier
    7 |          cout<<“Hello World”<<endl;
      |                ^
a.cc:7:23: error: extended character ” is not valid in an identifier
    7 |          cout<<“Hello World”<<endl;
      |                       ^
a.cc: In function 'int main()':
a.cc:7:16: error: '\U0000201cHello' was not declared in this scope
    7 |          cout<<“Hello World”<<endl;
      |                ^~~~~~
Language: C

#include<stdio.h>
int main(coid){
int N,A,B,SUM;
if(N==1){
  printf("Hello World");
}else if(N>=2){
  scanf("%d",A);
  scanf("%d",B);
  SUM=A+B;
  prinf("%d",SUM);
}
}

Compiler output:
main.c: In function 'main':
main.c:2:5: error: type of 'coid' defaults to 'int' [-Wimplicit-int]
    2 | int main(coid){
      |     ^~~~
main.c:10:3: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |   prinf("%d",SUM);
      |   ^~~~~
      |   printf
Language: C++


import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.*;
import java.util.*;
import java.util.Map.Entry;

public class Main {

	public static void main(String[] args) throws IOException {
		FastReader in = new FastReader(System.in);
		PrintWriter out = new PrintWriter(System.out);

		int n = in.nextInt();
		if (n == 1) {
			out.println("Hello World");
		} else if (n == 2) {
			out.println(in.nextInt() + in.nextInt());
		}
		out.flush();
		out.close();

	}

	static class FastReader {
		StringTokenizer st;
		BufferedReader br;

		public FastReader(InputStream s) {
			br = new BufferedReader(new InputStreamReader(s));
		}

		public FastReader(FileReader fileReader) {
			br = new BufferedReader(fileReader);
		}

		public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public String nextLine() throws IOException {
			return br.readLine();
		}

		public boolean ready() throws IOException {
			return br.ready();
		}
	}

}

Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.FileReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.io.IOException;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.io.InputStream;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: 'import' does not name a type
    7 | import java.io.PrintWriter;
      | ^~~~~~
a.cc:7:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: 'import' does not name a type
    8 | import java.math.*;
      | ^~~~~~
a.cc:8:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:9:1: error: 'import' does not name a type
    9 | import java.util.*;
      | ^~~~~~
a.cc:9:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:10:1: error: 'import' does not name a type
   10 | import java.util.Map.Entry;
      | ^~~~~~
a.cc:10:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:12:1: error: expected unqualified-id before 'public'
   12 | public class Main {
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>
main(int argc, char const *argv[])
{
    int n,a,b;
    cin>>n;
    if(n==1){
        cout<<"Hello World";
    }else{
        cin>>a>>b;
        cout<<a+b;
    }
    return 0;
}


Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(int argc, char const *argv[])
      | ^~~~
a.cc: In function 'int main(int, const char**)':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>n;
      |     ^~~
      |     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:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout<<"Hello World";
      |         ^~~~
      |         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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout<<a+b;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.*;
import java.io.*;
public class first{
public static void main(String[] args)throws IOException {
    FastReader in=new FastReader(System.in);
    int n=in.nextInt();
    if(n==1)
    System.out.println("Hello World");
    else if(n==2)
    {
        int a,b;
        a=in.nextInt();
        b=in.nextInt();
        System.out.println(a+b);
    }
}
}
class FastReader {
 
    byte[] buf = new byte[2048];
    int index, total;
    InputStream in;
 
    FastReader(InputStream is) {
        in = is;
    }
 
    int scan() throws IOException {
        if (index >= total) {
            index = 0;
            total = in.read(buf);
            if (total <= 0) {
                return -1;
            }
        }
        return buf[index++];
    }
 
    String next() throws IOException {
        int c;
        for (c = scan(); c <= 32; c = scan());
        StringBuilder sb = new StringBuilder();
        for (; c > 32; c = scan()) {
            sb.append((char) c);
        }
        return sb.toString();
    }
    String nextLine() throws IOException {
        int c;
        for (c = scan(); c <= 32; c = scan());
        StringBuilder sb = new StringBuilder();
        for (; c !=10; c = scan()) {
            sb.append((char) c);
        }
        return sb.toString();
    }
    char nextChar() throws IOException{
        int c;
         for (c = scan(); c <= 32; c = scan());
         return (char)c;
        }
 
    int nextInt() throws IOException {
        int c, val = 0;
        for (c = scan(); c <= 32; c = scan());
        boolean neg = c == '-';
        if (c == '-' || c == '+') {
            c = scan();
        }
        for (; c >= '0' && c <= '9'; c = scan()) {
            val = (val << 3) + (val << 1) + (c & 15);
        }
        return neg ? -val : val;
    }
 
    long nextLong() throws IOException {
        int c;
        long val = 0;
        for (c = scan(); c <= 32; c = scan());
        boolean neg = c == '-';
        if (c == '-' || c == '+') {
            c = scan();
        }
        for (; c >= '0' && c <= '9'; c = scan()) {
            val = (val << 3) + (val << 1) + (c & 15);
        }
        return neg ? -val : val;
    }
}

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

#include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <cmath>
#include<climits>
#include <string>
#include <map>
#include <set>
#include <list>

#define ll long long
#define fornum(A,B,C) for(A=B;A<C;A++)

using namespace std;

int i,j,k,l,m,n;
/////////////////////////////////////////////////////


int N,A,B;
int main(){
    scanf("%d",&N);
    if(N==1){
        printf("Hello World");
    }else{
        scnaf("%d%d",&A,&B);
        printf("%d",A+B);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:9: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
   28 |         scnaf("%d%d",&A,&B);
      |         ^~~~~
      |         scanf
Language: C++

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


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

#include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <cmath>
#include<climits>
#include <string>
#include <map>
#include <set>
#include <list>

#define ll long long
#define fornum(A,B,C) for(A=B;A<C;A++)

using namespace std;

int i,j,k,l,m,n;
/////////////////////////////////////////////////////


int N,A,B;
int main(){
    scnaf("%d",&N);
    if(N==1){
        printf("Hello World");
    }else{
        scnaf("%d%d",&A,&B);
        printf("%d",A+B);
    }
    return 0;
}

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

#include <iostream>

using namespace std;

int main() {
	int N,A,B;

	cin >> N;
	
	
	if (N == 1) {
		cout << "Hello World" << endl;
		exit(0);
	}
	
	cin >>A;
	cin>> B;
	
	cout << A + B << endl
	
}

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

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

int main(){
  int n, a, b;
  cin >> n;
  if(n == 1){
    cout "Hello World" << endl;
  }
  else {
    cin >> a >> b;
    cout << a+b << endl; 
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ';' before string constant
   10 |     cout "Hello World" << endl;
      |         ^~~~~~~~~~~~~~
      |         ;
Language: C++

#include <iostrea>
using namespace std;

int main(){
  int a,b,n;
  cin >> n ;
  if(n-1){
   	cin >>a >> b;
    cout << a+b << endl;
  }
  else{
    cout << "Hello World" << endl;
  }
  return 0;
  
}

  

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

#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdlib>
#include<ctime>
#include<cstdio>
//#include<string>
//#include<sstream>
using namespace std;
long long a[10000];
int main()
{
	int N,a,b;
	scanf("%d",&n);
	if(n==1){
		printf("Hello World\n");
	} 
	else if(n==2){
		scanf("%d%d",&a,&b);
		printf("%d\n",a+b);
	}
}

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

#include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <cmath>
#include<climit>
#include <string>
#include <map>
#include <set>
#include <list>

#define ll long long
#define fornum(A,B,C) for(A=B;A<C;A++)

using namespace std;

int i,j,k,l,m,n;
/////////////////////////////////////////////////////


int N,A,B;
int main(){
    scnaf("%d",&N);
    if(N==1){
        printf("Hello World");
    }else{
        scnaf("%d%d",&A,&B);
        printf("%d",A+B);
    }
    return 0;
}

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

#include <stdio.h>

int main(void){
    int n,a,b;
    scanf("%d",&n);
    if(n==1){
        printf("Hello World\n");
    }
    else if(n==2){
        scanf("%d %d",&a,&b);
        printf("%d\n",a+b);
    }
    return 0:
}

Compiler output:
main.c: In function 'main':
main.c:13:13: error: expected ';' before ':' token
   13 |     return 0:
      |             ^
      |             ;
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int mode = Integer.parseInt(scanner.nextLine());
        if (mode == 1) {
            new Main().helloWorld();
            return;
        }

        int a = Integer.parseInt(scanner.nextLine());
        int b = Integer.parseInt(scanner.nextLine());

        new Main().plus(a, b);
    }

    public void helloWorld(void) {
        System.out.println("Hello World");
    }

    public void plus(int a, int b) {
        System.out.println(a + b);
    }
}


Compiler output:
Main.java:18: error: <identifier> expected
    public void helloWorld(void) {
                               ^
1 error
Language: C++

#include<bits/stdc++.h>
#define pb push_back
#define ppb pop_back
#define mer make_pair
#define fi first
#define se second
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef pair<pair<int,int>,int> piii;
typedef pair<int,pair<int,int> > ipii;
typedef pair<pii,pii> pi4;
const int vbi=999999999;

void cin_bin(){
	char bin[10000];
	gets(bin);
}

vector<int> jz10_2(int a){
	vector<int> ans;
	while(a!=0){
		ans.pb(a%2);
		a/=2;
	}
	reverse(ans.begin(),ans.end());
	return ans;
}

int main(){
	//my new name is Veex
	//clock_t start1=clock();
	int n;
	cin>>n;
	if(n==1){
		cout<<"Hello World";
	}
	else{
		int a,b;
		cin>>a>>b;
		cout<<a+b;
	}
	//cout<<endl<<((double)(clock()-start1)/CLOCKS_PER_SEC);
	return 0;
}


Compiler output:
a.cc: In function 'void cin_bin()':
a.cc:18:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   18 |         gets(bin);
      |         ^~~~
      |         getw
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

    int input;
    cin >> number;
    
    if(number == 1){
        cout << "Hello World";
    }else{
        int a,b;
        cin >> a >> b;
        cout << a+b;
    }

    return 0;
}


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

#define debug_interval ' '
#define dump_interval ','
#define debug_toggle 1
//{
#include<bits/stdc++.h>
using namespace std;
#define int long long

#define rep(i,n) for(int i=0;i<(n);i++)
#define pb push_back
#define all(v) (v).begin(),(v).end()
#define rall(v) (v).rbegin(),(v).rend()
#define fi first
#define se second
#define mp make_pair
#define rev reverse
 
//{
inline int toInt(string s){int v;istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x){ostringstream sout;sout<<x;return sout.str();}
template<class...A> inline void dump(){cout<<endl;}
template<class...A> inline void dump_rest() {cout<<endl;}
template<class T, class...A> inline void dump_rest(const T& first, const A&... rest){cout<<dump_interval<<first;dump_rest(rest...);}
template<class T,class...A> inline void dump(const T&first,const A&...rest){cout<<first;dump_rest(rest...);}
template<class...A> inline void debug(){cerr<<endl;}
template<class...A> inline void debug_rest() {cerr<<endl;}
template<class T, class...A> inline void debug_rest(const T& first, const A&... rest){cerr<<debug_interval<<first;debug_rest(rest...);}
template<class T,class...A> inline void debug(const T&first,const A&...rest){if(debug_toggle)cerr<<first,debug_rest(rest...);}
//}

typedef vector<int>vint;
typedef pair<int,int>pint;
typedef vector<pint>vpint;

template<typename A,typename B>inline void chmin(A &a,B b){if(a>b)a=b;}
template<typename A,typename B>inline void chmax(A &a,B b){if(a<b)a=b;}


//}
int n,m,ans;

void solve(int t){
	cin>>n;
	if(n==1)dump("Hello World");
	else {
		cin>>n>>m;
		dump(n+m);
	}
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

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

int main(void){
  int i,N,A,B;
  scanf("%d",&N);
  if(N==1)printf("Hello World\n");
  else{
    scanf("%d%d",&A,&B);
    printf("%d\n",A+B)
  }


}


Compiler output:
main.c: In function 'main':
main.c:11:23: error: expected ';' before '}' token
   11 |     printf("%d\n",A+B)
      |                       ^
      |                       ;
   12 |   }
      |   ~
Language: C++

#include<iostream>
using namaspace std;
int main()
{
	int n;
	cin>>n;
	if(n==1){
		cout<<"Hello World"<<endl;
	}
	else {
		int a,b;
		cin>>a>>b;
		cout<<a+b<<endl;
	}
}

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:9: 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:8:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |                 cout<<"Hello World"<<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:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |                 cout<<"Hello World"<<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:13:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |                 cout<<a+b<<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:13:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |                 cout<<a+b<<endl;
      |                            ^~~~
      |                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>

using namespace std;

inline int read()
{
   int x=0,f=1;char ch=getchar();
   while (!isdigit(ch)){if (ch=='-') f=-1;ch=getchar();}
   while (isdigit(ch)){x=(x<<1)+(x<<3)+ch-'0';ch=getchar();}
   return x*f;
}

int a,b,n;

int main()
{
  n=read();
  if (n==1)
  {
  	cout<<"Hello World";
  	return 0;
  }
  a=read();
  b=read();
  
  else cout<<a+b;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:3: error: 'else' without a previous 'if'
   30 |   else cout<<a+b;
      |   ^~~~
Language: C++

#include <iostream>
#include <utility>
#include <vector>
#include <queue>
#include <stack>
#include <array>
#include <algorithm>
#include <numeric>
#include <limits>
#include <string>
#include <regex>
#include <cstdio>
#include <cstring>
#include <cmath>
#define INF 2000000000
#define REP(i,b,n) for(int i = (b); i < n; i++)
#define rREP(i,b,n) for(int i = n; i >= b; i--)
using namespace std;
using ll = long long;
using pi = pair<int, int>;
using vi = vector<int>;
using vvi = vector<vi>;
const int dx[] = {1, 0, -1, 0};
const int dy[] = {0, 1, 0, -1};
const string lowercase = "abcdefghijklmnopqrstuvwxyz";
const string uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int gcd(int a, int b){return b ? gcd(b, a % b): a;}

int main()
{
    int n;
    if(n==1){
        cout << "Hello World" << endl;
    }
    else{
        int a, b;
        cin >> a >> b;
        cou << a+b << endl;
    }
    return 0;
}


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

#include <bits/stdc++.h>
using namespace std；
int n;
int a, b;

int main() {
	cin >> n;
	if(n == 1) puts("Hello World");
	else {
		cin >> a >> b;
		cout << a + b << endl;
	}
}

Compiler output:
a.cc:2:17: error: 'std\U0000ff1b' is not a namespace-name
    2 | using namespace std；
      |                 ^~~~~
a.cc:2:22: error: expected ';' before 'int'
    2 | using namespace std；
      |                      ^
      |                      ;
    3 | int n;
      | ~~~                   
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> n;
      |         ^~~
      |         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:11:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |                 cout << a + b << 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:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |                 cout << a + b << 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)
      |     ^~~~
Language: C++

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

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

    if (N == 1) {
        cout << "Hello World" << endl;
    }
    else {
        cin >> A >> B;
        cout << A + B << endl;
    }
}

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

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main() {
  ll a,b;
  cin>>a>>b;
  vector<ll>vec(0);
  for(ll i=0;i<a;i++){
    ll c,d;
    cin>>>c>>d;
    if(d<=b){
      vec.push_back(c);
    }
  }
  if(vec.size()==0){
    cout<<"TLE"<<endl;
  }
  else{
    sort(vec.begin(),vec.end());
    cout<<vec.at(0)<<endl;
  }
  return 0;
}
  
  
    
    
  


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

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

int main(){
  int N,T;cin>>N>>T;
  vector<pair<int,int>> A;
  for(int i=0;i<N;i++){
    int c,t;cin>>c>>t;
    A.push_back(make_pair(c,t));
  }
  sort(A.begin(),A.end());
  int ans=0;
  for(int i=0;i<N;i++){
    if(A.at(i).second<=T){
      ans=A.at(i).first;
      break;
    }
  }
  cout<<(ans==0?"TLE":ans)<<endl;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:19:16: error: operands to '?:' have different types 'const char*' and 'int'
   19 |   cout<<(ans==0?"TLE":ans)<<endl;
      |          ~~~~~~^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int inf{int(1e9)};
int main(void){
  //input
  int N, T;
  cin >> N >> T;
  /*
  vector <int> c(N);
  vector <int> t(N);
  rep(i,N) cin >> c[i] >> t[i];
  */

  //solve
  //int MAX = 1 << 30;  //2の30乗
  int ans = inf;  //コスト

  rep(i,N){
    int c, t;
    cin >> c >> t;
    if (t <= T) ans = min(ans, c);
  }
  if (ans < MAX) cout << ans << endl;
  else cout << "TLE" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:13: error: 'MAX' was not declared in this scope
   27 |   if (ans < MAX) cout << ans << endl;
      |             ^~~