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

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

Compiler output:
a.cc:1:2: error: extended character 〈 is not valid in an identifier
    1 | #include〈bits/stdc++.h〉
      |  ^
a.cc:1:2: error: invalid preprocessing directive #include\U00003008bits
    1 | #include〈bits/stdc++.h〉
      |  ^~~~~~~~~~~~~
a.cc:1:23: error: extended character 〉 is not valid in an identifier
    1 | #include〈bits/stdc++.h〉
      |                       ^
a.cc:5:1: error: extended character 〉 is not valid in an identifier
    5 | cin〉〉N;
      | ^
a.cc:5:1: error: extended character 〉 is not valid in an identifier
a.cc:7:8: error: extended character 〈 is not valid in an identifier
    7 |   cout 〈〈 ''Hello, World'' 〈〈 endl;
      |        ^
a.cc:7:8: error: extended character 〈 is not valid in an identifier
a.cc:7:13: error: empty character constant
    7 |   cout 〈〈 ''Hello, World'' 〈〈 endl;
      |             ^~~~~~~
a.cc:7:27: error: empty character constant
    7 |   cout 〈〈 ''Hello, World'' 〈〈 endl;
      |                           ^~
a.cc:7:30: error: extended character 〈 is not valid in an identifier
    7 |   cout 〈〈 ''Hello, World'' 〈〈 endl;
      |                              ^
a.cc:7:30: error: extended character 〈 is not valid in an identifier
a.cc:12:7: error: extended character 〉 is not valid in an identifier
   12 |   cin 〉〉a〉〉b;
      |       ^
a.cc:12:7: error: extended character 〉 is not valid in an identifier
a.cc:12:7: error: extended character 〉 is not valid in an identifier
a.cc:12:7: error: extended character 〉 is not valid in an identifier
a.cc:14:8: error: extended character 〈 is not valid in an identifier
   14 |   cout 〈〈 x 〈〈 endl;
      |        ^
a.cc:14:8: error: extended character 〈 is not valid in an identifier
a.cc:14:15: error: extended character 〈 is not valid in an identifier
   14 |   cout 〈〈 x 〈〈 endl;
      |               ^
a.cc:14:15: error: extended character 〈 is not valid in an identifier
a.cc:2:16: error: expected identifier before '.' token
    2 | using namespace.std;
      |                ^
a.cc:2:16: error: expected ';' before '.' token
    2 | using namespace.std;
      |                ^
      |                ;
a.cc:2:16: error: expected unqualified-id before '.' token
a.cc:4:3: error: expected initializer before 'int'
    4 |   int N;
      |   ^~~
