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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:1: error: 'cin' was not declared in this scope
    4 | cin >> N ;
      | ^~~
a.cc:4:8: error: 'N' was not declared in this scope
    4 | cin >> N ;
      |        ^
a.cc:4:10: error: expected '}' before ';' token
    4 | cin >> N ;
      |          ^
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if(N==1){
      | ^~
a.cc:7:3: error: expected unqualified-id before 'else'
    7 | } else {
      |   ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <iostream>

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

Compiler output:
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 a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         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:12:32: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |                 cin >> A >> B, 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: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: 'retrun' was not declared in this scope
   13 | retrun 0;}
      | ^~~~~~
Language: C++

#include <cstdio>
#include <iostream>

using namespace std;

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


Compiler output:
a.cc:9:7: warning: missing terminating ' character
    9 | scanf('%d",&n);
      |       ^
a.cc:9:7: error: missing terminating ' character
    9 | scanf('%d",&n);
      |       ^~~~~~~~~
a.cc:17:7: warning: missing terminating ' character
   17 | scanf('%d%d",&a,&b);
      |       ^
a.cc:17:7: error: missing terminating ' character
   17 | scanf('%d%d",&a,&b);
      |       ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before 'if'
   10 | if(n==1)
      | ^~
Language: Java

import java.util.Scanner;
class Main{
public static void main(String[] a){
Scanner s=new Scanner(System.in);long N=s.nextLong();long M=s.nextLong();long g=m/n;
while(m%g!=0){g--;System.out.println(g);break;}
}
}

Compiler output:
Main.java:4: error: cannot find symbol
Scanner s=new Scanner(System.in);long N=s.nextLong();long M=s.nextLong();long g=m/n;
                                                                                ^
  symbol:   variable m
  location: class Main
Main.java:4: error: cannot find symbol
Scanner s=new Scanner(System.in);long N=s.nextLong();long M=s.nextLong();long g=m/n;
                                                                                  ^
  symbol:   variable n
  location: class Main
Main.java:5: error: cannot find symbol
while(m%g!=0){g--;System.out.println(g);break;}
      ^
  symbol:   variable m
  location: class Main
3 errors
Language: C++

#include <iostream>

usin namespace std;

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

Compiler output:
a.cc:3:1: error: 'usin' does not name a type
    3 | usin namespace std;
      | ^~~~
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 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:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         if ( n == 1) 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:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         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: C++

#include<iostream>
using ll  = long long;
#define int ll
#define rep(i,n) for(int i=0;i<n;i++)
#define loop(i,s,n) for(int i=s;i<n;i++)
#define erep(e,v) for(auto && e :v)
#define all(in) in.begin(), in.end()
#define MP make_pair
#define INF (sizeof(int) == 4 ? (int)1e9:(int)1e18)
#define EPS 0.0000000001
using namespace std;
int maxi = 1;
int n,m;
auto f(){
    for(int i = 2; i*n<=m ; i++)if(m%i == 0)cmax(maxi,i);
}
signed main(){
    cin >> n >> m;
    f();
    cout << maxi << endl;
}




Compiler output:
a.cc: In function 'auto f()':
a.cc:15:45: error: 'cmax' was not declared in this scope
   15 |     for(int i = 2; i*n<=m ; i++)if(m%i == 0)cmax(maxi,i);
      |                                             ^~~~
Language: C++

#include <iostream>
#include <functional>
#include <algorithm>
using namespace std;
int gcd(int a,int b){
  if(a<0||b<0)return 0;
  if(a>b)return gcd(a-b,b);
  else if(a<b)return gcd(b-a,a);
  else return a;
}
int main(){
  int n,m;
  cin>>n>>m;
  int max=max(gcd(m/n,m/n+m%n),gcd(m/n+1,m-(m/n+1)*(n-1)));
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'max' cannot be used as a function
   14 |   int max=max(gcd(m/n,m/n+m%n),gcd(m/n+1,m-(m/n+1)*(n-1)));
      |           ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m,ans;
    cin>>n>>m;
    for (int i=1; i:i<=m/n; i++)if(m%i==0) {
        if(m/i>=n)ans=i;
    }
  cout<<ans<<endl;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
    6 |     for (int i=1; i:i<=m/n; i++)if(m%i==0) {
      |                   ^
a.cc:6:20: error: found ':' in nested-name-specifier, expected '::'
    6 |     for (int i=1; i:i<=m/n; i++)if(m%i==0) {
      |                    ^
      |                    ::
a.cc:6:19: error: 'i' is not a class, namespace, or enumeration
    6 |     for (int i=1; i:i<=m/n; i++)if(m%i==0) {
      |                   ^
a.cc:6:32: error: expected ';' before ')' token
    6 |     for (int i=1; i:i<=m/n; i++)if(m%i==0) {
      |                                ^
      |                                ;
Language: C++

//Rishabh Sethi @lostground97

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

#define pb push_back
#define mp make_pair
#define ll long long
#define in insert
#define mod 1000000007
#define vpair vector< pair <ll,ll> >

ll modexp(ll x, ll y)
{
	ll ans = 1;
	x = x%mod;
	while(y>0)
	{
		if(y%2==1)
			ans = (ans%mod*x%mod)%mod;
		y = y/2;
		x = (x%mod*x%mod)%mod;
	}
	return ans;
}

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	ll n, m;
	cin>>n>>m;
	ll p = m/n;
	ll q = m%n;
	for(int i=p; i>=0; i--)
    {
      if(n%i==0)
      {
        cout<<i<<endl;
      return 0;
      
    }
    }
	cout<<ans<<endl;
}


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

import java.util.*;

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

Compiler output:
Main.java:8: error: ';' expected
			System.out.println("Hello World!")
			                                  ^
1 error
Language: Java

import java.util.Scanner;

class ABC112A{
public void main(String args[]){
 int old,A,B,r;
 Scanner sc=new Scanner(System.in);
 System.err.print("old:");
 old=sc.nextInt();
 if(old==1){System.out.print("Hello World");
 }else{
  if(old==2){
   System.err.print("A:");
   A=sc.nextInt();
   System.err.print("B:");
   B=sc.nextInt();
   if(1<=A<=9&&1<=B<=9)
   r=A+B;
   System.out.print(+r);}
   }else{return;}
  else{return;}
 }
}
}


Compiler output:
Main.java:19: error: 'else' without 'if'
   }else{return;}
    ^
Main.java:20: error: 'else' without 'if'
  else{return;}
  ^
Main.java:23: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: Java

import java.util.Scanner;

class ABC112A{
public void main(String args[]){
 int old,A,B,r;
 Scanner sc=new Scanner(System.in);
 System.err.print("old:");
 old=sc.nextInt();
 if(old==1){System.out.print("Hello World");
 }else{
  if(old==2){
   System.err.print("A:");
   A=sc.nextInt();
   System.err.print("B:");
   B=sc.nextInt();
   result=A+B;
   System.out.print(+r);}
  else{return;}
 }
}
}


Compiler output:
Main.java:16: error: cannot find symbol
   result=A+B;
   ^
  symbol:   variable result
  location: class ABC112A
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define FOR(i,n) for(int i=0;i<n;i++)
#define why(n,x) int n;while(cin >>n,n!=x)
#define iFOR(i,x,n)for(int i=x;i<n;i++)

int dx[]={1,0,-1,0};
int dy[]={0,-1,0,1};
int dxx[]={1,1,0,-1,-1,-1,0,1};
int dyy[]={0,-1,-1,-1,0,1,1,1};
bool inside(int x,int y,int w,int h){
  return (x>=0 && y>=0 && x<w && y<h);}
typedef long long ll;
typedef pair<int,int> pii;


int main(){
  cin.tie(0), ios::sync_with_stdio(false);
  int n,a,b;
  cin >>n;
  if(n==1) cout <<"Hello World";
  else{
    cin >>a>>b;
    cout <<a+b<<;
  }
  cout <<endl;


  

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:17: error: expected primary-expression before ';' token
   24 |     cout <<a+b<<;
      |                 ^
Language: Java

import java.util.Scanner;

class ABC112A{
public void main(String args[]){
 int old,A,B,result;
 Scanner sc=new Scanner(System.in);
 System.err.print("old:");
 old=sc.nextInt();
 if(old==1){System.out.print("Hello World");
 }else{
  if(old==2){
   System.err.print("A:");
   A=sc.nextInt();
   System.err.print("B:");
   B=sc.nextInt();
   result=A+B,
   System.out.print("result");}
  else{return;}
 }
}
}


Compiler output:
Main.java:16: error: ';' expected
   result=A+B,
             ^
1 error
Language: Java

    import java.util.Scanner;
    import java.io.BufferedReader;
    import java.util.*;
     
    public class Main {
        public static void main(String[] args){
     
            MyScanner scanner = new MyScanner();

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


            String ans1 = "Hello World";

     
             int n1 = 1;
             
             int ans2 = A+B;
             

             
             if( N == n1){
            	System.out.println(ans1);
            
            } else{
            	System.out.println(ans2);        	     
            }
        }
            }


Compiler output:
Main.java:8: error: cannot find symbol
            MyScanner scanner = new MyScanner();
            ^
  symbol:   class MyScanner
  location: class Main
Main.java:8: error: cannot find symbol
            MyScanner scanner = new MyScanner();
                                    ^
  symbol:   class MyScanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

class ABC112A{
public void main(String args[]){
 int A,B;
 boolean old;
 Scanner sc=new Scanner(System.in);
 System.err.print("old:");
 old=sc.nextInt();
 if(old=1){System.out.print("Hello World");
 }else{
  if(old=2){
   System.err.print("A:");
   A=sc.nextInt();
   System.err.print("B:");
   B=sc.nextInt();
   System.out.print("A+B");}
  else{return;}
 }
}
}


Compiler output:
Main.java:9: error: incompatible types: int cannot be converted to boolean
 old=sc.nextInt();
               ^
Main.java:10: error: incompatible types: int cannot be converted to boolean
 if(old=1){System.out.print("Hello World");
        ^
Main.java:12: error: incompatible types: int cannot be converted to boolean
  if(old=2){
         ^
3 errors
Language: Java

import java.util.Scanner;

class ABC112A{
public void main(String args[]){
 int old,A,B;
 Scanner sc=new Scanner(System.in);
 System.err.print("old:");
 old=sc.nextInt();
 if(old=1){System.out.print("Hello World");
 }else{
  if(old=2){
   System.err.print("A:");
   A=sc.nextInt();
   System.err.print("B:");
   B=sc.nextInt();
   System.out.print("A+B");}
  else{return;}
 }
}
}


Compiler output:
Main.java:9: error: incompatible types: int cannot be converted to boolean
 if(old=1){System.out.print("Hello World");
       ^
Main.java:11: error: incompatible types: int cannot be converted to boolean
  if(old=2){
        ^
2 errors
Language: Java

import java.util.Scanner;

class ABC112A{
public void main(String args[]){
 int old,A,B;
 Scanner sc=new Scanner(System.in);
 System.err.print("old:");
 old=sc.nextInt();
 if(old=1){System.out.print("Hello World");
 }else{
  if(old=2){
   System.err.print("A:");
   A=sc.nextInt();
   System.err.print("B:");
   B=sc.nextInt();
   System.out.print("A+B");}
  else{return;}
 }
}


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

#include<iostream>
#include <algorithm>
#include<string>
#include<cmath>
#include <functional>
using namespace std;
int R(int Cx, int Cy, int x, int y) {
	return abs(x-Cx)+abs(y-Cy);
}
int main(void) {
	int N,M,ans;
	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:18:24: error: 'A' was not declared in this scope
   18 |                 cin >> A >> B;
      |                        ^
a.cc:18:29: error: 'B' was not declared in this scope
   18 |                 cin >> A >> B;
      |                             ^
Language: C++

#include <fstream>
#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <sstream>
#include <map>
#include <set>
#include <vector>
#include <stack>
#include <cmath>
#include <queue>
#include <random>

using namespace std;

int main(int argc, const char * argv[])
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    int s;
    cin >> s;


int a,b;
if(s==2){
cin>>a>>b;
cout << a+b <<endl;
       }else{
cout << ‘Hello World’ <<endl;
}
    return 0;
}

Compiler output:
a.cc:33:9: error: extended character ‘ is not valid in an identifier
   33 | cout << ‘Hello World’ <<endl;
      |         ^
a.cc:33:16: error: extended character ’ is not valid in an identifier
   33 | cout << ‘Hello World’ <<endl;
      |                ^
a.cc: In function 'int main(int, const char**)':
a.cc:33:9: error: '\U00002018Hello' was not declared in this scope
   33 | cout << ‘Hello World’ <<endl;
      |         ^~~~~~
Language: Java

    import java.util.Scanner;
    import java.io.BufferedReader;
    import java.util.*;
     
    public class Main {
        public static void main(String[] args){
     
            Scanner sc = new Scanner(System.in);

            String N = sc.next();
            String A = sc.next();
            String B = sc.next();

            if ((A == null) || ( B == null)) {
            	A = "0";
            	B = "0";
                int nValue = Integer.parseInt(N);
            	int aValue = Integer.parseInt(A);
                int bValue = Integer.parseInt(B);
            } else {
            
            
            
            int nValue = Integer.parseInt(N);
            int aValue = Integer.parseInt(A);
            int bValue = Integer.parseInt(B);
            
            String ans1 = "Hello World";

     
             int n1 = 1;
             
             int ans2 = aValue+bValue;
             

             
             if( nValue == n1){
            	System.out.println(ans1);
            
            } else{
            	System.out.println(ans2);        	     
            }
        }
      }

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

#include <fstream>
#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <sstream>
#include <map>
#include <set>
#include <vector>
#include <stack>
#include <cmath>
#include <queue>
#include <random>

using namespace std;

int main(int argc, const char * argv[])
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    int s;
    cin >> s;


int a,b;
if(s==2){
cin>>a>>b;
cout << a+b <<endl;
       }else{
cout << “Hello World” <<endl;
}
    return 0;
}

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

#include <fstream>
#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <sstream>
#include <map>
#include <set>
#include <vector>
#include <stack>
#include <cmath>
#include <queue>
#include <random>

using namespace std;

int main(int argc, const char * argv[])
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    int s;
    cin >> s;


int a,b;
if(s==2){
cin>>a>>b;
cout << a+b <<endl;
       }else{
cout << “Hello World” <<endl;
}
    return 0;

Compiler output:
a.cc:33:9: error: extended character “ is not valid in an identifier
   33 | cout << “Hello World” <<endl;
      |         ^
a.cc:33:16: error: extended character ” is not valid in an identifier
   33 | cout << “Hello World” <<endl;
      |                ^
a.cc: In function 'int main(int, const char**)':
a.cc:33:9: error: '\U0000201cHello' was not declared in this scope
   33 | cout << “Hello World” <<endl;
      |         ^~~~~~
a.cc:35:14: error: expected '}' at end of input
   35 |     return 0;
      |              ^
a.cc:20:1: note: to match this '{'
   20 | {
      | ^
Language: Java

    import java.util.Scanner;
    import java.io.BufferedReader;
    import java.util.*;
     
    public class Main {
        public static void main(String[] args){
     
            Scanner sc = new Scanner(System.in);

            String N = sc.next();
            String A = sc.next();
            String B = sc.next();
            int nValue = Integer.parseInt(N);
            int aValue = Integer.parseInt(A);
            int bValue = Integer.parseInt(B);

            String ans1 = "Hello World";
     
             int n1 = 1;
             
             int ans2 = aValue+bValue;
             
            if( nValue == n1){
            	System.out.println(ans1);
            } else if ((A == null) || ( B == null)) {
            	break;
            } else{
            	System.out.println(ans2);        	     
            }
        }
      }

Compiler output:
Main.java:26: error: break outside switch or loop
            	break;
            	^
1 error
Language: C++

#include<iostream>
using namespace std;

int main()
{
	ios::sync_with_stdio(false);
	int num, a, b;
	cin >> num;
	cin >> a;
	cin >> b;
	
	if (n == 1) cout << 'Hello World';
	else cout << a + b;

	return 0;
}


Compiler output:
a.cc:12:29: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
   12 |         if (n == 1) cout << 'Hello World';
      |                             ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:13: error: 'n' was not declared in this scope
   12 |         if (n == 1) cout << 'Hello World';
      |             ^
Language: C++

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

int main(void){
int n,t;
cin >> n >> t;
int min = 1001;
for(int i=0;i<n ;i++){
int ci,ti;
cin >> ci >>ti;
if(ci < min && ti <= t){
min = ci;
}
}
if(n==1001){
cout << "TLE" << endl;
}else{
cout << ci << endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'ci' was not declared in this scope
   19 | cout << ci << endl;
      |         ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,n) for (int i=a;i<n;i++)
#define per(i,a,n) for (int i=n-1;i>=a;i--)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define SZ(x) ((int)(x).size())
typedef vector<int> VI;
typedef long long ll;
typedef pair<int,int> PII;
const ll mod=1000000007;
ll powmod(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
ll gcd(ll a,ll b) { return b?gcd(b,a%b):a;}
template <class T>ostream &operator<<(ostream &o,const vector<T>&v)
{o<<"{";for(int i=0;i<(int)v.size();i++)o<<(i>0?", ":"")<<v[i];o<<"}";return o;}
// head
struct edge { int to, cap, rev, cost; };
vector<edge> G[1000];
void add_edge(int from, int to, int cap, int cost = 0){
	G[from].push_back(edge{ to, cap, (int)G[to].size(),cost });
	G[to].push_back(edge{ from,0,(int)G[from].size() - 1,-cost });
}

int main() {
	  int N,G,E;
    std::cin >> N;
		if(N==1){
			std::cout << "Hello World" << '\n';
		}
		else{
			std::cin >> G>>E;
			std::cout << G+E << '\n';
		}
    }

}

Compiler output:
a.cc:39:1: error: expected declaration before '}' token
   39 | }
      | ^
Language: Java

    import java.util.Scanner;
    import java.io.BufferedReader;
    import java.util.*;
     
    public class Main {
        public static void main(String[] args){
     
            Scanner sc = new Scanner(System.in);

            String N = sc.next();
            String A = sc.next();
            String B = sc.next();
            int nValue = Integer.parseInt(N);
            int aValue = Integer.parseInt(A);
            int bValue = Integer.parseInt(B);
             String ans1 = "Hello World";
     
             int n1 = 1;
             
             int n2 = aValue+bValue;
             
            if( nValue == n1){
            	System.out.print(ans1);
            	break;
            } else {
            	System.out.print(n2);        	     
            }
        }
      }

Compiler output:
Main.java:24: error: break outside switch or loop
            	break;
            	^
1 error
Language: C++

#include <stdio.h>

int main()
{
     int N, T, c[1001], t[1001], min;
     scanf("%d %d", &N, &T);

     for(i=0;i<N+1;i++){
         scanf("%d %d", &c[i], &t[i]);
     }

     for(i=0;i<N+1;i++){
           if(t[i]>T){
                    printf("TLE\n");
           }else{
                    for(i=0;i<N+1;i++){
                             if(c[i]<T)  min=c[i];
                     }
           printf("%d\n", min);
      }
      return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'i' was not declared in this scope
    8 |      for(i=0;i<N+1;i++){
      |          ^
a.cc:12:10: error: 'i' was not declared in this scope
   12 |      for(i=0;i<N+1;i++){
      |          ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <queue>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'esle' was not declared in this scope
   18 |         esle cout << a+b;
      |         ^~~~
Language: Java

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

            String N = sc.next();
            String A = sc.next();
            String B = sc.next();
            int nValue = Integer.parseInt(N);
            int aValue = Integer.parseInt(A);
            int bValue = Integer.parseInt(B);
             String ans1 = "Hello World";
     
             int n1 = 1;
             
             int n2 = aValue+bValue;
             
            if( nValue == n1){
            	System.out.print(ans1);
            	break;
            } else {
            	System.out.print(n2);        	     
            }
        }
      }

Compiler output:
Main.java:22: error: break outside switch or loop
            	break;
            	^
1 error
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(n == 1) cout << "Hello World" << endl;
      |              ^~~~
      |              std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   if(n == 1) 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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     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:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     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: Java

    import java.util.Scanner;
     
    public class Main {
        public static void main(String[] args){
     
            MyScanner scanner = new MyScanner();

            int N = scanner.nextInt();
            int A = scanner.nextInt();
            int B = scanner.nextInt();
             String ans1 = "Hello World";
     
             int n1 = 1;
             
             int n2 = A+B;
             
            if( N == n1){
            	System.out.print(ans1);
            	break;
            } else {
            	System.out.print(n2);        	     
            }
        }
      }

Compiler output:
Main.java:6: error: cannot find symbol
            MyScanner scanner = new MyScanner();
            ^
  symbol:   class MyScanner
  location: class Main
Main.java:6: error: cannot find symbol
            MyScanner scanner = new MyScanner();
                                    ^
  symbol:   class MyScanner
  location: class Main
Main.java:19: error: break outside switch or loop
            	break;
            	^
3 errors
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();
             int A = sc.nextInt();
             int B = sc.nextInt();
             String ans1 = "Hello World";
     
             int n1 = 1;
             
             int n2 = A+B;
             
            if( N == n1){
            	System.out.print(ans1);
            	break;
            } else {
            	System.out.print(n2);        	     
            }
        }
      }

Compiler output:
Main.java:19: error: break outside switch or loop
            	break;
            	^
1 error
Language: Java


package study_java2;
import java.util.Scanner;
public class TestZ {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        float N = sc.nextInt();
        float A = sc.nextInt();
        float B = sc.nextInt();

        String ans1 = "Hello World";        
        float ans2 = (float)A+B;
        
           if(N > 2) {
               System.out.println(ans1);
           } else if(N == 2){
               System.out.println(ans2);
           } else {
               System.out.println( );
         }
        
        }
    }
 


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

#include <iostream>
#include <algorithm>
#include <vector>
#include <cmath>

using namespace std;

int main() {
    cin.tie(0);
    ios_base::sync_with_stdio(false);
    
    int n;
    cin >> n;
    
    if (n == 1) {
        cout << "Hello World" << endl;
    } elae {
        int a, b;
        cin >> a >> b;
        cout << a + b << endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: 'elae' was not declared in this scope
   17 |     } elae {
      |       ^~~~
Language: C++

#include<stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: expected '}' before 'else'
    9 | else{printf("%d\n",a+b);
      | ^~~~
a.cc:8:11: note: to match this '{'
    8 | if(n == 1){printf("Hello World\n");
      |           ^
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
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();
         int A = sc.nextInt();
         int B = sc.nextInt();

         String ans1 = "Hello World";

         int n1 = 1;
         int n2 = A+B;
          
        if( N == n1){
        	System.out.print(ans1);
        	break;
        } else {
        System.out.print(n2);
        }
    }
  }

Compiler output:
Main.java:21: error: break outside switch or loop
        	break;
        	^
1 error
Language: C

#include <stdio.h>

int main()
{
    int n,a,b;
    scanf("%d",&n);

    if(n == 1)
    {
        printf("Hello World\n"):
        return 0;
    }

    else
    {
        scanf("%d",&a);
        scanf("%d",&b);

        printf("%d\n",a+b);
        return 0;
    }

}


Compiler output:
main.c: In function 'main':
main.c:10:32: error: expected ';' before ':' token
   10 |         printf("Hello World\n"):
      |                                ^
      |                                ;
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();
         int A = sc.nextInt();
         int B = sc.nextInt();

         String ans1 = "Hello World";

         int n1 = 1;

          
        if( N == n1){
        	System.out.print(ans1);
        	break;
        } else {
        System.out.print(A+B);
        }
    }
  }

Compiler output:
Main.java:19: error: break outside switch or loop
        	break;
        	^
1 error
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();
         String ans1 = "Hello World";

         int n1 = 1;

          
        if( N == n1){
        	System.out.print(ans1);
        	break;
        }

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

        if ((A == 0) | (B == 0)){
        	break;
        } else {
        System.out.print(A+B);
        }
    }
  }

Compiler output:
Main.java:16: error: break outside switch or loop
        	break;
        	^
Main.java:23: error: break outside switch or loop
        	break;
        	^
2 errors
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();
         String ans1 = "Hello World";

         int n1 = 1;

          
        if( N == n1){
        	System.out.print(ans1);
        	break;
        }

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

        System.out.print(A+B);

    }
  }

Compiler output:
Main.java:16: error: break outside switch or loop
        	break;
        	^
1 error
Language: Java

import java.util.Scanner;

class test{
  public static void main(String args[]){
    int N;
    int A,B;
    Scanner sc = new Scanner(System.in);
    
    num = sc.nextInt();
    
    if(N == 1){
      System.out.println("Hello World");
      return;
    }else if(N == 2){
      A = sc.nextInt();
      B = sc.nextInt();
      System.out.println(A + B);
    }
    return;
  }
}
    
  

Compiler output:
Main.java:9: error: cannot find symbol
    num = sc.nextInt();
    ^
  symbol:   variable num
  location: class test
1 error
Language: C++

ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
  //  freopen("input.txt","r",stdin);
  //  freopen("output.txt","w",stdout);
    int n;
    cin>>n;
    if (n == 1)
    {
    	cout<<"Hello World"
    }
    else
    {
    	int a,b;
    	cin>>a>>b;
    	cout<<a+b;
    }

Compiler output:
a.cc:1:1: error: 'ios_base' does not name a type
    1 | ios_base::sync_with_stdio(false);
      | ^~~~~~~~
a.cc:2:5: error: 'cin' does not name a type
    2 |     cin.tie(NULL);
      |     ^~~
a.cc:3:5: error: 'cout' does not name a type
    3 |     cout.tie(NULL);
      |     ^~~~
a.cc:7:5: error: 'cin' does not name a type
    7 |     cin>>n;
      |     ^~~
a.cc:8:5: error: expected unqualified-id before 'if'
    8 |     if (n == 1)
      |     ^~
a.cc:12:5: error: expected unqualified-id before 'else'
   12 |     else
      |     ^~~~
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();
         int A = sc.nextInt();
         int B = sc.nextInt();
         String ans1 = "Hello World";

         int n1 = 1;
                  
        if( N == n1){
        	System.out.print(ans1);
        	break;
        } else {
        	System.out.print(A+B);
        }




    }
  }

Compiler output:
Main.java:17: error: break outside switch or loop
        	break;
        	^
1 error
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);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d", &N);
      |         ^~~~~~~
      |         scanf
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();
         int A = sc.nextInt();
         int B = sc.nextInt();
         String ans1 = "Hello World";

         int n1 = 1;
         
         int n2 = A+B;
         
        if( N == n1){
        	System.out.print(ans1);
        	break;
        } else {
        	System.out.print(n2);
        }




    }
  }

Compiler output:
Main.java:19: error: break outside switch or loop
        	break;
        	^
1 error
Language: Java

package snippet;

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

		String s =args[0];

		int i = Integer.parseInt(s);

		if(i == 1){
			System.out.println("Hello World");
			return;
		}else if(i==2) {
			int i1 = Integer.parseInt(args[1]);
			int i2 = Integer.parseInt(args[1]);

			System.out.println(i1+i2);
			return;

		}
	}
}



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

#include <stdio.h>

int main() {
    int n;
    int a;
    int b;
    int scanf("%d",&n);
    if(n==1)
        printf("Hello, World\n");
    else if(n==2){
        int scanf("%d",&a);
        int scanf("%d",&b);
        printf("%d\n",a+b);
    }
    else{
        printf( "scanfでエラー\n" );
        //return -1;
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected declaration specifiers or '...' before string constant
    7 |     int scanf("%d",&n);
      |               ^~~~
main.c:7:20: error: expected declaration specifiers or '...' before '&' token
    7 |     int scanf("%d",&n);
      |                    ^
main.c:11:19: error: expected declaration specifiers or '...' before string constant
   11 |         int scanf("%d",&a);
      |                   ^~~~
main.c:11:24: error: expected declaration specifiers or '...' before '&' token
   11 |         int scanf("%d",&a);
      |                        ^
main.c:12:19: error: expected declaration specifiers or '...' before string constant
   12 |         int scanf("%d",&b);
      |                   ^~~~
main.c:12:24: error: expected declaration specifiers or '...' before '&' token
   12 |         int scanf("%d",&b);
      |                        ^
Language: Java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package encode.cp;

import java.util.Scanner;

/**
 *
 * @author Ivan Eka
 */
public class ProgrammingEducation {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char N = sc.next().charAt(0);
        if(N == '1'){
            System.out.println("Hello World");
        } else if(N == '2'){
            int A = sc.nextInt();
            int B = sc.nextInt();
            System.out.println(A + B);
        }
    }
}


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

Scanner sc = new Scanner(System.in);
        char N = sc.next().charAt(0);
        if(N == '1'){
            System.out.println("Hello World");
        } else if(N == '2'){
            int A = sc.nextInt();
            int B = sc.nextInt();
            System.out.println(A + B);
        }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
        if(N == '1'){
        ^
Main.java:5: error: class, interface, enum, or record expected
        } else if(N == '2'){
        ^
Main.java:8: error: class, interface, enum, or record expected
            System.out.println(A + B);
            ^
Main.java:9: error: class, interface, enum, or record expected
        }
        ^
5 errors
Language: Java

public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char N = sc.next().charAt(0);
        if(N == '1'){
            System.out.println("Hello World");
        } else if(N == '2'){
            int A = sc.nextInt();
            int B = sc.nextInt();
            System.out.println(A + B);
        }
    }

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

//long time no ac
#include <bits/stdc++.h>
using namespace std;

#define 	ll				long long
#define 	vii				vector<int>
#define		rep(i,n) 		for(i=0;i<n;i++)
#define		repe(i,I1,I2) 	for(i=I1;i<I2;i++)
#define		INF  			1e9 + 7
#define		pb  			push_back
#define		mp  			make_pair
#define		endl			'\n'
#define 	mod				1000000007


int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	int n,k,t,c=0,i;
	t=1;
	//cin>>t;
	
	while(t--)
	{
		cin>>n>>a>>b;
		if(n==1)
          cout<<"Hello World";
      	else
          cout<<a+b;
		
		cout<<c;
		if(t!=0)
	   		cout<<"\n";
	}
	return 0;
}

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

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

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


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

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includE; did you mean #include?
    1 | #includE<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> N ;
      |     ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:8:14: error: 'cout' was not declared in this scope
    8 |     if(N==1){cout<<"Hello World"<<endl:}
      |              ^~~~
