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

#include<iostream>

uisng namespace std;

int main()
{
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  cin >> n;
  cout << (n + 1) / 2 << '\n';
  return 0;
}	

Compiler output:
a.cc:3:1: error: 'uisng' does not name a type
    3 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'ios_base' has not been declared
    7 |   ios_base::sync_with_stdio(false);
      |   ^~~~~~~~
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin.tie(nullptr);
      |   ^~~
      |   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:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout << (n + 1) / 2 << '\n';
      |   ^~~~
      |   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 <bits/stdc++.h>
using namespace std;
#define FOR(i,o,n) for(long long i = o;i<n;i++)
#define oneforall ios::sync_with_stdio(false);cin.tie(0);
#define all(v) (v).begin(),(v).end()
#define ini(...) int __VA_ARGS__; in(__VA_ARGS__)
#define inl(...) long long __VA_ARGS__; in(__VA_ARGS__)
#define ins(...) string __VA_ARGS__; in(__VA_ARGS__)
const long long INF=1e18;
void in(){} template <typename T,class... U> void in(T &t,U &...u){ cin >> t; in(u...);}
void out(){cout << "\n";} template <typename T,class... U> void out(const T &t,const U &...u){ cout << t; if(sizeof...(u)) cout << " "; out(u...);}
typedef vector<int> vi;
typedef vector<long long> vl;
typedef long long ll;
typedef vector<pair<long,long>> vpll;
typedef vector<pair<int,int>> vpii;
int main() {
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	ini(n);
	if(n%2){
		out(n/2+1);
		return 0;
	}
	else{
		out(n/2);
		return 0;
	}

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

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

int main() {

  // int型の2次元配列(3×4要素の)の宣言
  vector<vector<int>> data(3, vector<int>(3));
  int n;
  string ans;
  vector<int> v(10); 

  // 入力 (2重ループを用いる)
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> data.at(i).at(j);
    }
  }
  cin >>n;
  for(int k = 0; k < n; k++){
    cin >> v.at(k);
  }
  int m = 0;
  wlile(m <= n){
    for (int i = 0; i < 3; i++) {
      for (int j = 0; j < 3; j++) {
      if(v.at(m)==data.at(i).at(j)){
        data.at(i).at(j) = 0;
        m++;
    }}}
  if(data.at(0).at(0)+data.at(0).at(1)+data.at(0).at(2)==0
     ||data.at(1).at(0)+data.at(1).at(1)+data.at(1).at(2)==0
     ||data.at(2).at(0)+data.at(2).at(1)+data.at(2).at(2)==0
     ||data.at(0).at(0)+data.at(1).at(0)+data.at(2).at(0)==0
     ||data.at(0).at(1)+data.at(1).at(1)+data.at(2).at(1)==0
     ||data.at(0).at(2)+data.at(1).at(2)+data.at(2).at(2)==0
     ||data.at(0).at(0)+data.at(1).at(1)+data.at(2).at(2)==0
     ||data.at(0).at(2)+data.at(1).at(1)+data.at(2).at(0)==0)
  {ans = "Yes";}
  else{ans = "No";}
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:3: error: 'wlile' was not declared in this scope
   23 |   wlile(m <= n){
      |   ^~~~~
a.cc:41:2: error: expected '}' at end of input
   41 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

void main(){
	int N;
  cin >> N;
  cout << ((N/2)+(N%2));
}

Compiler output:
a.cc:2:17: error: 'utd' is not a namespace-name
    2 | using namespace utd;
      |                 ^~~
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
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 /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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << ((N/2)+(N%2));
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
 int n; cin >> n;
  cout << ceil((double)n/2) << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'ceil' was not declared in this scope
    6 |   cout << ceil((double)n/2) << "\n";
      |           ^~~~
Language: C++

#include<functional>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cstring>
#include<cstdlib>
#include<utility>
#include<string>
#include<cstdio>
#include<vector>
#include<bitset>
#include<cmath>
#include<ctime>
#include<queue>
#include<deque>
#include<stack>
#include<map>
#include<set>
using namespace std;
const int inf=2147483647,dx[]={-1,0,1,0},dy[]={0,-1,0,1};// 上 左 下 右
const int N=100005,M=1000005,K=200005,mod=1000000007;
const long long llinf=9223372036854775807ll;
//int & long long
int n; 
int main(){
	cin>>n;
	cou<<(n+1)/2;
	return 0;
}


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

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

using namespace std;
using ll = long long int;
using vec = vector<int>;

#define rep(i, n) for(int i = 0; i < (n); ++i)
#define Sort(a)   sort(a.begin(), a.end())
const int INF = INT_MAX;
const ll  MOD = 1000000007;

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

    cout << ((n/2) + ((n%2==0)? 0: 1));
}

Compiler output:
a.cc:16:17: error: 'INT_MAX' was not declared in this scope
   16 | const int INF = INT_MAX;
      |                 ^~~~~~~
a.cc:8:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    7 | #include <queue>
  +++ |+#include <climits>
    8 | #include <string>
Language: C++

#include<iostream>
using namespace std;

int main(){
  int n;cin>>n;
  print((n+1)/2);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'print' was not declared in this scope; did you mean 'printf'?
    6 |   print((n+1)/2);
      |   ^~~~~
      |   printf
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < n; ++i)
#define INF 100000000
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main(){
  int n, m;
  cin >> n >> m;
  vector<P> p(m);
  rep(i,m) cin >> p[i].first >> p[i].second;
  
  //0から999まで全探索して条件を満たすか確かめる
  rep(x,1000){
  	int nx = x/10;
  	vector<int> d(x%10);
  	d[0] = 1;
  	while(nx){
  		d.push_back(nx%10);
  		nx /= 10;
  	}
  	reverse(d.begin(), d.end());
  	bool can = true;
  	if(n != d.size()) contine;
  	rep(i,m){
  		if(d[p[i].first-1] != p[i].second) can = false;
  	}
  	if(can) cout << x << endl;
  	return 0;
  }
  cout << -1 << endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:25:27: error: 'contine' was not declared in this scope
   25 |         if(n != d.size()) contine;
      |                           ^~~~~~~
Language: C++

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

int main()
{
  int n;
  cin>>n;
  if(n%2==0)
    cout<<n/2;
  else
    cout<<n/2 + 1;
  return 0;
}

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

#include<bits/stdc++.h>
using namespaces td;

int main()
{
  int n;
  cin>>n;
  if(n%2==0)
    cout<<n/2;
  else
    cout<<n/2 +1;
  return 0;
}

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

int main(){
int N;

cin >> N;

if (N%2==1){
  N=N/2+1;
}else{
  N=N/2;
}

cout << N << 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:7:1: error: 'cin' was not declared in this scope
    7 | cin >> N;
      | ^~~
a.cc:15:1: error: 'cout' was not declared in this scope
   15 | cout << N << endl;
      | ^~~~
a.cc:15:14: error: 'endl' was not declared in this scope
   15 | cout << N << endl;
      |              ^~~~
Language: C++

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

int main{
int N;

cin >> N;

if (N%2==1){
  N=N/2+1;
}else{
  N=N/2;
}

cout << N << endl;
  
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
    5 | int N;
      | ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> N;
      | ^~~
a.cc:9:1: error: expected unqualified-id before 'if'
    9 | if (N%2==1){
      | ^~
a.cc:11:2: error: expected unqualified-id before 'else'
   11 | }else{
      |  ^~~~
a.cc:15:1: error: 'cout' does not name a type
   15 | cout << N << endl;
      | ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: Java

import java.util.Scanner;

public class duplexprinting {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int n;
		Scanner sc = new Scanner(System.in);
		
		n = sc.nextInt();
		
		System.out.println(n%2==0 ? n/2:(n/2)+1);

	}

}


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

#include <iostream>
using namespace std;


 int main() {
    cin >> N;
int res = 0;
   
    
  
  { 
         res = N/2;   
        }
          
    cout << res << endl;
}



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

#include<bits/stdc++.h>
#define ll long long
#define F(i,n) for(int i=0;i<n;i++)
#define pb push_back
#define i64 int64_t
#define fi first
#define se second
using namespace std;
int main()
{
	ios::sync_with_stdio(0);cin.tie(0);
	int n;
	cin>>n;
	if(n%2==0)
		cout<<(n/2);
	else
		cout(n/2+1);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (int)'
   17 |                 cout(n/2+1);
      |                 ~~~~^~~~~~~
Language: C++

#include<isotream>
using namespace std;
int main()
{
 int count = 0;
  int n;
  cin >> n;
  for (int i = 0; i <=n; i++)
  {
    if(i%2==1)	count++;
  }
  
  cout << count;
}

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

#include<iostream>

int mian() {
	double a;

	std::cin >> a;

	a /= 2;
    
    a += 0.5;
    
	int b;

	b = (int)a;

	std::cout << b;
	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<iostream>
 
int mian (){
  double a;
  
  std::cin>>a;
  
  a += 0.5;
  
  int b;
  
  b = (int)a;
  
  std::cout << b ;
  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<iostream>

int mian (){
  double a;
  
  std::cin>>a;
  
  a += 0.5;
  
  int b;
  
  b = a;
  
  std::cout << b ;
  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++

# A - Duplex Printing
def main():
    N = int(input())
    print((N + 1) // 2)


if __name__ == "__main__":
    main()


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #A
    1 | # A - Duplex Printing
      |   ^
a.cc:2:1: error: 'def' does not name a type
    2 | def main():
      | ^~~
Language: C++

#include <bits/stdc++.h>
int main(){
	int n;
  	cin >> n;
  if(n%2==0)
    cout << n/2;
	else
      cout << (n/2) + 1;
  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 |         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:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << n/2;
      |     ^~~~
      |     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:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       cout << (n/2) + 1;
      |       ^~~~
      |       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 n;
  	cin >> n;
  if(n%2==0)
    cout << n/2;
	else
      cout << (n/2) + 1;
  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 |         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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << n/2;
      |     ^~~~
      |     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:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       cout << (n/2) + 1;
      |       ^~~~
      |       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.h>
int main(){
	int n;
  	cin >> n;
  if(n%2==0)
    cout << n/2;
	else
      cout << (n/2) + 1;
  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>
using namespace std;
int main() {
	int N;
	cin >> N;
	int ans = 0;
	if (n % 2 == 1) ans = N / 2 + 1;
	else ans = N / 2;
	cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'n' was not declared in this scope
    7 |         if (n % 2 == 1) ans = N / 2 + 1;
      |             ^
Language: C++

#include <stdio.h>

using namespace std;

int main(){
	int n;
	cin>>n;
  
  	cout<<(n%2==0)?(n/2):((n+1)/2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>n;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout<<(n%2==0)?(n/2):((n+1)/2);
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int n;
  cin >> n;
  if (n%2==0) cout << n/2;
  else if cout << n/2+1;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected '(' before 'cout'
    9 |   else if cout << n/2+1;
      |           ^~~~
      |           (
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#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++)
#define ALL(vec)  (vec).begin(),(vec).end()
#define pi 3.1415926535897932384626433832795
#define MAX_INF 9223372036854775807
#define MIN_INF (922337203685477587+1)
#define sosuu 1000000007

int main() {
  int N;
  cin >>N;
  cout << (N+1)/2) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: expected ';' before ')' token
   15 |   cout << (N+1)/2) << endl;
      |                  ^
      |                  ;
Language: C++

#include <vector>
#include <fstream>
using namespace std;

int main() {
  int n, div, rem;
  cin >> n;

  div = n / 2;
  rem = n % 2;

  if (rem == 1) {
    div = div + 1;
  }
  cout << div;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> n;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <fstream>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << div;
      |   ^~~~
a.cc:15:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
int N, A[3][3], b[10];
bool apper[3][3];
int main() {
	for (int i = 0; i < 3; i++){
		for (int j = 0; j < 3; j++){
			cin >> A[i][j];
		}
	}
	cin >> N;
	for (int k = 0; k < N; k++) cin >> b[k];

	for(int i = 0; i < N; i++) {
		 for(int j = 0; j < N; j++) {
			 appear[i][j] = false;
			 for(int k = 0; k < N; k++) {
				 if(A[i][j] == b[k]) appear[i][j] = true;
			}
		}
	}

	string ANS = "No";
	for(int i = 0; i < 3; i++) {
		if(appear[i][0] and appear[i][1] and appear[i][2]) ANS = "Yes";
	}
	for(int i = 0; i < 3; i++) {
		if(appear[0][i] and appear[1][i] and appear[2][i]) ANS = "Yes";
	}
	if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
	if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
	cout << ANS << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: 'appear' was not declared in this scope; did you mean 'apper'?
   16 |                          appear[i][j] = false;
      |                          ^~~~~~
      |                          apper
a.cc:25:20: error: 'appear' was not declared in this scope; did you mean 'apper'?
   25 |                 if(appear[i][0] and appear[i][1] and appear[i][2]) ANS = "Yes";
      |                    ^~~~~~
      |                    apper
a.cc:28:20: error: 'appear' was not declared in this scope; did you mean 'apper'?
   28 |                 if(appear[0][i] and appear[1][i] and appear[2][i]) ANS = "Yes";
      |                    ^~~~~~
      |                    apper
a.cc:30:12: error: 'appear' was not declared in this scope; did you mean 'apper'?
   30 |         if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
      |            ^~~~~~
      |            apper
a.cc:31:12: error: 'appear' was not declared in this scope; did you mean 'apper'?
   31 |         if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
      |            ^~~~~~
      |            apper
Language: C++


int main() {
    int i, a;
    cin >> i;
    a = (i + 1) / 2;
    cout << a << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> i;
      |     ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << a << endl;
      |     ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope
    6 |     cout << a << endl;
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
2 using namespace std;
3 int N, A[3][3], b[10];
4 bool appear[3][3];
5 int main() {
6 for(int i = 0; i < 3; i++) {
7 for(int j = 0; j < 3; j++) cin >> A[i][j];
8 }
9 cin >> N;
10 for(int i = 0; i < N; i++) cin >> b[i];
11 for(int i = 0; i < N; i++) {
12 for(int j = 0; j < N; j++) {
13 appear[i][j] = false;
14 for(int k = 0; k < N; k++) {
15 if(A[i][j] == b[k]) appear[i][j] = true;
16 }
17 }
18 }
19 string ANS = "No";
20 for(int i = 0; i < 3; i++) {
21 if(appear[i][0] and appear[i][1] and appear[i][2]) ANS = "Yes";
22 }
23 for(int i = 0; i < 3; i++) {
24 if(appear[0][i] and appear[1][i] and appear[2][i]) ANS = "Yes";
25 }
26 if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
27 if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
28 cout << ANS << endl;
29 return 0;

Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2 using namespace std;
      | ^
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3 int N, A[3][3], b[10];
      | ^
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 4 bool appear[3][3];
      | ^
a.cc:5:1: error: expected unqualified-id before numeric constant
    5 | 5 int main() {
      | ^
Language: C++



int main(){
 	int n;
  	n >> cin;
  	cout << n / 2 + 1;
}  


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'cin' was not declared in this scope
    5 |         n >> cin;
      |              ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout << n / 2 + 1;
      |         ^~~~
Language: C++

#include<bits\stdc++.h>

using namespace std;

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

    if(n%2==0){
        cout<<n/2;
    }
    else{
        cout<<(n+1)/2;
    }
    return 0;
}

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<bits\stdc++.h>

using namespace std;

int main()
{
    int n;
    printf("please enter the total number of pages:");
    scanf("%d",&n);

    if(n%2==0){
        printf("%d",n/2);
    }
    else{
        printf("%d",(n+1)/2);
    }
    return 0;
}

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 <bits/stdc++.h>
#include <stdlib.h>
using namespace std;
typedef long long ll;

int n,m,k;
int seen[100010];

void dfs(vector<vector<int>> G, int v, int cur){
  seen[v]=cur;
  for(auto next_v:G[v]){
    if(seen[next_v]==cur) continue;
    dfs(G,next_v,cur);
  }
}

int main() {
  cin>>n>>m>>k;
  vector<vector<int>> fri(100010);
  vector<vector<int>> blo(100010);
  for(int i=0;i<m;i++){
    int a,b;
    cin>>a>>b;
    fri.at(a-1).push_back(b-1);
    fri.at(b-1).push_back(a-1);
  }
  for(int i=0;i<k;i++){
    int a,b;
    cin>>a>>b;
    blo.at(a-1).push_back(b-1);
    blo.at(b-1).push_back(a-1);
  }
  seen.assign(n+2,0);
  int cur=1;
  for(int i=0;i<n;i++){
    if(seen[i]>=1) continue;
    else {
      dfs(fri,i,cur);
      cur++;
    }
  }
  int memo[100010]={};
  for(int i=0;i<n;i++){
    memo[seen[i]]++;
  }
  for(int i=0;i<n;i++){
    int ans=memo[seen[i]];
    ans-=1;
    ans-=fri.at(i).size();
    for(int j=0;j<blo.at(i).size();j++){
      if(memo[seen[i]]==memo[seen[blo.at(i).at(j)]]) ans--;
    }
    cout<<ans;
    if(i!=n-1) cout<<' ';
  }
  cout<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:8: error: request for member 'assign' in 'seen', which is of non-class type 'int [100010]'
   33 |   seen.assign(n+2,0);
      |        ^~~~~~
Language: C++

#include<bits/std++c.h>

using namespace std;

int main(){
	int n; cin >> n;
  
 	cout << n/2 + n%2 << '\n';
}

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

#include <bits/stdc++.h>
 
int main(){
  int N;cin>>N;
  int S=(N+1)/2;
  cout<<S<<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 /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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<S<<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:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<S<<endl;
      |            ^~~~
      |            std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
 
int main(){
  int N;cin>>N;
  int N=(N+1)/2;
  cout<<N<<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 /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:5:7: error: redeclaration of 'int N'
    5 |   int N=(N+1)/2;
      |       ^
a.cc:4:7: note: 'int N' previously declared here
    4 |   int N;cin>>N;
      |       ^
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<N<<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:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<N<<endl;
      |            ^~~~
      |            std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

int main(){
  int N;cin>>N;
  int N=(N+1)/2;
  cout<<N<<endl;

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 /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:5:7: error: redeclaration of 'int N'
    5 |   int N=(N+1)/2;
      |       ^
a.cc:4:7: note: 'int N' previously declared here
    4 |   int N;cin>>N;
      |       ^
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<N<<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:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<N<<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:6:17: error: expected '}' at end of input
    6 |   cout<<N<<endl;
      |                 ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main()
{
  int n;
  scanf("%d",&n);
  if(n%2==1){
	printf("%d",n/2+1);
  else{
    printf("%d",n/2);
  }
  return 0;
}

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

#include <iostream>
main(){int n;cin>>n;std::cout<<(++n>>2);}



Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int n;cin>>n;std::cout<<(++n>>2);}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:14: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    2 | main(){int n;cin>>n;std::cout<<(++n>>2);}
      |              ^~~
      |              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
      |                  ^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int n;
  cin >> n;
  cout << (n + 1)/2;
  retirn 0;
}

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

#include <bits/cstd++>

using namespace std;

int main() {
  int n;
  cin >> n;
  cout << (n + 1)/2;
}

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

#include <bits/cstd+++>

using namespace std;

int main() {
  int n;
  cin >> n;
  cout << (n + 1)/2;
}

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

#include<iostream>
using namespace std;

int main(){
  int n;
  while(cin>>n){
    cout<<n/2+n&1<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |     cout<<n/2+n&1<<endl;
      |                 ~^~~~~~
Language: Java

inport java.util.Scanner;

public class main{
public static void main(String[] args) {
  System.err.print("N");
  int N = scanner.NextInt();

  
  if(o<=N<=100, N/2 == 0){
  System.out.println(N/2);
  }
  else(o<=N<-100, N/2 == 1){
  System.out.println(N/2 + 1);  
  }
  else(
  System.out.println("error");
  )
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
inport java.util.Scanner;
^
Main.java:9: error: ')' expected
  if(o<=N<=100, N/2 == 0){
              ^
Main.java:9: error: not a statement
  if(o<=N<=100, N/2 == 0){
                    ^
Main.java:9: error: ';' expected
  if(o<=N<=100, N/2 == 0){
                        ^
Main.java:12: error: ')' expected
  else(o<=N<-100, N/2 == 1){
                ^
Main.java:12: error: not a statement
  else(o<=N<-100, N/2 == 1){
      ^
Main.java:12: error: 'else' without 'if'
  else(o<=N<-100, N/2 == 1){
  ^
Main.java:12: error: not a statement
  else(o<=N<-100, N/2 == 1){
                      ^
Main.java:12: error: ';' expected
  else(o<=N<-100, N/2 == 1){
                          ^
Main.java:16: error: ')' expected
  System.out.println("error");
                             ^
Main.java:15: error: not a statement
  else(
      ^
Main.java:15: error: 'else' without 'if'
  else(
  ^
Main.java:17: error: illegal start of expression
  )
  ^
13 errors
Language: Java

nport java.util.Scanner;

public class main{
public static void main(String[] args) {
  System.err.print("N");
  int N = scanner.NextInt();

  
  if(o<=N<=100, N/2 == 0)
  System.out.println(N/2);
  else(o<=N<-100, N/2 == 1){
  System.out.println(N/2 + 1);  
  }
  else(
  System.out.println("error");
  )
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
nport java.util.Scanner;
^
Main.java:9: error: ')' expected
  if(o<=N<=100, N/2 == 0)
              ^
Main.java:9: error: not a statement
  if(o<=N<=100, N/2 == 0)
                    ^
Main.java:9: error: ';' expected
  if(o<=N<=100, N/2 == 0)
                        ^
Main.java:11: error: ')' expected
  else(o<=N<-100, N/2 == 1){
                ^
Main.java:11: error: not a statement
  else(o<=N<-100, N/2 == 1){
      ^
Main.java:11: error: 'else' without 'if'
  else(o<=N<-100, N/2 == 1){
  ^
Main.java:11: error: not a statement
  else(o<=N<-100, N/2 == 1){
                      ^
Main.java:11: error: ';' expected
  else(o<=N<-100, N/2 == 1){
                          ^
Main.java:15: error: ')' expected
  System.out.println("error");
                             ^
Main.java:14: error: not a statement
  else(
      ^
Main.java:14: error: 'else' without 'if'
  else(
  ^
Main.java:16: error: illegal start of expression
  )
  ^
13 errors
Language: C++

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

int main() {
  int N;
  1<N<100
  cout << N / 2 + N % 2 >> endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected ';' before 'cout'
    6 |   1<N<100
      |          ^
      |          ;
    7 |   cout << N / 2 + N % 2 >> endl;
      |   ~~~~
Language: Java

public class A {
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int s = (N+1)/2;
      	System.out.println(s);
    }

}


Compiler output:
Main.java:1: error: class A is public, should be declared in a file named A.java
public class A {
       ^
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class A
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class A
3 errors
Language: C

#include<stdio.h>

int main(void){

  int N;
  
  scanf("%d\n",&N);


  
  if(N%2==0){printf("%d\n",N/2);}
  else{printf("%d\n",(N+1)/2)}

  return 0;

}

Compiler output:
main.c: In function 'main':
main.c:12:30: error: expected ';' before '}' token
   12 |   else{printf("%d\n",(N+1)/2)}
      |                              ^
      |                              ;
Language: Java

package jp.atcoder.abc093.c.j;

import java.util.Scanner;

public class A {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int s = (N+1)/2;
      	System.out.println(s);

    }

}


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

#include <iostream>

int main() {
	int N, M;
	int s[10];
	int c[10];
	int num[10] = {-1};

	std::cin >> N >> M;
	for (int i = 0; i < M; i++)
		for (int j = 0; j < 2; j++)
			if (j == 0) std::cin >> s[i];
			else std::cin >> c[i];

	bool exist = true;
	for (int i = 0; i < M; i++) {
		if (num[s[i]-1] == -1) num[s[i]-1] = c[i];
		else if (num[s[i]-1] != c[i]) {
			exist = false;
			break;
		}
	}

	if (N != 1 && num[0] == 0) exist = false;

	int g_num = 0;
	if (exist) {
		for (int i = 0; i < N; ++i) {
			if (num[i] == -1) g_num += 0;
			else g_num += ((10 ** (N-i-1)) * num[i])
		}
		std::cout << g_num << std::endl;
	} else {
		std::cout << -1 << std::endl;
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:45: error: invalid type argument of unary '*' (have 'int')
   30 |                         else g_num += ((10 ** (N-i-1)) * num[i])
      |                                             ^~~~~~~~~
Language: C++

#include<bits/c++.h>
using namespace std;
int main(){
int res=0,n;
  cin<<n;
  res=n%2+n/2;
  cout>>res>>endl;
}

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

#include<stdio.h>
int main(void){
  int n;
  scanf("%d",&n);
  pritnf("%d",n/2 + n%2);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |   pritnf("%d",n/2 + n%2);
      |   ^~~~~~
      |   printf
Language: C

#include<stdio.h>
int main(void){
  int n;
  scanf("%d",&n);
  pritnf("%d",n\2 + n%2);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |   pritnf("%d",n\2 + n%2);
      |   ^~~~~~
      |   printf
main.c:5:16: error: stray '\' in program
    5 |   pritnf("%d",n\2 + n%2);
      |                ^
main.c:5:16: error: expected ')' before numeric constant
    5 |   pritnf("%d",n\2 + n%2);
      |         ~      ^~
      |                )
Language: C++

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

int main() {
  cout << N / 2 + N % 2 >> endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'N' was not declared in this scope
    5 |   cout << N / 2 + N % 2 >> endl;
      |           ^
Language: C

include<stdio.h>

int main(void)
{
  int N
  (N >= 1) && (N <= 100)
    printf("ページ数を入力して下さい。¥n");
    
    scanf("%d", &N)
      if(N%2 = 0){
      printf("N/2");
      }
     else{
       printf("((N/2) + 1 )");
     }
 
     return 0;
}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>
 
int main(void) {
  int N,Ans;
  scanf("%d", &N);
  if (N%2=0) {
    Ans = N/2;
  }
  else {
    Ans = (N+1)/2;
  }
  printf("%d", Ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:10: error: lvalue required as left operand of assignment
    6 |   if (N%2=0) {
      |          ^
Language: C++

#include<iostream>
using namespace std;
int main()
{int n;
 cin>>n;
 if(n%2==0)
 {cout<<n/2;
 }
 else 
   cout<<(n/2)+1;
 return 0;


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

#include <stdio.h>
 
int main(void) {
  int N,Ans;
  scanf("%d", &N);
  if (N%2=0) {
    Ans = N/2;
  }
  else {
    Ans = (N+1)/2;
  }
  printf("%d", Ans);
  return 0;
}
#include <stdio.h>

int main(void) {
  int N,Ans;
  scanf(%d, &N);
  if ( N%2 = 0) {
    Ans = N/2;
  }
  else {
    Ans = (N+1)/2;
  }
  printf("%d", Ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:10: error: lvalue required as left operand of assignment
    6 |   if (N%2=0) {
      |          ^
main.c: At top level:
main.c:17:5: error: redefinition of 'main'
   17 | int main(void) {
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int(void)'
    3 | int main(void) {
      |     ^~~~
main.c: In function 'main':
main.c:19:9: error: expected expression before '%' token
   19 |   scanf(%d, &N);
      |         ^
main.c:20:12: error: lvalue required as left operand of assignment
   20 |   if ( N%2 = 0) {
      |            ^
Language: C++

#include<iostream.h>
using namespace std;
int main()
{int n;
 cin>>n;
 if(n%2==0)
 {cout<<n/2;
 }
 else 
   cout<<(n/2)+1;
 return 0;


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

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


int main(){
    int a, b, c, d, e, f, g , h, i, N;
    vector<int> V;
    cin >> a >> b >> c >> d >> e >> f >> g >> h >> i;
    cin >> N;
    for(int i; i < N; i++){
        int t;
        cin >> t;
        V.push_back(t);
    }
    for(int q = 0; q < N; q++){
        if(V[q] == a){
            a = 0;
        }
        if(V[q] == b){
            b = 0;
        }
        if(V[q] == c){
            c = 0;
        }
        if(V[q] == d){
            d = 0;
        }
        if(V[q] == e){
            e = 0;
        }
        if(V[q] == f){
            f = 0;
        }
        if(V[q] == g){
            g = 0;
        }
        if(V[q] == h){
            h = 0;
        }
        if(V[q] == i){
            i = 0;
        }
    }
    if((a == 0 && b == 0 && c == 0) || (a == 0 && e == 0 && i == 0) || (a == 0 && d == 0 && g == 0) || (d == 0 && e == 0 && f == 0) || (g == 0 && h == 0 && i == 0) || (g == 0 && e == 0 && c == 0) || (a == 0 && c == 0 && g == 0 && i == 0){
        cout << "Yes";
    }
    else{
        cout << "No";
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:44:238: error: expected ';' before '{' token
   44 |     if((a == 0 && b == 0 && c == 0) || (a == 0 && e == 0 && i == 0) || (a == 0 && d == 0 && g == 0) || (d == 0 && e == 0 && f == 0) || (g == 0 && h == 0 && i == 0) || (g == 0 && e == 0 && c == 0) || (a == 0 && c == 0 && g == 0 && i == 0){
      |                                                                                                                                                                                                                                              ^
      |                                                                                                                                                                                                                                              ;
a.cc:47:5: error: expected primary-expression before 'else'
   47 |     else{
      |     ^~~~
a.cc:46:6: error: expected ')' before 'else'
   46 |     }
      |      ^
      |      )
   47 |     else{
      |     ~~~~
a.cc:44:7: note: to match this '('
   44 |     if((a == 0 && b == 0 && c == 0) || (a == 0 && e == 0 && i == 0) || (a == 0 && d == 0 && g == 0) || (d == 0 && e == 0 && f == 0) || (g == 0 && h == 0 && i == 0) || (g == 0 && e == 0 && c == 0) || (a == 0 && c == 0 && g == 0 && i == 0){
      |       ^
Language: Java

class A{
	static void solve(){
    	final Scanner N = new Scanner(System.in);
      	final int s = N.next();
      	final int d = (N+1)/2;
      	return d;
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
    	final Scanner N = new Scanner(System.in);
    	      ^
  symbol:   class Scanner
  location: class A
Main.java:3: error: cannot find symbol
    	final Scanner N = new Scanner(System.in);
    	                      ^
  symbol:   class Scanner
  location: class A
Main.java:6: error: incompatible types: unexpected return value
      	return d;
      	       ^
3 errors
Language: C

#include <stdio.h>

int main(void) {
  int N,Ans;
  scanf(%d, &N);
  if (N%2=0) {
    Ans = N/2;
  }
  else {
    Ans = (N+1)/2;
  }
  printf("%d", Ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected expression before '%' token
    5 |   scanf(%d, &N);
      |         ^
main.c:6:10: error: lvalue required as left operand of assignment
    6 |   if (N%2=0) {
      |          ^
Language: C++

#include<stdio.h>
using namespace std;
int main()
{int n;
 cin>>n;
 if(n%2==0)
 {n=n/2;
  cout<<n;
 }
 else 
   cout<<n/2+1;
 return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope
    5 |  cin>>n;
      |  ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<n;
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:4: error: 'cout' was not declared in this scope
   11 |    cout<<n/2+1;
      |    ^~~~
a.cc:11:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:11: error: expected '}' at end of input
   12 |  return 0;
      |           ^
a.cc:4:1: note: to match this '{'
    4 | {int n;
      | ^
Language: C

int main(void) {
  int N,Ans;
  scanf(%d, &N);
  if (N%2=0) {
    Ans = N/2;
  }
  else {
    Ans = (N+1)/2;
  }
  printf("%d", Ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf(%d, &N);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void) {
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf(%d, &N);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:9: error: expected expression before '%' token
    3 |   scanf(%d, &N);
      |         ^
main.c:4:10: error: lvalue required as left operand of assignment
    4 |   if (N%2=0) {
      |          ^
main.c:10:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |   printf("%d", Ans);
      |   ^~~~~~
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'