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

#include<string>
#include<iostream>
#include<algorithm>
#include<set>
#include<math.h>
#include<vector>
#include<sstream>
#include<queue>
#include<functional>
#include<bitset>
#include<cstdio>
#include<iomanip>
#include<map>
#include<unordered_map>
#include<unordered_set>
#include <string.h>
using ll = long long;
 
#define rep(i, n) for(ll i = 0; i < (int)(n); i++)
#define reps(i,x) for(ll i=1;i<=(int)(x);i++)
#define rrep(i,x) for(ll i=((int)(x)-1);i>=0;i--)
#define rreps(i,x) for(ll i=(int)(x);i>0;i--)
#define all(x) (x).begin(),(x).end()
#define m0(x) memset(x,0,sizeof(x))
#define vll vector<ll>
#define vi vector<int>
#define mp make_pair
#define vpll vector<pair<ll,ll>>
#define vpi vector<pair<int,int>>
#define mod 1000000007 
using namespace std;
int main() {
    int n, a, b;
    cin >> n >> a >> b;
    if(n == 1){
	   cout <<"Hello World"
    } else{
	cout << a + b << endl;
    }
}


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

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <algorithm>
#include <utility>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <functional>

using namespace std;

#define fst first
#define scd second
#define PB push_back
#define MP make_pair
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define omajinai ios::sync_with_stdio(false);cin.tie(0)
#define rep(i,x) for(int i=0;i<(int)(x);++i)
#define rep1(i,x) for(int i=1;i<=(int)(x);++i)
#define rrep(i,x) for(int i=(int)x-1;i>=0;--i)
#define rrep1(i,x) for(int i=(int)x;i>=1;--i)

using ll=long long;
using ld=long double;
using vi=vector<int>;
using vvi=vector<vi>;
using pii=pair<int, int>;
using vpii=vector<pii>;

template<class T,class U>ostream&operator<<(ostream&os,const pair<T,U>p){os<<"("<<p.fst<<", "<<p.scd<<")";return os;}
template<class T>ostream&operator<<(ostream&os,const vector<T>v){rep(i,v.size()){if(i)os<<", ";os<<v[i];}return os;}
template<typename T>T&max(T&a,T&b){if(a>=b)return a;return b;}
template<typename T>T&min(T&a,T&b){if(a < b)return a;return b;}
template<typename T>bool chmax(T&a,T b){if(a < b){a=b;return true;}return false;}
template<typename T>bool chmin(T&a,T b){if(a > b){a=b;return true;}return false;}

constexpr int inf = 1e9;
constexpr ll linf = 3e18;
constexpr double eps = 1e-9;

signed main()
{
    ll N, M;
    cin >> N >> M;

    ll ans = 1;

    // a1~aN の最大公約数がd => a1~aNがすべてd*i(i:自然数)の形で表される
    for (ll i = 2; i <= M; ++i) {
        if (j * N > M) break;
        if ((M - j * N) % j == 0) ans = max(ans, j);
    }

    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:60:13: error: 'j' was not declared in this scope
   60 |         if (j * N > M) break;
      |             ^
a.cc:61:18: error: 'j' was not declared in this scope
   61 |         if ((M - j * N) % j == 0) ans = max(ans, j);
      |                  ^
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <algorithm>
#include <utility>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <functional>

using namespace std;

#define fst first
#define scd second
#define PB push_back
#define MP make_pair
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define omajinai ios::sync_with_stdio(false);cin.tie(0)
#define rep(i,x) for(int i=0;i<(int)(x);++i)
#define rep1(i,x) for(int i=1;i<=(int)(x);++i)
#define rrep(i,x) for(int i=(int)x-1;i>=0;--i)
#define rrep1(i,x) for(int i=(int)x;i>=1;--i)

using ll=long long;
using ld=long double;
using vi=vector<int>;
using vvi=vector<vi>;
using pii=pair<int, int>;
using vpii=vector<pii>;

template<class T,class U>ostream&operator<<(ostream&os,const pair<T,U>p){os<<"("<<p.fst<<", "<<p.scd<<")";return os;}
template<class T>ostream&operator<<(ostream&os,const vector<T>v){rep(i,v.size()){if(i)os<<", ";os<<v[i];}return os;}
template<typename T>T&max(T&a,T&b){if(a>=b)return a;return b;}
template<typename T>T&min(T&a,T&b){if(a < b)return a;return b;}
template<typename T>bool chmax(T&a,T b){if(a < b){a=b;return true;}return false;}
template<typename T>bool chmin(T&a,T b){if(a > b){a=b;return true;}return false;}

constexpr int inf = 1e9;
constexpr ll linf = 3e18;
constexpr double eps = 1e-9;

signed main()
{
    ll N, M;
    cin >> N >> M;

    ll ans = 1;

    // a1~aN の最大公約数がd => a1~aNがすべてd*i(i:自然数)の形で表される
    for (ll i = 2; i <= M; ++i) {
            if (i * N > M) break;
            if ((M - i * N) % i == 0) ans = max(ans, i);
        }
    }

    cout << ans << endl;
}