a.cc:8:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:35: error: 'endl' was not declared in this scope
    8 |     if(N==1){cout<<"Hello World"<<endl:}
      |                                   ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string>
  +++ |+#include <ostream>
    3 | using namespace std;
a.cc:9:36: error: 'cout' was not declared in this scope
    9 |     else{cin >> a >> b;sum = a + b;cout<< sum <<endl;}
      |                                    ^~~~
a.cc:9:36: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:49: error: 'endl' was not declared in this scope
    9 |     else{cin >> a >> b;sum = a + b;cout<< sum <<endl;}
      |                                                 ^~~~
a.cc:9:49: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include <iostream>
#include <algorithm>

using namespace std;

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


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

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package encode.cp;

import java.util.Scanner;

/**
 *
 * @author Ivan Eka
 */
public class ProgrammingEducation {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char N = sc.next().charAt(0);
        if(N == '1'){
            System.out.println("Hello World");
        } else if(N == '2'){
            int A = sc.nextInt();
            int B = sc.nextInt();
            System.out.println(A + B);
        }
    }
}

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

#-*- coding:utf-8 -*- 

def main():
	N = int(input())
	
	if N == 1:
		print("Hello World")

	else:
		a = input()
		b = input()
		sum = a + b
		print(sum)
	
if __name__ == "__main__":
	main()


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #-
    1 | #-*- coding:utf-8 -*-
      |  ^
a.cc:3:1: error: 'def' does not name a type
    3 | def main():
      | ^~~
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);
	}
	return 0;
}

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

#include <stdio.h>

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         sacnf("%d", &N);
      |         ^~~~~
      |         scanf
main.c:10:38: error: expected ';' before '{' token
   10 |                 sacnf("%d%d", &A, &B){
      |                                      ^
      |                                      ;
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:
main.c: In function 'main':
main.c:5:20: error: expected expression before '%' token
    5 |         scanf("%d",%x);
      |                    ^