a.cc:5:1: error: 'cin\U00003009\U00003009N' does not name a type
    5 | cin〉〉N;
      | ^~~~~~~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if (N==1){
      | ^~
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else {
      | ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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

int main(void){
  int n, a, b;
  cin >> n;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |     return;
      |     ^~~~~~
a.cc:15:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   15 |     return;
      |     ^~~~~~
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include<map>
#include <algorithm>
#include <vector>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

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:15:16: error: 'a' was not declared in this scope
   15 |         cin >> a >> b;
      |                ^
a.cc:15:21: error: 'b' was not declared in this scope
   15 |         cin >> a >> b;
      |                     ^
Language: C++

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

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

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

#include <stdio.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
#include <cstdlib>
#include <list>
#include <numeric>
#define rep(i,n) for(int i=0;i<n;i++)
#define all(x) (x).begin(),(x).end()
using namespace std;

int a, b, c;
string s, t;

int main()
{
	cin >> a;

  if(a==1)
    cout<<"Hello World"<<endl;
else
  cin>>b>>c;
  cout<<b+c<<endl:
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: expected ';' before ':' token
   24 |   cout<<b+c<<endl:
      |                  ^
      |                  ;
Language: Java

mport java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		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);
		}
		sc.close();
	}
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: expected '}' before 'else'
   10 |      else if(N == 2){
      |      ^~~~
a.cc:8:17: note: to match this '{'
    8 |      if( N == 1){
      |                 ^
a.cc: At global scope:
a.cc:14:3: error: expected declaration before '}' token
   14 |   }
      |   ^
Language: C++

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

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

#pragma gcc optimize("Ofast")
#include <bits/stdc++.h>

using namespace std;
using ll = long long;

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(V) (V).begin(),(V).end()
#define SORT(V) sort(ALL(V)) //小さい方からソート
#define REV(V) reverse(ALL(V)) //リバース
#define RSORT(V) SORT(V);REV(V) //大きい方からソート
#define NPN(V) next_permutation(ALL(V)) //順列
#define pb(n) push_back(n)
#define endl '\n'
#define Endl '\n'
#define DUMP(x)  cout << #x << " = " << (x) << endl
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define Yay(n) cout << ((n) ? "Yay!" : ":(") << endl
#define RAPID cin.tie(0);ios::sync_with_stdio(false)
#define IN(n) cin >> n
#define IN2(a,b) cin >> a >> b
#define IN3(a,b,c) cin >> a >> b >> c 
#define VIN(V) for(int i = 0; i < (V).size(); i++) {cin >> (V).at(i);}
#define OUT(n) cout << n << endl
#define VOUT(V) REP(i, (V).size()) {cout << (V)[i] << endl;}
#define VOUT2(V) REP(i, (V).size()) {cout << (V)[i] << " ";} cout<<endl;

// 型マクロ定義
#define int long long
#define P pair<ll,ll>
#define Vi vector<ll>
#define Vd vector<double>
#define Vs vector<string>
#define Vc vector<char>
#define M map<ll,ll>
#define S set<ll>
#define PQ priority_queue<ll>
#define PQG priority_queue<ll,V,greater<ll>
//

const int MOD = 1000000007;
const int INF = 1061109567;
const double EPS = 1e-10;
const double PI  = acos(-1.0);

int gcd(int a,int b){return b?gcd(b,a%b):a;} //最小公倍数

// デフォルト変数定義
int n,m,a,b,c,x,y,z;
double d,e,f;
string s,t;
//

signed main() {
  RAPID;
  IN(n,a,b);
  if(n==1) OUT("Hello World");
  else OUT(a+b);
}

Compiler output:
a.cc:58:11: error: macro "IN" passed 3 arguments, but takes just 1
   58 |   IN(n,a,b);
      |           ^
a.cc:22:9: note: macro "IN" defined here
   22 | #define IN(n) cin >> n
      |         ^~
a.cc: In function 'int main()':
a.cc:58:3: error: 'IN' was not declared in this scope
   58 |   IN(n,a,b);
      |   ^~
Language: C++

#import<iostream>
main(){int n,a,b;std::cin>>a>>b;std::cout<<(n==1?"Hello World":a+b);}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int n,a,b;std::cin>>a>>b;std::cout<<(n==1?"Hello World":a+b);}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:49: error: operands to '?:' have different types 'const char*' and 'int'
    2 | main(){int n,a,b;std::cin>>a>>b;std::cout<<(n==1?"Hello World":a+b);}
      |                                             ~~~~^~~~~~~~~~~~~~~~~~
Language: C++

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


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

//#include <tourist>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <iostream>
#include <string>
#include <iomanip>
#include <limits>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <list>
#include <queue>
#include <tuple>
#include <deque>
#include <algorithm>
#include <numeric>
#include <iomanip>
#include <utility>
#include <complex>
#include <functional>
using namespace std;
const int MOD = 1000000007;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = (1 << 28);
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1};
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
//setprecision(15)有効数字15桁
//-std=c++14
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
ll lcm(ll a, ll b)
{
    return a * b / gcd(a, b);
}
struct edge {
    int to, cost;
};
int n, b, c;
vector<int> a;
int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> n;
	if(n==1){
      return cout<<"Hello World
"<<"\n",0;
    }
  	cin>>b>>c;
    cout << b+c << "\n";
}



Compiler output:
a.cc:58:20: warning: missing terminating " character
   58 |       return cout<<"Hello World
      |                    ^
a.cc:58:20: error: missing terminating " character
   58 |       return cout<<"Hello World
      |                    ^~~~~~~~~~~~
a.cc:59:5: error: stray '\' in program
   59 | "<<"\n",0;
      |     ^
a.cc:59:7: warning: missing terminating " character
   59 | "<<"\n",0;
      |       ^
a.cc:59:7: error: missing terminating " character
   59 | "<<"\n",0;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:58:18: error: cannot convert 'std::basic_ostream<char>' to 'int' in return
   58 |       return cout<<"Hello World
      |              ~~~~^~~~~~~~~~~~~~
      |                  |
      |                  std::basic_ostream<char>
   59 | "<<"\n",0;
      | ~~~~              
