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

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude <bits/stdc++.h>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "Hello World" << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:30: error: 'endl' was not declared in this scope
    8 |     cout << "Hello World" << endl;
      |                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude <bits/stdc++.h>
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << a + b << endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:22: error: 'endl' was not declared in this scope
   13 |     cout << a + b << endl;
      |                      ^~~~
a.cc:13:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#inlcude <bits/stdc++.h>
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;
  }
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude <bits/stdc++.h>
a.cc:7:15: error: 'cout' was not declared in this scope
    7 |   if (n == 1) cout << "Hello World" << endl;
      |               ^~~~
a.cc:7:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:40: error: 'endl' was not declared in this scope
    7 |   if (n == 1) cout << "Hello World" << endl;
      |                                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude <bits/stdc++.h>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << a + b << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |     cout << a + b << endl;
      |                      ^~~~
a.cc:10:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(ll i=0; i<n; i++)
typedef long long ll;
typedef long long unsigned int llu;
ll MOD = 1000000007;
ll INF = 1e9+1;


void solve(){
    int n;
    cin >> n;
    if(n==1){
        cout << 'Hello World' << emndl;
    }
    else{
        int a,b;
        cin >> a >> b;
        cout << a+b << endl;
    }
}

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  solve();
  return 0;
}


Compiler output:
a.cc:14:17: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
   14 |         cout << 'Hello World' << emndl;
      |                 ^~~~~~~~~~~~~
a.cc: In function 'void solve()':
a.cc:14:34: error: 'emndl' was not declared in this scope
   14 |         cout << 'Hello World' << emndl;
      |                                  ^~~~~
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>n>>a>>b;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclue<bits/stdc++.h>
a.cc:9:2: error: 'cout' was not declared in this scope
    9 |  cout<<"Hello"<<" "<<"World"<<endl;
      |  ^~~~
a.cc:9:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:31: error: 'endl' was not declared in this scope
    9 |  cout<<"Hello"<<" "<<"World"<<endl;
      |                               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclue<bits/stdc++.h>
a.cc:13:1: error: 'cout' was not declared in this scope
   13 | cout<<(a+b)<<endl;
      | ^~~~
a.cc:13:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:14: error: 'endl' was not declared in this scope
   13 | cout<<(a+b)<<endl;
      |              ^~~~
a.cc:13:14: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i < (n);++i)
typedef long long ll;
using namespace std;
 
int main(){
  int n,a,b;
  cin >> n >> a >>b;
  
  if(n == 1) cout << "Hello World" << endl;
  else cuot << a+b << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'cuot' was not declared in this scope
   11 |   else cuot << a+b << endl;
      |        ^~~~
Language: C++

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

int main(){
  int N, A, B;
  cin >> N;
  if(N==1){
    cout << "Hello World" << endl;
    return 0;
  }
  cin >> A >> B;
  cout << A+B << endl;g
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: 'g' was not declared in this scope
   12 |   cout << A+B << endl;g
      |                       ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); i++)
#define all(x) (x).begin(),(x).end()
#define dup(x,y) (((x)+(y)-1)/(y))
#define sz(x) (int)(x).size()
#define MOD 1000000007
using namespace std;
typedef long long ll;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:28: error: expected ';' before '}' token
   16 |         cout << a+b << endl
      |                            ^
      |                            ;
   17 |     }
      |     ~
Language: C

#include <stdio.h>
int n,a,b;
scanf("%d",&n);
if(n==1){
printf("Hello World!");
}
else {scanf("%d",&a);
     scanf("%d",&b);
      printf("%d",a+b);
     }

Compiler output:
main.c:3:7: error: expected declaration specifiers or '...' before string constant
    3 | scanf("%d",&n);
      |       ^~~~
main.c:3:12: error: expected declaration specifiers or '...' before '&' token
    3 | scanf("%d",&n);
      |            ^