Compiler output:
a.cc:65:5: error: 'cout' does not name a type
   65 |     cout << ans << endl;
      |     ^~~~
a.cc:66:1: error: expected declaration before '}' token
   66 | }
      | ^
Language: C++

def main03():
    buf = input("");
    if(buf=="1"):
        print("Hello World");
    else:
        buf = input("");
        val1 = int(buf);
        buf = input("");
        val2 = int(buf);
        print(val1+val2);



if __name__ == '__main__':
    main03()


Compiler output:
a.cc:14:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   14 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def main03():
      | ^~~
a.cc:3:5: error: expected unqualified-id before 'if'
    3 |     if(buf=="1"):
      |     ^~
a.cc:5:5: error: expected unqualified-id before 'else'
    5 |     else:
      |     ^~~~
a.cc:7:9: error: 'val1' does not name a type
    7 |         val1 = int(buf);
      |         ^~~~
a.cc:8:9: error: 'buf' does not name a type
    8 |         buf = input("");
      |         ^~~
a.cc:9:9: error: 'val2' does not name a type
    9 |         val2 = int(buf);
      |         ^~~~
a.cc:10:14: error: expected constructor, destructor, or type conversion before '(' token
   10 |         print(val1+val2);
      |              ^
a.cc:14:1: error: expected unqualified-id before 'if'
   14 | if __name__ == '__main__':
      | ^~
Language: C++

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