a.cc:59:5: error: expected ';' before 'n'
   59 | "<<"\n",0;
      |     ^~
      |     ;
a.cc:59:7: error: expected ';' before '}' token
   59 | "<<"\n",0;
      |       ^
      |       ;
   60 |     }
      |     ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected primary-expression before '>' token
    8 |     cin>>a>>>b;
      |             ^
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<bits/stdc++.h>
using nemespace std;
    int main(){
        int N, A, B;
            cin >> N;
                if(N == 1){
                    cout << "Hello World" << endl:
                }else if(N == 2){
                    cin >> A >> B;
                        cout << A + B << endl;
                }
    return 0;}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nemespace'
    2 | using nemespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |             cin >> N;
      |             ^~~
      |             std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:21: 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:46: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |                     cout << "Hello World" << endl:
      |                                              ^~~~
      |                                              std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:25: 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:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |                         cout << A + B << endl;
      |                                          ^~~~
      |                                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ',' or ';' before 'cout'
   10 |         cout << ans << endl;
      |         ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected '(' before '{' token
    9 |   else if{
      |          ^
      |          (
Language: C++

/*
このコード、と～おれ!
Be accepted!
∧＿∧　
（｡･ω･｡)つ━☆・*。
⊂　　 ノ 　　　・゜+.
　しーＪ　　　°。+ *´¨)
 　　　　　　　　　.· ´¸.·*´¨) ¸.·*¨)
		  　　　　　　　　　　(¸.·´ (¸.·'* ☆
					*/

#include <stdio.h>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstring>
#include <vector>
#include <numeric>
#include <iostream>
#include <random>
#include <map>
#include <unordered_map>
#include <queue>
#include <regex>

#pragma GCC optimize("Ofast")
#define rep(i, n) for(int i = 0; i < (n); ++i)
#define rep1(i, n) for(int i = 1; i <= (n); ++i)
#define rep2(i, n) for(int i = 2; i < (n); ++i)
#define repr(i, n) for(int i = n; i >= 0; --i)
#define reprm(i, n) for(int i = n - 1; i >= 0; --i)
#define printynl(a) printf(a ? "yes\n" : "no\n")
#define printyn(a) printf(a ? "Yes\n" : "No\n")
#define printYN(a) printf(a ? "YES\n" : "NO\n")
#define printin(a) printf(a ? "possible\n" : "inposible\n")
#define printdb(a) printf("%.50lf\n", a)//少数出力
#define printdbd(a) printf("%.16lf\n", a)//少数出力(桁少なめ)
#define prints(s) printf("%s\n", s.c_str())//string出力
#define all(x) (x).begin(), (x).end()
#define allsum(a, b, c) ((a + b) * c / 2)//等差数列の和、初項,末項,項数
#define pb push_back
#define priq priority_queue
#define rpriq priq<int, vector<int>, greater<int>>
#define deg_to_rad(deg) (((deg)/360.0)*2.0*PI)
#define rad_to_deg(rad) (((rad)/2.0/PI)*360.0)
#define Please return
#define AC 0

using ll = long long;

constexpr int INF = 1073741823;
constexpr int MINF = -1073741823;
constexpr ll LINF = ll(4661686018427387903);
constexpr ll MOD = 1000000007;
const double PI = acos(-1);

using namespace std;

void scans(string& str) {
	char c;
	str = "";
	scanf("%c", &c);
	if (c == '\n')scanf("%c", &c);//最初の改行対策
	while (c != '\n' && c != -1) {
		str += c;
		scanf("%c", &c);
	}
}

void scanc(char& str) {
	char c;
	scanf("%c", &c);
	if (c == -1)return;
	while (c == '\n') {
		scanf("%c", &c);
	}
	str = c;
}

double acot(double x) {
	return PI / 2 - atan(x);
}

/*-----------------------------------------ここからコード-----------------------------------------*/


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


Compiler output:
a.cc: In function 'int main()':
a.cc:91:19: error: 'prinrf' was not declared in this scope; did you mean 'printf'?
   91 |         if(n == 1)prinrf("%s\n", "Hello World");
      |                   ^~~~~~
      |                   printf
Language: C++

#include <bitss/stdc++.h>

using namespace std;

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

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

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

Compiler output:
main.c: In function 'main':
main.c:15:1: error: expected declaration or statement at end of input
   15 | return 0;
      | ^~~~~~
Language: Java

import java.util.*;
public class Main {
  public static void main(String args[]) {
    int n = sc.nextInt();
    int a = sc.nextInt();
    int b = sc.nextInt();

    if (n == 1) {
      System.out.println("Hello World");
    } else {
      System.out.println(a + b);
    }


  }
}


Compiler output:
Main.java:4: error: cannot find symbol
    int n = sc.nextInt();
            ^
  symbol:   variable sc
  location: class Main
Main.java:5: error: cannot find symbol
    int a = sc.nextInt();
            ^
  symbol:   variable sc
  location: class Main
Main.java:6: error: cannot find symbol
    int b = sc.nextInt();
            ^
  symbol:   variable sc
  location: class Main
3 errors
Language: C++

using namespace std;
#define rep(i,n) for( int i = 0 ; i < n ; i++ )
typedef long long ll ;
int main() {

  int N , M , O ;
  cin >> N >> M >> O ;
  if( N == 1 ) cout << "Hello World" << endl;
  else cout << M + O << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N >> M >> O ;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:8:16: error: 'cout' was not declared in this scope
    8 |   if( N == 1 ) cout << "Hello World" << endl;
      |                ^~~~
a.cc:8:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:41: error: 'endl' was not declared in this scope
    8 |   if( N == 1 ) cout << "Hello World" << endl;
      |                                         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout << M + O << endl;
      |        ^~~~
a.cc:9:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:25: error: 'endl' was not declared in this scope
    9 |   else cout << M + O << endl;
      |                         ^~~~
a.cc:9:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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


Compiler output:
a.cc:17:8: error: redefinition of 'int main()'
   17 | signed main(){
      |        ^~~~
a.cc:3:8: note: 'int main()' previously defined here
    3 | signed main(){
      |        ^~~~
Language: C++

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

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


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

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

#define endl '\n'
#define ALL(a)  (a).begin(),(a).end()
#define ALLR(a)  (a).rbegin(),(a).rend()
#define spa << " " <<
#define test cout<<"test"<<endl;
#define fi first
#define se second
#define MP make_pair
#define PB push_back
#define EB emplace_back
#define rep(i,n,m) for(ll i = (n); i < (ll)(m); i++)
#define rrep(i,n,m) for(ll i = (m) - 1; i >= (ll)(n); i--)
using ll = long long;
using ld = long double;
const ll MOD = 1e9+7;
//const ll MOD = 998244353;
const ll INF = 1e18;
using P = pair<ll, ll>;
template<typename T>
void chmin(T &a,T b){if(a>b)a=b;}
template<typename T>
void chmax(T &a,T b){if(a<b)a=b;}
void pmod(ll &a,ll b){a=(a+b)%MOD;}
void pmod(ll &a,ll b,ll c){a=(b+c)%MOD;}
void qmod(ll &a,ll b){a=(a*b)%MOD;}
void qmod(ll &a,ll b,ll c){a=(b*c)%MOD;}
ll median(ll a,ll b, ll c){return a+b+c-max({a,b,c})-min({a,b,c});}
void ans1(bool x){if(x) cout<<"Yes"<<endl;else cout<<"No"<<endl;}
void ans2(bool x){if(x) cout<<"YES"<<endl;else cout<<"NO"<<endl;}
void ans3(bool x){if(x) cout<<"Yay!"<<endl;else cout<<":("<<endl;}
template<typename T1,typename T2>
void ans(bool x,T1 y,T2 z){if(x)cout<<y<<endl;else cout<<z<<endl;}  
template<typename T>
void debug(vector<vector<T>>&v,ll h,ll w){for(ll i=0;i<h;i++)
{cout<<v[i][0];for(ll j=1;j<w;j++)cout spa v[i][j];cout<<endl;}};
void debug(vector<string>&v,ll h,ll w){for(ll i=0;i<h;i++)
{for(ll j=0;j<w;j++)cout<<v[i][j];cout<<endl;}};
template<typename T>
void debug(vector<T>&v,ll n){if(n!=0)cout<<v[0];
for(ll i=1;i<n;i++)cout spa v[i];cout<<endl;};
template<typename T>
vector<vector<T>>vec(ll x, ll y, T w){
  vector<vector<T>>v(x,vector<T>(y,w));return v;}
ll gcd(ll x,ll y){ll r;while(y!=0&&(r=x%y)!=0){x=y;y=r;}return y==0?x:y;}
vector<ll>dx={1,0,-1,0,1,1,-1,-1};
vector<ll>dy={0,1,0,-1,1,-1,1,-1};
template<typename T>
vector<T> make_v(size_t a,T b){return vector<T>(a,b);}
template<typename... Ts>
auto make_v(size_t a,Ts... ts){
  return vector<decltype(make_v(ts...))>(a,make_v(ts...));
}
ostream &operator<<(ostream &os, pair<ll, ll>&p){
  return os << p.first << " " << p.second;
}  
int main(){
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  //cout<<fixed<<setprecision(10);
  ll res=0,buf=0;
  bool judge = true;
  ll a,b,c,d;
  string s;
  cin>>a;
  //cin>>a>>b;
  //cin>>a>>b>>c;
  //cin>>a>>b>>c>>d;
  //cin>>s;
  if(a==1)cout<<"Hello World"<<endl;
  else {
    ll x,y;cin>>x>>y;
    cout<<x+y<<endl;
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'pprinf' was not declared in this scope; did you mean 'vprintf'?
    7 |         if(n==2) pprinf("%d\n",a+b);
      |                  ^~~~~~
      |                  vprintf
Language: C++

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <string>
#include <stdexcept>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected primary-expression before ')' token
   12 |   if(N==!)
      |          ^
Language: C++

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <string>
#include <stdexcept>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected primary-expression before ')' token
   12 |   if(N==!)
      |          ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:9:12: note: to match this '{'
    9 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <string>
#include <stdexcept>
using namespace std;

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


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

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <string>
#include <stdexcept>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: operands to '?:' have different types 'const char*' and 'int'
   12 |   cout << ((N==1)?"Hello World":A+B) << endl;
      |            ~~~~~~^~~~~~~~~~~~~~~~~~
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;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:6:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if (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:6:34: 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:16: 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: C++

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

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

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long                                    // long long省略
#define pb push_back                                    // push_back省略
#define mp make_pair                                    // make_pair省略
#define fi first                                        // first省略
#define se second                                       // second省略
#define itn int                                         // int誤字保険
#define count cout                                      // cout誤字保険
#define vecotr vector                                   // vector誤字保険
#define ednl endl                                       // endl誤字保険
#define opt() cin.tie(0); ios::sync_with_stdio(false)   // 入出力速度改善

#define rep(i,l,r) for(ll i=(l);i<(r);i++)               // 範囲[l, r)で刻み1のfor文(順方向)
#define repp(i,l,r,k) for(ll i=(l);i<(r);i+=(k))         // 範囲[l, r)で刻みkのfor文(順方向)
#define rrep(i,l,r) for(ll i=(r-1);i>=(l);i--)           // 範囲[l, r)で刻み1のfor文(逆方向)
#define rrepp(i,l,r,k) for(ll i=(r-1);i>=(l);i-=(k))     // 範囲[l, r)で刻みkのfor文(逆方向)
#define all(x) (x).begin(), (x).end()                   // vectorのポインタ位置指定用
#define max(p,q)((p)>(q)?(p):(q))                       // max拡張
#define min(p,q)((p)<(q)?(p):(q))                       // min拡張
#define bit(n,m)(((n)>>(m))&1)                          // 変数nのm番目のbitを取り出す

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

int dy[]={0, 1, 0, -1};                                 // 4方向近傍
int dx[]={1, 0, -1, 0};                                 // 4方向近傍

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


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

#include<bits/stdc++.h>
using namespace std;
#define ll long long                                    // long long省略
#define pb push_back                                    // push_back省略
#define mp make_pair                                    // make_pair省略
#define fi first                                        // first省略
#define se second                                       // second省略
#define itn int                                         // int誤字保険
#define count cout                                      // cout誤字保険
#define vecotr vector                                   // vector誤字保険
#define ednl endl                                       // endl誤字保険
#define opt() cin.tie(0); ios::sync_with_stdio(false)   // 入出力速度改善

#define rep(i,l,r) for(ll i=(l);i<(r);i++)               // 範囲[l, r)で刻み1のfor文(順方向)
#define repp(i,l,r,k) for(ll i=(l);i<(r);i+=(k))         // 範囲[l, r)で刻みkのfor文(順方向)
#define rrep(i,l,r) for(ll i=(r-1);i>=(l);i--)           // 範囲[l, r)で刻み1のfor文(逆方向)
#define rrepp(i,l,r,k) for(ll i=(r-1);i>=(l);i-=(k))     // 範囲[l, r)で刻みkのfor文(逆方向)
#define all(x) (x).begin(), (x).end()                   // vectorのポインタ位置指定用
#define max(p,q)((p)>(q)?(p):(q))                       // max拡張
#define min(p,q)((p)<(q)?(p):(q))                       // min拡張
#define bit(n,m)(((n)>>(m))&1)                          // 変数nのm番目のbitを取り出す

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

int dy[]={0, 1, 0, -1};                                 // 4方向近傍
int dx[]={1, 0, -1, 0};                                 // 4方向近傍

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


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

#include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<cmath>
#include<tuple>
#include<string>
typedef unsigned long long ll;
#define rep(i,a,b) for(int i=(a);i<(b);i++)
#define F first
#define S second
using namespace std;
const ll INF = 1e12;
const int i_INF = 2147483647;

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:20:21: error: 'a' was not declared in this scope
   20 |   else int a,b;cin>>a>>b;cout<<a+b<<endl;
      |                     ^
a.cc:20:24: error: 'b' was not declared in this scope
   20 |   else int a,b;cin>>a>>b;cout<<a+b<<endl;
      |                        ^
Language: C++

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

struct Point{
  int x;
  int y;
  int h;
};

bool operator< (const Point &p0, const Point &p1){
  return p0.h < p1.h;
}

Point explore(std::vector<Point> points){
  int n = (int)points.size();
  sort(points.begin(), points.end());
  
  Point center;
  
  int o_x = points.at(n - 1).x;
  int o_y = points.at(n - 1).y;
  int o_h = points.at(n - 1).h;
  
  bool yet = true;
  for(int x = 0; x <= 100 && yet; x++){
    for(int y = 0; y <= 100; y++){
      int h = o_h + abs(x - o_x) + abs(y - o_y);
      bool is_center = true;
      
      for(int i = 0; i < n - 1; i++){
        if(h != points.at(i).h + abs(x - points.at(i).x) + abs(y - points.at(i).y) && p.at(i).h != 0){
          is_center = false;
          break;
        }
      }
      
      if(is_center){
        center = {x, y, h};
        yet = false;
        break;
      }
    }
  }
  
  return center;
}

int main(){
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);
  
  int n;
  std::cin >> n;
  
  std::vector<Point> observation_points(n);
  
  for(int i = 0; i < n; i++){
    int x, y, h;
    std::cin >> x >> y >> h;
    
    observation_points.at(i).x = x;
    observation_points.at(i).y = y;
    observation_points.at(i).h = h;
  }
  
  Point center = explore(observation_points);
  std::cout << center.x << ' ' << center.y << ' ' << center.h << std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'Point explore(std::vector<Point>)':
a.cc:32:87: error: 'p' was not declared in this scope
   32 |         if(h != points.at(i).h + abs(x - points.at(i).x) + abs(y - points.at(i).y) && p.at(i).h != 0){
      |                                                                                       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin>>N>>A>>B;
      |     ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout<<"Hello World"<<endl;
      |         ^~~~
a.cc:5:30: error: 'endl' was not declared in this scope
    5 |         cout<<"Hello World"<<endl;
      |                              ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<A + B<<endl;
      |     ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout<<A + B<<endl;
      |                  ^~~~
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected ';' before '}' token
   13 |         cout<<b+c
      |                  ^
      |                  ;
   14 |     }
      |     ~
Language: C++

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

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

  




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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'in' was not declared in this scope; did you mean 'yn'?
    6 |   in n;
      |   ^~
      |   yn
a.cc:7:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |   cin >> n;
      |          ^
      |          yn
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:45: error: expected ';' before 'else'
    6 |         if (age==1) printf ("Hello World\n")
      |                                             ^
      |                                             ;
    7 |         else
      |         ~~~~
Language: C++

#include<cstdio>#include<algorithm>int n,a,b,u,x[101],h[101],y[101],cx,cy,H;int main(){    scanf("%d",&n);    for(int i=1;i<=n;++i)    {        scanf("%d%d%d",&x[i],&y[i],&h[i]);         if(h[i]!=0)u=i;    }    for(int xi=0;xi<=100;++xi)      for(int yi=0;yi<=100;++yi)        {            cx=xi,cy=yi;            H=h[u]+abs(x[u]-cx)+abs(y[u]-cy);            for(int i=1;i<=n;++i)            {                if(h[i]!=std::max(H-std::abs(x[i]-cx)-std::abs(y[i]-cy),0))break;                if(i==n)                {                    printf("%d %d %d",cx,cy,H);                    return 0;                }            }        }}


Compiler output:
a.cc:1:17: warning: extra tokens at end of #include directive
    1 | #include<cstdio>#include<algorithm>int n,a,b,u,x[101],h[101],y[101],cx,cy,H;int main(){    scanf("%d",&n);    for(int i=1;i<=n;++i)    {        scanf("%d%d%d",&x[i],&y[i],&h[i]);         if(h[i]!=0)u=i;    }    for(int xi=0;xi<=100;++xi)      for(int yi=0;yi<=100;++yi)        {            cx=xi,cy=yi;            H=h[u]+abs(x[u]-cx)+abs(y[u]-cy);            for(int i=1;i<=n;++i)            {                if(h[i]!=std::max(H-std::abs(x[i]-cx)-std::abs(y[i]-cy),0))break;                if(i==n)                {                    printf("%d %d %d",cx,cy,H);                    return 0;                }            }        }}
      |                 ^
/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 <bits/stdc++.h>
using namespace std;

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

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

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);i++)
#define sz(x) int(x.size())
using namespace std;
typedef long long ll;

int main() {
  int n;
  ll cx,cy,H,endf=0,tmp;
  cin >> n;
  vector<ll>x(n);
  vector<ll>y(n);
  vector<ll>h(n);
  rep(i,n) cin >> x.at(i) >> y.at(i) >> h.at(i);
  rep(i,101){
  	cx=i;
  	rep(j,101){
  		cy=j;
  		rep(k,n){
  			if(h.at(k)>=1){
  				H=h.at(k)+abs(cx-x.at(k))+abs(cy-y.at(k));
  				break;
  			}
  		}
  		rep(k,n){
  			tmp=max(H-abs(cx-x.at(k))-abs(cy-y.at(k)),0);
  			if(tmp!=h.at(k)) break;
  			else if(k==n-1) endf=1;
  		}		
     	if(endf==1) break;	
  	}
  	if(endf==1) break;
  }
  cout << cx << " " << cy << " " << H << endl; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:32: error: no matching function for call to 'max(ll, int)'
   26 |                         tmp=max(H-abs(cx-x.at(k))-abs(cy-y.at(k)),0);
      |                             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:26:32: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   26 |                         tmp=max(H-abs(cx-x.at(k))-abs(cy-y.at(k)),0);
      |                             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:26:32: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   26 |                         tmp=max(H-abs(cx-x.at(k))-abs(cy-y.at(k)),0);
      |                             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  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:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;

int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  cout << setprecision(20);

  int n;
  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:17:12: error: 'a' was not declared in this scope
   17 |     cin >> a >> b;
      |            ^
a.cc:17:17: error: 'b' was not declared in this scope
   17 |     cin >> a >> b;
      |                 ^
Language: C++

#include <bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define rep1(i,n) for(int i=1;i<=n;++i)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define double long double
using namespace std;
//桁
int kt(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
 }
int lcm(int a,int b){
  int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return d*e/f;
    }
  int gcm(int a,int b){
      int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return f;
  }
signed main(){
  int a,b;
  vector<int> c(a);
  rep(i,a)
    cin>>c.at(i);
  sort(all(c));
  rep(i,b){
    c.at(0)/=2
    sort(all(c));
  }
  int f=0;
  rep(i,a){
    f+=c.at(i);
  }
  cout<<f;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:59:15: error: expected ';' before 'sort'
   59 |     c.at(0)/=2
      |               ^
      |               ;
   60 |     sort(all(c));
      |     ~~~~