main.c:4:1: error: expected identifier or '(' before 'if'
    4 | if(n==1){
      | ^~
main.c:7:1: error: expected identifier or '(' before 'else'
    7 | else {scanf("%d",&a);
      | ^~~~
Language: C++

#include<iostream.
using namespace std;

int main(){
   
   int n, a, b;
   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:1:19: error: missing terminating > character
    1 | #include<iostream.
      |                   ^
a.cc:1:9: fatal error: iostream.: No such file or directory
    1 | #include<iostream.
      |         ^
compilation terminated.
Language: C++

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

int main(){
  int 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: In function 'int main()':
a.cc:6:9: error: 'n' was not declared in this scope
    6 |   cin >>n;
      |         ^
Language: C++

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

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



}


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

#include <bits/stdc++.h>
using namespace 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: In function 'int main()':
a.cc:11:10: error: 'a' was not declared in this scope
   11 |   cin >> a >> b;
      |          ^
a.cc:11:15: error: 'b' was not declared in this scope
   11 |   cin >> a >> b;
      |               ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N=int(input())
      | ^
a.cc:4:1: error: expected unqualified-id before 'else'
    4 | else:
      | ^~~~
a.cc:6:5: error: 'B' does not name a type
    6 |     B=int(input());
      |     ^
a.cc:7:5: error: 'Ans' does not name a type
    7 |     Ans=A+B;
      |     ^~~
a.cc:8:10: error: expected constructor, destructor, or type conversion before '(' token
    8 |     print(Ans);
      |          ^
Language: C++

// Author: Mohammad Faisal
#include<iosteram>
using namespace std;
int main()
{
  int n;
  cin >> n;
  
  if(n==1)
    cout<<"Hello World"<<endl;
  else if(n==2)
  {
    int a,b;
    cin >> a >> b;
    cout<<(a+b)<<endl;
  }
  return 0;
}

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

#include <stdio.h>
int main(void)
{
  int n;
  int a,b;
  
  scanf("%d",&n);
  
  if (n=1)
    pritnf("Heloo World");
  
  if (n=2){
    scanf("%d\n%d",&a,&b);
    printf("%d",a+b);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |     pritnf("Heloo World");
      |     ^~~~~~
      |     printf
Language: C++

#include <iostream>
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:7:9: error: 'n' was not declared in this scope
    7 |     if (n == 1) cout << "Hello World" << endl;
      |         ^
Language: C

#include <bits/stdc++.h>
#include <chrono>
#define watch(x) cout << (#x) << " is " << (x) << endl
#define eps 1e-9
#define f first
#define s second

typedef long long ll;

using namespace std;

int main()

{
    ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);

    int n, a, b;

    cin >> n >> a >> b;

    if (n == 1) cout << "Hello World";
    else cout << a+b;

    return 0;
}


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

#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    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: In function 'int main()':
a.cc:14:6: error: expected '}' at end of input
   14 |     }
      |      ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C++

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main(
      |     ^~~~
a.cc:5:5: error: expected primary-expression before 'int'
    5 |     int n;
      |     ^~~
a.cc:5:5: error: expected '}' before 'int'
a.cc:4:3: note: to match this '{'
    4 |   {
      |   ^
a.cc:4:4: error: expected ')' before 'int'
    4 |   {
      |    ^
      |    )
    5 |     int n;
      |     ~~~
a.cc:3:9: note: to match this '('
    3 | int main(
      |         ^
a.cc:6:5: error: 'cin' does not name a type
    6 |     cin>>n;
      |     ^~~
a.cc:7:5: error: expected unqualified-id before 'if'
    7 |     if(n==1) cout<<"Hello World"; return 0;
      |     ^~
a.cc:7:35: error: expected unqualified-id before 'return'
    7 |     if(n==1) cout<<"Hello World"; return 0;
      |                                   ^~~~~~
a.cc:8:5: error: expected unqualified-id before 'else'
    8 |     else if(n==2)
      |     ^~~~
a.cc:15:3: error: expected declaration before '}' token
   15 |   }
      |   ^
Language: C

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <vector>
#define rep(i,n) for(int i=0;i<n;i++)
#define ll long long int
#define MAX 1000000007
using namespace std;

int main(void){
	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:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdil.h>

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

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

#include <stdil.h>

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

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

#include<bits/stdc++.h>
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:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#inlude <stdio.h>

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%d",&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlude <stdio.h>
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%d",&a);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |     printf("Hello World");
      |     ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:16: error: expected expression before '%' token
   14 |     scanf("%d",%c);
      |                ^
main.c:16:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |     printf("%d",b);
      |     ^~~~~~
main.c:16:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: operands to '?:' have different types 'const char*' and 'int'
    7 |     cout<<(n==1?"Hello World":a+b)<<endl;
      |            ~~~~^~~~~~~~~~~~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:5: error: too many arguments to function 'puts'
   11 |     puts("%d", A+B);
      |     ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:9:5: error: expected expression before 'int'
    9 |     int A,B;
      |     ^~~
main.c:10:18: error: 'A' undeclared (first use in this function)
   10 |     scanf("%d", &A);
      |                  ^
main.c:10:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:18: error: 'B' undeclared (first use in this function)
   11 |     scanf("%d", &B);
      |                  ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:5: error: too many arguments to function 'puts'
   11 |     puts("%d\n", A+B);
      |     ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:5: error: too many arguments to function 'puts'
   11 |     puts("%d\n", &A+B);
      |     ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:7:16: error: 'Hello' undeclared (first use in this function); did you mean 'ftello'?
    7 |         printf(Hello World);
      |                ^~~~~
      |                ftello
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:21: error: expected ')' before 'World'
    7 |         printf(Hello World);
      |               ~     ^~~~~~
      |                     )
Language: C

#include <stdio.h>

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

    scanf("%d",&n);

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

        printf("%d",a + b);
    }
    
}

Compiler output:
main.c: In function 'main':
main.c:11:30: error: expected ';' before '}' token
   11 |         printf("Hello World")
      |                              ^
      |                              ;
   12 |     }
      |     ~
Language: C++

#include <cstdio>

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:6: error: expected '}' at end of input
   13 |     }
      |      ^
a.cc:3:8: note: to match this '{'
    3 | main() {
      |        ^
Language: C++

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

using ll = long long int;

const int MAX = (int)(1e5 + 5);
const ll INF = (ll)(1e10 + 5);

int n, a, b;

int main(void) {
  // Here your code !
  scanf("%d", &n);
  
  if (n == 1) printf("Hello World\n");
  else {
    scanf("%d", &a);
    scanf("%d", &b);
    
    printf("%d\n", a + b)
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:26: error: expected ';' before '}' token
   20 |     printf("%d\n", a + b)
      |                          ^
      |                          ;
   21 |   }
      |   ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: expected ';' before 'return'
   10 |         cout<<"Hello World!"<<endl
      |                                   ^
      |                                   ;
   11 |         return 0;
      |         ~~~~~~
Language: C++

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

int main()
{
	int A,B,C;
	cin>>A;
	if(A==1){
		cout<<"Hello World"
	}else{
		cin>>B>>C;
		cout<<B+C;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:36: error: expected ';' before '}' token
   12 |                 cout<<"Hello World"
      |                                    ^
      |                                    ;
   13 |         }else{
      |         ~
Language: C++

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> x;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlude <bits/stdc++.h>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "Hello World" << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:30: error: 'endl' was not declared in this scope
   10 |     cout << "Hello World" << endl;
      |                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlude <bits/stdc++.h>
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout << a + b << endl;
      |   ^~~~
a.cc:14:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:20: error: 'endl' was not declared in this scope
   14 |   cout << a + b << endl;
      |                    ^~~~
a.cc:14:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
using namespace std;

int main(){
    int N, A, B;
  	cin >> N >> A >> B;
  	if(N==1) cout "Hello World";
  	else cout A+B;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before string constant
    7 |         if(N==1) cout "Hello World";
      |                      ^~~~~~~~~~~~~~
      |                      ;
a.cc:8:18: error: expected ';' before 'A'
    8 |         else cout A+B;
      |                  ^~
      |                  ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
REP(i,v.size()){if(i)os<<" ";os<<v[i];}return os;}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
REP(i,v.size()){if(i)os<<endl;os<<v[i];}return os;}

int main() {
	int x,y,z; cin >> x >> y >> z;
	auto ans;
	if (x==1) ans = "Hello World";
	else ans = y + z;

	cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: declaration of 'auto ans' has no initializer
   19 |         auto ans;
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using  namespace  std;
using ll=long long;
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: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before string constant
    6 |   if(n==1) cout "Hello World";
      |                ^~~~~~~~~~~~~~
      |                ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int N,A,B;
    cin >> N,A,B;
    if(N==1){
        cout << "Hello World" << endl
    };
    if(N==2){
        cout << A+B << endl
    };
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:38: error: expected ';' before '}' token
    7 |         cout << "Hello World" << endl
      |                                      ^
      |                                      ;
    8 |     };
      |     ~                                 
a.cc:10:28: error: expected ';' before '}' token
   10 |         cout << A+B << endl
      |                            ^
      |                            ;
   11 |     };
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int N,A,B;
    cin >> N,A,B;
    if(N==1){
        cout << "Hello World" << endl
    }
    if(N==2){
        cout << A+B << endl
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:38: error: expected ';' before '}' token
    7 |         cout << "Hello World" << endl
      |                                      ^
      |                                      ;
    8 |     }
      |     ~                                 
a.cc:10:28: error: expected ';' before '}' token
   10 |         cout << A+B << endl
      |                            ^
      |                            ;
   11 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
usiing namespace std;
int main(){
    int N,A,B;
    cin >> N,A,B;
    if(N==1){
        cout << "Hello World" << endl
    };
    if(N==2){
        cout << A+B << endl
    };
}

Compiler output:
a.cc:2:1: error: 'usiing' does not name a type
    2 | usiing namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> N,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:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         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:7:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         cout << "Hello World" << 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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         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:10:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         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<bits/stdc++.h>
usiing namespace std;
int main(){
    int N,A,B;
    cin >> N,A,B;
    if(N==1){
        cout << "Hello World" << endl
    }+
    if(N==2){
        cout << A+B << endl
    }
}

Compiler output:
a.cc:2:1: error: 'usiing' does not name a type
    2 | usiing namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> N,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:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         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:7:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         cout << "Hello World" << 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:9:5: error: expected primary-expression before 'if'
    9 |     if(N==2){
      |     ^~
Language: C++

#include<iostream>
using namespace std;

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

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

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

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

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

#include<stdio.h>

int main(void)
{
  int x,y,z;

  scanf("%d%d%d",&x,&y,&z);
  
  if(x==1) printf("Hello World\n")
  else printf("%d",y+z);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:35: error: expected ';' before 'else'
    9 |   if(x==1) printf("Hello World\n")
      |                                   ^
      |                                   ;
   10 |   else printf("%d",y+z);
      |   ~~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'n' was not declared in this scope
    7 |   if(n == 1) cout << "Hello World";
      |      ^
Language: C++

#include <iostream>
 
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;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected '}' before 'else'
   10 |         else {
      |         ^~~~
a.cc:8:16: note: to match this '{'
    8 |     if (n == 1){
      |                ^
Language: C++

#include <iostream>
 
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;
        }
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected '}' before 'else'
   10 |         else {
      |         ^~~~
a.cc:8:16: note: to match this '{'
    8 |     if (n == 1){
      |                ^
a.cc: At global scope:
a.cc:15:9: error: expected unqualified-id before 'return'
   15 |         return 0;
      |         ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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

int main {
  
  int N, A, B;
  cin >> N >> A >> B;
  
  	if (N == 1) {
      cout << "Hellow World" << endl;
    }
  	if (N == 2) {
      cout << A + B << endl;
    }
}

     


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int N, A, B;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> N >> A >> B;
      |   ^~~
a.cc:9:9: error: expected unqualified-id before 'if'
    9 |         if (N == 1) {
      |         ^~
a.cc:12:9: error: expected unqualified-id before 'if'
   12 |         if (N == 2) {
      |         ^~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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

int main {
  
  int N, A, B;
  cin >> N >> A >> B;
  
  	if (N == 1) {
      cout << "Helow World" << endl;
    }
  	if (N == 2) {
      cout << A + B << endl;
    }
}

     

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int N, A, B;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> N >> A >> B;
      |   ^~~
a.cc:9:9: error: expected unqualified-id before 'if'
    9 |         if (N == 1) {
      |         ^~
a.cc:12:9: error: expected unqualified-id before 'if'
   12 |         if (N == 2) {
      |         ^~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    
    
   
  int n,a,b;
  cin>>n>>a>>b;
  

    if(n==1)
      cout<<"Hello World";
      
      else
      cout<<a+b;
   
   
   return 0;


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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:30: error: expected ';' before '}' token
    7 |         printf("Hello World")
      |                              ^
      |                              ;
    8 |     }
      |     ~                         
main.c:10:25: error: expected ';' before '}' token
   10 |         printf("%d",a+b)
      |                         ^
      |                         ;
   11 |     }
      |     ~
Language: Java

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:
Main.java:10: error: ';' expected
			System.out.println("Hello World")
			                                 ^
1 error
Language: C++

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected initializer before '==' token
    7 |   if(int n == 1){
      |            ^~
a.cc:7:11: error: expected ')' before '==' token
    7 |   if(int n == 1){
      |     ~     ^~~
      |           )
Language: C++

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

int main() {
  int N,T;
  vector<int> c(N);
  vector<int> t(N);
  vector<int> y(N);
  for(int i=0;i<N;i++){
  cin>>c.at(i);
  cin>>t.at(i);
    if(t.at(i)<=T) y.at(i)=c.at(i);
  }
  }
  sort(y.begin(),y.end());
  
  
  
  
  
  cout<<y.at(0)<<endl;
  
  
  
  
}


Compiler output:
a.cc:15:7: error: expected constructor, destructor, or type conversion before '(' token
   15 |   sort(y.begin(),y.end());
      |       ^
a.cc:21:3: error: 'cout' does not name a type
   21 |   cout<<y.at(0)<<endl;
      |   ^~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:34: error: expected ';' before '}' token
    7 |     if(n==1){cout<< "Hello World"}
      |                                  ^
      |                                  ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'b' was not declared in this scope
   11 |     cin>>b>>c;
      |          ^
a.cc:11:13: error: 'c' was not declared in this scope
   11 |     cin>>b>>c;
      |             ^
Language: C

#include <stdio.h>
int main(){int a,b,x;scanf("%d%d%d",&x,&a,&b);printf(x==1?("Hello World":"%d",a+b));return 0;}

Compiler output:
main.c: In function 'main':
main.c:2:73: error: expected ')' before ':' token
    2 | int main(){int a,b,x;scanf("%d%d%d",&x,&a,&b);printf(x==1?("Hello World":"%d",a+b));return 0;}
      |                                                           ~             ^
      |                                                                         )
main.c:2:83: error: expected ':' before ')' token
    2 | int main(){int a,b,x;scanf("%d%d%d",&x,&a,&b);printf(x==1?("Hello World":"%d",a+b));return 0;}
      |                                                                                   ^
      |                                                                                   :
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected initializer before 'a'
    4 |   int x a,b;
      |         ^
a.cc:5:8: error: 'x' was not declared in this scope
    5 |   cin>>x>>a>>b;
      |        ^
a.cc:5:11: error: 'a' was not declared in this scope
    5 |   cin>>x>>a>>b;
      |           ^
a.cc:5:14: error: 'b' was not declared in this scope
    5 |   cin>>x>>a>>b;
      |              ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'inr' was not declared in this scope; did you mean 'int'?
    4 |     inr n;
      |     ^~~
      |     int
a.cc:5:12: error: 'n' was not declared in this scope; did you mean 'yn'?
    5 |     cin >> n;
      |            ^
      |            yn
Language: C++

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

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


}


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

#include <bits.stdc++.h>
using namespace 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:1:10: fatal error: bits.stdc++.h: No such file or directory
    1 | #include <bits.stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits.stdc++>
using namespace 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:1:10: fatal error: bits.stdc++: No such file or directory
    1 | #include <bits.stdc++>
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostram>
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;
  }
  return 0;
}

Compiler output:
a.cc:1:9: fatal error: iostram: No such file or directory
    1 | #include<iostram>
      |         ^~~~~~~~~
compilation terminated.
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) {
    int A,B;
    cin>>A>>B;
    cout<<A+B<<endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ';' before string constant
    8 |     cout"Hello World"<<endl;
      |         ^~~~~~~~~~~~~
      |         ;
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) {
    int A,B;
    cin>>A>>B;
    cout<<A+B<<endl
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ';' before string constant
    8 |     cout"Hello World"<<endl;
      |         ^~~~~~~~~~~~~
      |         ;
a.cc:13:20: error: expected ';' before '}' token
   13 |     cout<<A+B<<endl
      |                    ^
      |                    ;
   14 |   }
      |   ~
Language: Java

import java.util.Scanner;

public class A112 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(N == 1) {
			System.out.println("Hello World");
		}else if(N == 2) {
			System.out.println(a+b);
		}else {
			
		}
	}
}

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