int main() {

int N;
cin >>N;

int T;
cin >>T;

int c;
int t;

int ans=10000;//暫定の答え

for(int i=1; i<=N; i++){

cin >>c;

cin >>t;

if(t<=T && c<=ans){ans=c;}
}

if(ans<10000){cout <<ans;}
if(ans==10000){cout<< TLE;}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:23: error: 'TLE' was not declared in this scope
   29 | if(ans==10000){cout<< TLE;}
      |                       ^~~
Language: C++

package sample;

import java.util.Scanner;

public class Main {

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

	}

}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package sample;
      | ^~~~~~~
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.Scanner;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main {
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>
int main()
{
int ch;
cin>>ch;
if(ch==1)
{
 cout<<"Hello World";
}
else if(ch==2)
{
  int a,b;
cin>>a>>b;
a = a + b;
cout<<a<<'\n';
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>ch;
      | ^~~
      | std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |  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:15:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 | cout<<a<<'\n';
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.*;
import java.io.*;

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

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

import java.util.Scanner;

public class HelloWorld {

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

		int year = scan.nextInt();
		if(year==1) {
			System.out.println("Hello World");
		} else {
			int first = scan.nextInt();
			int second = scan.nextInt();
			System.out.println(first + second);
		}
	}
}

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

import java.util.*;
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:7: error: ';' expected
			System.out.println("Hello World")
			                                 ^
1 error
Language: Java

import java.util.*;
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:7: error: ';' expected
			System.out.println("Hello World")
			                                 ^
Main.java:11: error: ';' expected
			System.out.println(a+b)
			                       ^
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int input_N = Integer.parseInt(sc.next());
 
        // programming
        List<Params> l = new ArrayList<Params>();
        int max_h = -1;
        int max_h_x = -1;
        int max_h_y = -1;
        int max_h_count = 0;
        for (int i = 0; i < input_N; i++) {
            int x = Integer.parseInt(sc.next());
            int y = Integer.parseInt(sc.next());
            int h = Integer.parseInt(sc.next());

            if (h > max_h) {
                max_h = h;
                max_h_x = x;
                max_h_y = y;
            }
            if (max_h == h) {
                max_h_count++;
            }
        }

        if (max_h_x == 0 && max_h_y == 0) {
            System.out.println(x + " " + y + " " + h);
        }
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
        List<Params> l = new ArrayList<Params>();
             ^
  symbol:   class Params
  location: class Main
Main.java:8: error: cannot find symbol
        List<Params> l = new ArrayList<Params>();
                                       ^
  symbol:   class Params
  location: class Main
Main.java:29: error: cannot find symbol
            System.out.println(x + " " + y + " " + h);
                               ^
  symbol:   variable x
  location: class Main
Main.java:29: error: cannot find symbol
            System.out.println(x + " " + y + " " + h);
                                         ^
  symbol:   variable y
  location: class Main
Main.java:29: error: cannot find symbol
            System.out.println(x + " " + y + " " + h);
                                                   ^
  symbol:   variable h
  location: class Main
5 errors
Language: C++

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

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

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   if(cin >> n,n == 1) cout << "Hello World" << endl;
      |      ^~~
      |      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:5:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   if(cin >> n,n == 1) 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:5:48: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   if(cin >> n,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:6:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   else cout << cin >> a >> b , 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:6:41: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   else cout << cin >> a >> b , 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>
using namespace std;
{
  int N; cin>>N;
  int A,B;cin>>A>>B;
  if(N=1)
  {
	cout<<"hello world";
  }
  if(N=2)
  {
    cout<<A+B;
  }
}

    
  
  


Compiler output:
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
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;
        A += B;
        count << A << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   14 |         count << A << 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;
        count << (A + B) << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   13 |         count << (A + B) << 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;
        count << A + B << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   13 |         count << A + B << 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;
        count >> A + B >> endl;
    }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin << N;
      |     ^~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout >> "Hello World" >> endl;
      |         ^~~~
a.cc:8:34: error: 'endl' was not declared in this scope
    8 |         cout >> "Hello World" >> endl;
      |                                  ^~~~
a.cc:13:9: error: 'count' was not declared in this scope
   13 |         count >> A + B >> endl;
      |         ^~~~~
a.cc:13:27: error: 'endl' was not declared in this scope
   13 |         count >> A + B >> endl;
      |                           ^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'A'
    5 |   int N A B;
      |         ^
a.cc:6:8: error: 'N' was not declared in this scope
    6 |   cin>>N;
      |        ^
a.cc:10:11: error: 'A' was not declared in this scope
   10 |     cout<<A+B<<endl;
      |           ^
a.cc:10:13: error: 'B' was not declared in this scope
   10 |     cout<<A+B<<endl;
      |             ^
Language: C++

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

    return 0;
}


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

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

    return 0;
}


Compiler output:
a.cc:2:1: error: 'use' does not name a type
    2 | use namespace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:5:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     int n; 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: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/iostream:41:
/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:26: 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: Java

import java.util.*;

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:11: error: cannot find symbol
	     	int b = sc.nextINt();
	     	          ^
  symbol:   method nextINt()
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.*;

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:11: error: cannot find symbol
	     	int b = sc.nextINt();
	     	          ^
  symbol:   method nextINt()
  location: variable sc of type Scanner
1 error
Language: Java

public class Test{
	public static void main(String[] args){
	     int age = N;
	     int a = A;
	     int b = B;
	     if(N == 1){
	     	System.out.plintln("Hello World");
	     }else if(N == 2){
	     	System.out.println(a + b);
	     }
	}
}

Compiler output:
Main.java:1: error: class Test is public, should be declared in a file named Test.java
public class Test{
       ^
Main.java:3: error: cannot find symbol
	     int age = N;
	               ^
  symbol:   variable N
  location: class Test
Main.java:4: error: cannot find symbol
	     int a = A;
	             ^
  symbol:   variable A
  location: class Test
Main.java:5: error: cannot find symbol
	     int b = B;
	             ^
  symbol:   variable B
  location: class Test
Main.java:6: error: cannot find symbol
	     if(N == 1){
	        ^
  symbol:   variable N
  location: class Test
Main.java:7: error: cannot find symbol
	     	System.out.plintln("Hello World");
	     	          ^
  symbol:   method plintln(String)
  location: variable out of type PrintStream
Main.java:8: error: cannot find symbol
	     }else if(N == 2){
	              ^
  symbol:   variable N
  location: class Test
7 errors
Language: C

#include <stdio.h>
  int i,j,k;
  scanf ("%d",&i);
  if (i=1){
    printf("Hello World");
  }else {
    scanf ("%d",&j);
    scanf ("%d",&k);
 
    printf("%d",j+k);
    return 0;
  }
}


Compiler output:
main.c:3:10: error: expected declaration specifiers or '...' before string constant
    3 |   scanf ("%d",&i);
      |          ^~~~
main.c:3:15: error: expected declaration specifiers or '...' before '&' token
    3 |   scanf ("%d",&i);
      |               ^
main.c:4:3: error: expected identifier or '(' before 'if'
    4 |   if (i=1){
      |   ^~
main.c:6:4: error: expected identifier or '(' before 'else'
    6 |   }else {
      |    ^~~~
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: C++

#include <stdio.h>
int main(void){ */
  int i,j,k;
  scanf ("%d",&i);
  if (i=1){
    printf("Hello World");
  }else {
    scanf ("%d",&j);
    scanf ("%d",&k);
 
    printf("%d",j+k);
    return 0;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:18: error: expected primary-expression before '/' token
    2 | int main(void){ */
      |                  ^
a.cc:3:3: error: expected primary-expression before 'int'
    3 |   int i,j,k;
      |   ^~~
a.cc:4:16: error: 'i' was not declared in this scope
    4 |   scanf ("%d",&i);
      |                ^
a.cc:8:18: error: 'j' was not declared in this scope
    8 |     scanf ("%d",&j);
      |                  ^
a.cc:9:18: error: 'k' was not declared in this scope
    9 |     scanf ("%d",&k);
      |                  ^
Language: C++

#include <iostream>

using namespace std;

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


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

#include<stdio.h>


int main(void)
{
    int i,a,b;

    scanf("%d",&i);

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

    return 0;
}


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

#include<stdio.h>
  5 
  6 
  7 int main(void)
  8 {
  9     int i,a,b;
 10     
 11     scanf("%d",&i);
 12     
 13     if(i==1)
 14         printf("Hello World\n");
 15     
 16     else if(i==2)
 17         printf("%d\n",a+b);
 18     
 19     return 0;
 20 }


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

/*3-IT 17 杉浦 翔真*/
  2 
  3 
  4 #include<stdio.h>
  5 
  6 
  7 int main(void)
  8 {
  9     int i,a,b;
 10     
 11     scanf("%d",&i);
 12     
 13     if(i==1)
 14         printf("Hello World\n");
 15     
 16     else if(i==2)
 17         printf("%d\n",a+b);
 18     
 19     return 0;
 20 }
 21 
 22 /*実行結果


Compiler output:
a.cc:4:5: error: stray '#' in program
    4 |   4 #include<stdio.h>
      |     ^
a.cc:22:5: error: unterminated comment
   22 |  22 /*実行結果
      |     ^
a.cc:2:3: error: expected unqualified-id before numeric constant
    2 |   2
      |   ^
a.cc:21:2: error: expected unqualified-id before numeric constant
   21 |  21
      |  ^~
Language: Java



import java.util.*;
 

public class main {
	public static void main (String[] args){
     Scanner scan = new Scanner(System.in);
     
     int N = scan.nextInt();
     int M = scan.nextInt();
     
     int sqrtM = (int)Math.sqrt((double)M);
     int k = (int)M/N;
     
     int base = Math.min(k,sqrtM);
     int ans=1;
     
     for(int i=2;i<=base;i++){
    	 if(M%i==0){
    		 ans=i;
    	 }
     }	 
     System.out.println(ans);
}
}



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

#include<iostream>
int main(){
  int N,A,B;
  cin>>N;
  
  if(N==0){
    cout<<"Hello World"<<endl;
  }else{
    cin>>A>>B;
    cout<<A+B<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:7:5: 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:26: 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/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<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:16: 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<iostream>

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:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>N;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<"Hello World"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout<<"Hello World"<<endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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:12:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout<<A+B<<endl;
      |                ^~~~
      |                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>

int main(){
  int N;
  cin>>N;
  if(N=1){
    

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>N;
      |   ^~~
      |   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:6:11: error: expected '}' at end of input
    6 |   if(N=1){
      |          ~^
a.cc:6:11: error: expected '}' at end of input
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
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:9:8: error: 'a' was not declared in this scope
    9 | cin >> a, b;
      |        ^
a.cc:9:11: error: 'b' was not declared in this scope
    9 | cin >> a, b;
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  cin >> N;
  switch (N) {
    case 1:
      cout << "Hello World" << endl;
      break;
    case 2:
      int A, B;
      cin >> A >> B;
      cout << A+B << endl;
      break;
    default:
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:3: error: expected primary-expression before '}' token
   17 |   }
      |   ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  cin >> N;
  switch (N) {
    case 1:
      cout << "Hello World" << endl;
      break;
    case 2:
      int A, B;
      cin >> A >> B;
      cout << A+B << endl;
    default:
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: expected primary-expression before '}' token
   16 |   }
      |   ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N:
  cin >> N;
  switch (N) {
    case 1:
      cout << "Hello World" << endl;
      break;
    case 2:
      int A, B;
      cin >> A >> B;
      cout << A+B << endl;
    default:
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: found ':' in nested-name-specifier, expected '::'
    5 |   int N:
      |        ^
      |        ::
a.cc:5:7: error: 'N' has not been declared
    5 |   int N:
      |       ^
a.cc:6:7: error: qualified-id in declaration before '>>' token
    6 |   cin >> N;
      |       ^~
a.cc:7:11: error: 'N' was not declared in this scope
    7 |   switch (N) {
      |           ^
a.cc:16:3: error: expected primary-expression before '}' token
   16 |   }
      |   ^
Language: C++

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

int main(){
int n; long long ans=1,m;
cin>>n>>m;
for(long long i = 1; i*i <= m; i++){
if(m%i == 0){
if(i*i == m){
if(m/i >= n) ans = max(ans,i)i;
}
else{
if(i >= n) ans = max(ans,m/i);
}
}
}
cout<<ans<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: expected ';' before 'i'
   10 | if(m/i >= n) ans = max(ans,i)i;
      |                              ^
      |                              ;
Language: C++

#include<iostream>
using namespace std;


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

	if (i == 1) {
		cout << "Hello World";
	}
	else {
		int a, b;

		cin >> a;
		cin >> b;

		cout << a + b;

	}
	
	return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |         return;
      |         ^~~~~~
Language: Java

import java.util.*;

public class A112{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();

    if(N == 1)
      System.out.println("Hello World");
    else{
      scan = new Scanner(System.in);
      int A = scan.nextInt();
      scan = new Scanner(System.in);
      int B = scan.nextInt();
      System.out.println(A + B);

    }
  }
}


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

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


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

#include<bits/stdc++.h>
typedef long long ll;
using namespace std;
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin>>n;
  if(n==1){cout<<"Hello World"}
  else{
    int A,B;
    cin>>A>>B;
    cout<<A+B<<endl;}
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before '}' token
    7 |   if(n==1){cout<<"Hello World"}
      |                               ^
      |                               ;
a.cc:8:14: error: 'A' was not declared in this scope
    8 |   else{cout<<A+B<<endl;}
      |              ^
a.cc:8:16: error: 'B' was not declared in this scope
    8 |   else{cout<<A+B<<endl;}
      |                ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int itini,A,B

    cin>>itini,A,B
    if(itini==1){
        cout<<"Hello World"
    }else{
        cout<<A+B
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin>>itini,A,B
      |     ^~~
a.cc:9:6: error: 'else' without a previous 'if'
    9 |     }else{
      |      ^~~~
a.cc:10:17: error: 'B' was not declared in this scope
   10 |         cout<<A+B
      |                 ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'itini' was not declared in this scope
    4 |     cin>>itini,A,B
      |          ^~~~~
a.cc:4:16: error: 'A' was not declared in this scope
    4 |     cin>>itini,A,B
      |                ^
a.cc:4:18: error: 'B' was not declared in this scope
    4 |     cin>>itini,A,B
      |                  ^
a.cc:7:6: error: 'else' without a previous 'if'
    7 |     }else{
      |      ^~~~
Language: C++

import java.util.*;
public class Main{
 public static void main (String args[]){
	 Scanner scan = new Scanner(System.in);
	 String str = scan.next();
	 if(str=="1"){
		 System.out.println("Hello World!");
	 }else if(str=="2"){
		 Scanner scanA = new Scanner(System.in); 
		 String strA = scan.next();
		 Scanner scanB = new Scanner(System.in); 
		 String strB = scan.next();
		 System.out.println(strA+strB);
	 }
 }
}

  

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main{
      | ^~~~~~
Language: C++

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

  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else if(Age == 2){
      |   ^~~~
Language: Java

import java.util.Scanner;

public class TestA{
    public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	int N;
	int A, B;

	N = scan.nextInt();

	if(N == 1){
	    System.out.println("Hello World");
	}else{
	    A = scan.nextInt();
	    B = scan.nextInt();
	    System.out.println(A+B);
	}
    }
}


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

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


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

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

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

#include <iostream>
using namespace std;
int main(){
   int a,b,c;
   cin>>a ;
   if(a==1) cout<<"Hello World"<<endl;
   else{cin>>b>>endl>>c;
      cout<<b+c<<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 <iostream.h>
using namespace std;
int main(){
   int a,b,c;
   cin>>a ;
   if(a==1) cout<<"Hello World"<<endl;
   else{cin>>b>>endl>>c;
      cout<<b+c<<endl;}
   return 0;
}

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

#include <iostream.h>

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

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

#include <iostream.h>

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:4: error: 'cin' was not declared in this scope
    3 |    cin>>a ;
      |    ^~~
a.cc:4:13: error: 'cout' was not declared in this scope
    4 |    if(a==1) cout<<"Hello World"<<endl;
      |             ^~~~
a.cc:4:34: error: 'endl' was not declared in this scope
    4 |    if(a==1) cout<<"Hello World"<<endl;
      |                                  ^~~~
a.cc:5:17: error: 'endl' was not declared in this scope
    5 |    else{cin>>b>>endl>>c;
      |                 ^~~~
a.cc:6:7: error: 'cout' was not declared in this scope
    6 |       cout<<b+c<<endl;}
      |       ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |    cin>>a ;
      |    ^~~
      |    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:5:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |    if(a==1) 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:5:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |    if(a==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:6:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |    else{cin>>b>>endl>>c;
      |                 ^~~~
      |                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |       cout<<b+c<<endl;}
      |       ^~~~
      |       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>
int main(){
   int=a,b,c;
   cin>>a ;
   if(a==1) cout<<"Hello World"<<endl;
   else{cin>>b>>c;
      cout<<b+c<<endl;}
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:7: error: expected unqualified-id before '=' token
    3 |    int=a,b,c;
      |       ^
a.cc:4:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |    cin>>a ;
      |    ^~~
      |    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:4:9: error: 'a' was not declared in this scope
    4 |    cin>>a ;
      |         ^
a.cc:5:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |    if(a==1) 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:5:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |    if(a==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:6:14: error: 'b' was not declared in this scope
    6 |    else{cin>>b>>c;
      |              ^
a.cc:6:17: error: 'c' was not declared in this scope
    6 |    else{cin>>b>>c;
      |                 ^
a.cc:7:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |       cout<<b+c<<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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |       cout<<b+c<<endl;}
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~