criyle/codenet-compile-errors huggingface dataset:
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 IN4(a,b,c,d) cin >> a >> b >> c >> d
#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;} //最小公倍数

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

signed main() {
  RAPID;
  IN(a,b);
  OUT(ceil((a+b)/2));
}

Compiler output:
a.cc:58:9: error: macro "IN" passed 2 arguments, but takes just 1
   58 |   IN(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(a,b);
      |   ^~
Language: C++

#include <bits/stdc++.h>

void main() {
  int a, b;
  
  std::cin >> a >> b;
  
  int ave = (a+b)/2;
  
  std::cout << ave+1;
}

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

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

int a, b;

cin >> a >> b;

int ave = (a+b)/2;

cout << ave+1;

Compiler output:
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> a >> b;
      | ^~~
a.cc:10:1: error: 'cout' does not name a type
   10 | cout << ave+1;
      | ^~~~
Language: C++

#include <bits/stdc++.h>

int a, b;

std::cin >> a >> b;

int ave = (a+b)/2;

std::cout << ave+1;

Compiler output:
a.cc:5:6: error: 'cin' in namespace 'std' does not name a type
    5 | std::cin >> a >> b;
      |      ^~~
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:6: error: 'cout' in namespace 'std' does not name a type
    9 | std::cout << ave+1;
      |      ^~~~
/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 a, b;
  cin >> a >> b
  cout << (a + b + 1) / 2 << endl; // 9
}


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

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    Double a = sc.nextDouble();
    Double b = sc.nextDouble();
    System.out.println((int)Math.ceiling((a+b)/2));
    
  }
  

  
}

Compiler output:
Main.java:7: error: cannot find symbol
    System.out.println((int)Math.ceiling((a+b)/2));
                                ^
  symbol:   method ceiling(double)
  location: class Math
1 error
Language: C++

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

int main() {
    double a;
    double b;
    double c = a + b;
    cin >> a;
    cin >> b;
    cout << c / 2 + c % 2.0 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   10 |     cout << c / 2 + c % 2.0 << endl;
      |                     ~ ^ ~~~
      |                     |   |
      |                     |   double
      |                     double
Language: Java

import java.util.*;
public class Main1 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		double x = (a+b)/2.;
		
		if((x-(int)x)>=0.5){
			x++;
		}
		System.out.println((int)x);
	}
}


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

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

int main() {
  int a, b;
  cin >> a >> b;
  cout << (a+b)/2 (a+b)%2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expression cannot be used as a function
    7 |   cout << (a+b)/2 (a+b)%2 << endl;
      |                 ~~^~~~~
Language: C++

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

int main() {

	int a,b;
	cin>>a>>b;
	if(a+b%2==1){cout<<((a+b)/2)+1<<endl;
	else{cout<<(a+b)/2<<endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected '}' before 'else'
    9 |         else{cout<<(a+b)/2<<endl;}
      |         ^~~~
a.cc:8:21: note: to match this '{'
    8 |         if(a+b%2==1){cout<<((a+b)/2)+1<<endl;
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;
  int b;
 
  cin >> a;
  cin >> b;
 
  cout << (a + b + 1) / 2 +  << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected primary-expression before '<<' token
   11 |   cout << (a + b + 1) / 2 +  << endl;
      |                              ^~
Language: C++

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

int main(){
  int a, b;
  cin >> a >> b;
  
  cout << (a + b + 1) / 2
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ';' before '}' token
    8 |   cout << (a + b + 1) / 2
      |                          ^
      |                          ;
    9 | }
      | ~
Language: C++

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

int main(){
  	int a,b;
  cin>>a>>b;
  double t=(a+b)%2;
  if(t) cout<<(a+b)/2+1<<endl;
  else cout<<(a+b)/2<<endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclue<bits/stdc++.h>
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |   if(t) cout<<(a+b)/2+1<<endl;
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:26: error: 'endl' was not declared in this scope
    8 |   if(t) cout<<(a+b)/2+1<<endl;
      |                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclue<bits/stdc++.h>
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout<<(a+b)/2<<endl;
      |        ^~~~
a.cc:9:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:23: error: 'endl' was not declared in this scope
    9 |   else cout<<(a+b)/2<<endl;
      |                       ^~~~
a.cc:9:23: 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;
 
int main() {
  int a, b, c, d;
  cin >> a >> b;
  c=a+b+1
  d=c/2
  cout << d << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected ';' before 'd'
    7 |   c=a+b+1
      |          ^
      |          ;
    8 |   d=c/2
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before ';' token
    5 |   int a, b, ;
      |             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: expected unqualified-id before ';' token
    5 |   int a, b, c, ;
      |                ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'cout'
    7 |   c = a + b + 1
      |                ^
      |                ;
    8 |   cout << c/2 << endl;
      |   ~~~~
Language: C++

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

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

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

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

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

int main() {
int a, b, c;
  cin >> a >> b;
  c = (a + b) / 2 + 0.5;
  cout << c << endl;

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

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

const int MOD = 1000000007;
const long long INF = 1LL << 60;

int main()
{
    int a, b;
    cin >> a >> b;
    mean = (a + b + 1) / 2;

    cout << mean << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'mean' was not declared in this scope
   12 |     mean = (a + b + 1) / 2;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;
  int b;
  double x;
  int y;
  cin >> a >> b;
  x = (a + b) / 2;
  y = x;
  if (x - y = 0){
    cout << x <<endl;
  	}else{
    cout << y + 1 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: lvalue required as left operand of assignment
   12 |   if (x - y = 0){
      |       ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;
  int b;
  double x;
  int y;
  x = (a + b) / 2;
  y = x
  cin >> a >> b;
  if (x - y == 0){
    cout << x <<endl;
  	}else{
    cout << y + 1 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected ';' before 'cin'
   10 |   y = x
      |        ^
      |        ;
   11 |   cin >> a >> b;
      |   ~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before 'cin'
    8 |   x = (a + b) / 2
      |                  ^
      |                  ;
    9 |   cin >> a >> b;
      |   ~~~
Language: Java

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int a = sc.nextInt();
   int b = sc.nextInt();
 
 
   if((a+b)%2==1) System.out.println((a+b)/2 +1);
   else System.out.println((atb)/2);
 }
}

Compiler output:
Main.java:11: error: cannot find symbol
   else System.out.println((atb)/2);
                            ^
  symbol:   variable atb
  location: class Main
1 error
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected identifier before 'return'
    8 |         return 0;
      |         ^~~~~~
a.cc:8:17: error: expected ']' before ';' token
    8 |         return 0;
      |                 ^
      |                 ]
a.cc: In lambda function:
a.cc:8:17: error: expected '{' before ';' token
Language: C++

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

int main() [
	int a, b;
	cin >> a >> b;
	cout << (a + b + 1) / 2 << endl;
}
	
	


Compiler output:
a.cc:5:9: error: expected primary-expression before 'int'
    5 |         int a, b;
      |         ^~~
a.cc:4:13: error: expected ']' before 'int'
    4 | int main() [
      |             ^
      |             ]
    5 |         int a, b;
      |         ~~~  
a.cc:6:9: error: 'cin' does not name a type
    6 |         cin >> a >> b;
      |         ^~~
a.cc:7:9: error: 'cout' does not name a type
    7 |         cout << (a + b + 1) / 2 << endl;
      |         ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

int main() {
  int a, b;
  double c;
  
  cin >> a >> b;
  
  c = (a + b) / 2;
  
  cout << c + c % 10 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   12 |   cout << c + c % 10 << endl;
      |               ~ ^ ~~
      |               |   |
      |               |   int
      |               double
Language: C++

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

int main() {
  int a, b;
  double c,
  
  cin >> a >> b;
  
  c = (a + b) / 2;
  
  cout << c + c % 10 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: expected initializer before '>>' token
    8 |   cin >> a >> b;
      |       ^~
a.cc:12:17: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   12 |   cout << c + c % 10 << endl;
      |               ~ ^ ~~
      |               |   |
      |               |   int
      |               double
Language: C++

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

int main() {
  int a, b;
  cin >> a, >> b;
  cout << (a + b) / 2.0 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected primary-expression before '>>' token
    6 |   cin >> a, >> b;
      |             ^~
Language: C++

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

int main() {
  int a, b;
  cin >> a, >> b;
  cout << (a + b) / 2.0 << endl;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a, >> b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlude <bits/stdc++.h>
a.cc:6:13: error: expected primary-expression before '>>' token
    6 |   cin >> a, >> b;
      |             ^~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << (a + b) / 2.0 << endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:28: error: 'endl' was not declared in this scope
    7 |   cout << (a + b) / 2.0 << endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlude <bits/stdc++.h>
Language: C++

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

int main() {
  int A, B;
  cin >> A >> B;
  int C = (A + B) / 2
  cout << C << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  cin >> double a, double b;
  cout << ceil(a*b) <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected primary-expression before 'double'
    6 |   cin >> double a, double b;
      |          ^~~~~~
a.cc:7:16: error: 'a' was not declared in this scope
    7 |   cout << ceil(a*b) <<endl;
      |                ^
a.cc:7:18: error: 'b' was not declared in this scope
    7 |   cout << ceil(a*b) <<endl;
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  cin >> int a, int b;
  cout << ceil(a*b) <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   cin >> int a, int b;
      |          ^~~
a.cc:6:16: error: 'a' was not declared in this scope
    6 |   cout << ceil(a*b) <<endl;
      |                ^
a.cc:6:18: error: 'b' was not declared in this scope
    6 |   cout << ceil(a*b) <<endl;
      |                  ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected primary-expression before '<<' token
    8 |    cout << (a + b + 1)/2; << endl;
      |                           ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b;
  cin >> a >> b;
  double x;
  x=(a+b)*2;
  x- int x;
  cout << x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected primary-expression before 'int'
    9 |   x- int x;
      |      ^~~
Language: C++

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

int main() {
  int a, b, c;
  float ave;
  cin >> a >> b;
  ave = (a + b) / 2;
  if((ave - (a+b/2) > 0) ave + 1;
  c = (int) ave;
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected ';' before 'ave'
    9 |   if((ave - (a+b/2) > 0) ave + 1;
      |                         ^~~~
      |                         ;
a.cc:10:16: error: expected ')' before ';' token
   10 |   c = (int) ave;
      |                ^
      |                )
a.cc:9:5: note: to match this '('
    9 |   if((ave - (a+b/2) > 0) ave + 1;
      |     ^
Language: C++

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

int main() {
  int a, b, c;
  float ave;
  cin >> a >> b;
  ave = (a + b) / 2;
  if((ave)%1.0f > 0) ave + 1;
  c = (int) ave;
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: invalid operands of types 'float' and 'float' to binary 'operator%'
    9 |   if((ave)%1.0f > 0) ave + 1;
      |      ~~~~~^~~~~
      |       |    |
      |       |    float
      |       float
Language: C++

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

int main() {
  int a, b, c;
  float ave;
  cin >> a >> b;
  ave = (a + b) / 2;
  if((ave)%1 > 0) ave + 1;
  c = (int) ave;
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: invalid operands of types 'float' and 'int' to binary 'operator%'
    9 |   if((ave)%1 > 0) ave + 1;
      |      ~~~~~^~
      |       |    |
      |       |    int
      |       float
Language: C++

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

int main() {
  int a, b, c;
  float ave
  cin >> a >> b;
  ave = (a + b) / 2;
  if((ave)%1 > 0) ave + 1;
  c = (int) ave;
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> a >> b;
      |   ^~~
a.cc:8:3: error: 'ave' was not declared in this scope
    8 |   ave = (a + b) / 2;
      |   ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected primary-expression before '>>' token
    6 |   cin >> a, >> b;
      |             ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a  b;
 
  cin >> a >> b;
  cout << (a+b)/2+(a+b)%2 << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b;
  float = x;
  cin >> a >> b;
  x = (a + b)/2;
  
  cout << ceil(x) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected unqualified-id before '=' token
    6 |   float = x;
      |         ^
a.cc:8:3: error: 'x' was not declared in this scope
    8 |   x = (a + b)/2;
      |   ^
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b;
  int c = (a+b)/2+0.5;
  cout << c << endl;


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

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

int main() {
  int answer = 0;
  double a,b;
  cin >> a >> b;	
  answer = (a + b) / 2 + 0.5
  cout << answer << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before 'cout'
    8 |   answer = (a + b) / 2 + 0.5
      |                             ^
      |                             ;
    9 |   cout << answer << endl;
      |   ~~~~
Language: C++

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

int main() {
  int answer = 0;
  int a,b;
  cin >> a >> b;	
  answer = (a + b) / 2 + 0.5
  cout << answer << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before 'cout'
    8 |   answer = (a + b) / 2 + 0.5
      |                             ^
      |                             ;
    9 |   cout << answer << endl;
      |   ~~~~
Language: C++

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

int main() {
  double a, b, c;
  cin >> a >> b;
  c = a + b;
  cout << c / 2 + c % 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 |   cout << c / 2 + c % 2 << endl;
      |                   ~ ^ ~
      |                   |   |
      |                   |   int
      |                   double
Language: C++

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

int main()
{
  int a=0,b=0;
  
  cin >> a >> b;

  cout << ((a * 10)+(b * 10))/20 << endl;
}


Compiler output:
a.cc:2:1: error: 'usnign' does not name a type; did you mean 'union'?
    2 | usnign namespace std;
      | ^~~~~~
      | union
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << ((a * 10)+(b * 10))/20 << 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:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << ((a * 10)+(b * 10))/20 << 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>
using namespace std;

int main() {
  int a. b;
  cin >> a;
  cin >> b;
  
  cout << (a + b) / 2 + (a + b) % 2 <<endl;
}

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

#include<stdio.h>
    int main(){
        double a, b;
        double c, d;
            scanf("%lf%lf", &a, &b);
                c = (a + b)/ 2;
                d = (a + b)% 2;
                    if(d = 0){
                        printf("%lf", c);
                    }else{
                        printf("%lf", c + 0.5);
                    }
    return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:7:28: error: invalid operands to binary % (have 'double' and 'int')
    7 |                 d = (a + b)% 2;
      |                     ~~~~~~~^
      |                        |
      |                        double
Language: C++

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

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

Compiler output:
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

int main() {
  int a, b, x;
  cin >> a >> b;
  x = a * b
  cout << 2 * x << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'cout'
    7 |   x = a * b
      |            ^
      |            ;
    8 |   cout << 2 * x << endl;
      |   ~~~~
Language: C++

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

int main() {
  int a;
  int b;
  cin >> a >> b;
  float c = (a + b) / 2;
  if (c%2.0 == 0){
    cout << c;
  }else{
    cout << c + 0.5;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: invalid operands of types 'float' and 'double' to binary 'operator%'
    9 |   if (c%2.0 == 0){
      |       ~^~~~
      |       | |
      |       | double
      |       float
Language: C++

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

int main() {
  int a;
  int b;
  cin >> a >> b;
  float c = (a + b) / 2;
  if (c%2 == 0){
    cout << c;
  }else{
    cout << c + 0.5;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: invalid operands of types 'float' and 'int' to binary 'operator%'
    9 |   if (c%2 == 0){
      |       ~^~
      |       | |
      |       | int
      |       float
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  double a, b;
  cin >> a >> b;
  double x = (a + b) / 2  
  cout << ceil(x) << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  double a, b;
  cin >> a >> b;
  x = (a + b) / 2  
  cout << ceil(x) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'x' was not declared in this scope
    7 |   x = (a + b) / 2
      |   ^
Language: C++

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

int main() {
  int a, b = 0;

  cin >> a;
  cin >> b;
  int c = 0;
  c = (a + b) / 2

  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before 'cout'
   10 |   c = (a + b) / 2
      |                  ^
      |                  ;
   11 | 
   12 |   cout << c << endl;
      |   ~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  	double a,b;
 	cin>>a>>b;
  	if((a+b)%2.0=0)cout<<(a+b)/2.0<<endl;
  	else cout<<(a+b)/2+1<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    6 |         if((a+b)%2.0=0)cout<<(a+b)/2.0<<endl;
      |            ~~~~~^~~~
      |              |   |
      |              |   double
      |              double
Language: C++

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

int main(){
  int a,b;
  cin >> a,b;
  if(a*b%2==1){
    cout << (a*b+1)/2 << endl;
  }
  else{
    cout << a*b/2 << endl;
  }
      


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

include <bits/stdc++.h>
#define rep(i,m,n) for(int i=m; i<n; i++)
#define co(n) cout << n << endl
using namespace std;
int main(){
  int a, b;
  cin >> a >> b;
  if(2*(a+b)%2==1) co((a+b)/2+1);
  else co((a+b)/2);
  
  return 0;
}


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:3: error: 'cin' was not declared in this scope
    7 |   cin >> a >> b;
      |   ^~~
a.cc:3:15: error: 'cout' was not declared in this scope; did you mean 'co'?
    3 | #define co(n) cout << n << endl
      |               ^~~~
a.cc:8:20: note: in expansion of macro 'co'
    8 |   if(2*(a+b)%2==1) co((a+b)/2+1);
      |                    ^~
a.cc:3:28: error: 'endl' was not declared in this scope
    3 | #define co(n) cout << n << endl
      |                            ^~~~
a.cc:8:20: note: in expansion of macro 'co'
    8 |   if(2*(a+b)%2==1) co((a+b)/2+1);
      |                    ^~
a.cc:3:15: error: 'cout' was not declared in this scope; did you mean 'co'?
    3 | #define co(n) cout << n << endl
      |               ^~~~
a.cc:9:8: note: in expansion of macro 'co'
    9 |   else co((a+b)/2);
      |        ^~
a.cc:3:28: error: 'endl' was not declared in this scope
    3 | #define co(n) cout << n << endl
      |                            ^~~~
a.cc:9:8: note: in expansion of macro 'co'
    9 |   else co((a+b)/2);
      |        ^~
Language: C++

sha-puinclude <bits/stdc++.h>
#define rep(i,m,n) for(int i=m; i<n; i++)
#define co(n) cout << n << endl
using namespace std;
int main(){
  int a, b;
  cin >> a >> b;
  if(2*(a+b)%2==1) co((a+b)/2+1);
  else co((a+b)/2);
  return 0;
}


Compiler output:
a.cc:1:1: error: 'sha' does not name a type
    1 | sha-puinclude <bits/stdc++.h>
      | ^~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a >> b;
      |   ^~~
a.cc:3:15: error: 'cout' was not declared in this scope; did you mean 'co'?
    3 | #define co(n) cout << n << endl
      |               ^~~~
a.cc:8:20: note: in expansion of macro 'co'
    8 |   if(2*(a+b)%2==1) co((a+b)/2+1);
      |                    ^~
a.cc:3:28: error: 'endl' was not declared in this scope
    3 | #define co(n) cout << n << endl
      |                            ^~~~
a.cc:8:20: note: in expansion of macro 'co'
    8 |   if(2*(a+b)%2==1) co((a+b)/2+1);
      |                    ^~
a.cc:3:15: error: 'cout' was not declared in this scope; did you mean 'co'?
    3 | #define co(n) cout << n << endl
      |               ^~~~
a.cc:9:8: note: in expansion of macro 'co'
    9 |   else co((a+b)/2);
      |        ^~
a.cc:3:28: error: 'endl' was not declared in this scope
    3 | #define co(n) cout << n << endl
      |                            ^~~~
a.cc:9:8: note: in expansion of macro 'co'
    9 |   else co((a+b)/2);
      |        ^~
Language: C++

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

int main() {
  int a;
  int b;
  int A = (a+b)/2;
  if (A%2==0){
    cout << A;
  }else{
    cout << A+1:
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before ':' token
   11 |     cout << A+1:
      |                ^
      |                ;
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  
  cout << ((a + b) + (a + b) % 2)) / 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: expected ';' before ')' token
    8 |   cout << ((a + b) + (a + b) % 2)) / 2 << endl;
      |                                  ^
      |                                  ;
Language: C++

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

  }


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

int main(){

  int a, b;

  //入力値の代入
  cin >> a >> b;
  //切り上げ平均の計算と出力
  cout << (a+b+1)/2;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'x' was not declared in this scope
    7 |   cout << x = (a + b + 1) / 2 << endl;
      |           ^
a.cc:7:31: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << x = (a + b + 1) / 2 << endl;
      |               ~~~~~~~~~~~~~~~~^~~~~~~
Language: C++

#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, a, b) for (int i = a; i < b; i++)
using namespace std;

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <tuple>
#include <map>
#include <unordered_map>
#include <queue>
#include <set>
#include <stack>
#include <bitset>

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

	double x = (double)(a + b) / 2;
	double ans = ceil(x);

	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:22: error: 'ceil' was not declared in this scope
   24 |         double ans = ceil(x);
      |                      ^~~~
Language: C++

#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, a, b) for (int i = a; i < b; i++)
using namespace std;

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <tuple>
#include <map>
#include <unordered_map>
#include <queue>
#include <set>
#include <stack>
#include <bitset>

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

	double c = a + b;

	double x = c / 2;
	cout << ceil(x) << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b;
  cin >> a >> b ;
  cout << ( a + b + 1 ) / 2　; << endl;
}

Compiler output:
a.cc:7:27: error: extended character 　 is not valid in an identifier
    7 |   cout << ( a + b + 1 ) / 2　; << endl;
      |                           ^
a.cc: In function 'int main()':
a.cc:7:27: error: unable to find numeric literal operator 'operator""\U00003000'
    7 |   cout << ( a + b + 1 ) / 2　; << endl;
      |                           ^~~
a.cc:7:32: error: expected primary-expression before '<<' token
    7 |   cout << ( a + b + 1 ) / 2　; << endl;
      |                                ^~
Language: C++

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

Compiler output:
a.cc:7:27: error: extended character 　 is not valid in an identifier
    7 |   cout << ( a + b + 1 ) / 2　;
      |                           ^
a.cc: In function 'int main()':
a.cc:7:27: error: unable to find numeric literal operator 'operator""\U00003000'
    7 |   cout << ( a + b + 1 ) / 2　;
      |                           ^~~
Language: Java

import java.util.Scanner;

public static Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a, b, c, d;
    a = sc.nextInt();
    b = sc.nextInt();
    c = (a+b)/2;
    d = (a+b)%2;
    
    if(d == 0){
      System.out.println(c);
    }else{
      System.out.println(c + 0.5);
    }
    
  }
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public static Main{
              ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
  public static void main(String[] args){
                ^
  (use --enable-preview to enable unnamed classes)
Main.java:19: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

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

int main(){
  int a,b;
  double c;
  
  cin >>a>>b;
  c = (a+b)/2+0.5;
  (int)a=c;
  cout <<a;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: lvalue required as left operand of assignment
   10 |   (int)a=c;
      |   ^~~~~~
Language: C++

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

int main(){
  int a,b;
  double c = (a+b)/2+0.99
  
  cin >>a>>b;
  a=c
  cout <<a<<"\n";
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'cin'
    9 |   cin >>a>>b;
      |   ^~~
a.cc:10:6: error: expected ';' before 'cout'
   10 |   a=c
      |      ^
      |      ;
   11 |   cout <<a<<"\n";
      |   ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b;
	cin>>a>>b;
	if(1.0*(a+b)%2==0) cout<<(a+b)/2;
	else cout<<ceil((a+b)/2);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    7 |         if(1.0*(a+b)%2==0) cout<<(a+b)/2;
      |            ~~~~~~~~~^~
      |               |      |
      |               double int
Language: C++

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

int main() {
  int a, b, x;
  cin a >> b >> endl;
  x = a + b / 2;
  cout << x << endl;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected primary-expression before '%' token
    7 |   if (a + b) % 2 == 0;
      |              ^
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else;
      |   ^~~~
a.cc:10:22: error: expected ';' before ')' token
   10 |   cout << (a + b) / 2) + 1 << endl;
      |                      ^
      |                      ;
a.cc:11:11: error: expected ';' before '}' token
   11 |   return 0
      |           ^
      |           ;
   12 | }
      | ~
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  cout << （a+b+1）/2 <<　endl;
}


Compiler output:
a.cc:7:25: error: extended character 　 is not valid in an identifier
    7 |   cout << （a+b+1）/2 <<　endl;
      |                         ^
a.cc: In function 'int main()':
a.cc:7:11: error: '\U0000ff08a' was not declared in this scope
    7 |   cout << （a+b+1）/2 <<　endl;
      |           ^~~
a.cc:7:17: error: unable to find numeric literal operator 'operator""\U0000ff09'
    7 |   cout << （a+b+1）/2 <<　endl;
      |                 ^~~
a.cc:7:25: error: '\U00003000endl' was not declared in this scope
    7 |   cout << （a+b+1）/2 <<　endl;
      |                         ^~~~~~
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b >>;
  
  cout << （a+b+1）/2 <<　endl;
}


Compiler output:
a.cc:8:25: error: extended character 　 is not valid in an identifier
    8 |   cout << （a+b+1）/2 <<　endl;
      |                         ^
a.cc: In function 'int main()':
a.cc:6:19: error: expected primary-expression before ';' token
    6 |   cin >> a >> b >>;
      |                   ^
a.cc:8:11: error: '\U0000ff08a' was not declared in this scope
    8 |   cout << （a+b+1）/2 <<　endl;
      |           ^~~
a.cc:8:17: error: unable to find numeric literal operator 'operator""\U0000ff09'
    8 |   cout << （a+b+1）/2 <<　endl;
      |                 ^~~
a.cc:8:25: error: '\U00003000endl' was not declared in this scope
    8 |   cout << （a+b+1）/2 <<　endl;
      |                         ^~~~~~
Language: C++

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

int main() {
  double a, b;
  cin >> a >> b;
  cout << double(a+b)/2 + double 1/2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected primary-expression before 'double'
    7 |   cout << double(a+b)/2 + double 1/2 << endl;
      |                           ^~~~~~
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  cout << double(a+b)/2 + double 1/2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected primary-expression before 'double'
    7 |   cout << double(a+b)/2 + double 1/2 << endl;
      |                           ^~~~~~
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  cout << (double(a+b)/2 + double 1/2) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected primary-expression before 'double'
    7 |   cout << (double(a+b)/2 + double 1/2) << endl;
      |                            ^~~~~~
a.cc:7:27: error: expected ')' before 'double'
    7 |   cout << (double(a+b)/2 + double 1/2) << endl;
      |           ~               ^~~~~~~
      |                           )
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  cout << int(double(a+b)/2 + double 1/2) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'int'
    7 |   cout << int(double(a+b)/2 + double 1/2) << endl;
      |           ^~~
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  cout << int (double(a+b)/2 + double 1/2) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'int'
    7 |   cout << int (double(a+b)/2 + double 1/2) << endl;
      |           ^~~
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  cout << （a+b）/2+1/2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: '\U0000ff08a' was not declared in this scope
    7 |   cout << （a+b）/2+1/2 << endl;
      |           ^~~
a.cc:7:15: error: 'b\U0000ff09' was not declared in this scope
    7 |   cout << （a+b）/2+1/2 << endl;
      |               ^~~
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  cout << （a+b）/2+ 1/2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: '\U0000ff08a' was not declared in this scope
    7 |   cout << （a+b）/2+ 1/2 << endl;
      |           ^~~
a.cc:7:15: error: 'b\U0000ff09' was not declared in this scope
    7 |   cout << （a+b）/2+ 1/2 << endl;
      |               ^~~
Language: C++

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

int main(){
  double input1, input2;
  cin >> input1;
  cin >> input2;
  cout << (int)((input1 + input2)/2 + 0.99) << 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<stdc++/bits>
using namespace std;

int main(){
  double input1, input2;
  cin >> input1;
  cin >> input2;
  cout << (int)((input1 + input2)/2 + 0.99) << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int a,b;
  	cin >> a >> b;
  	cout << ((a+b)/2)(double)+0.5) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected primary-expression before 'double'
    7 |         cout << ((a+b)/2)(double)+0.5) << endl;
      |                           ^~~~~~
a.cc:7:33: error: expression cannot be used as a function
    7 |         cout << ((a+b)/2)(double)+0.5) << endl;
      |                                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define NL            "\n"
#define _SAD()        ios::sync_with_stdio(0),cin.tie(0), cout.tie(0);
#define SZ(s)         s.size()
#define SRT(x,y)      sort(x,x+y)
#define REV(a,b)      reverse(a,a+b)
#define VSRT(x)       sort(x.begin(),x.end())
#define VREV(x)       reverse(x.begin(),x.end())
int main()
{
    _SAD()
    int a,b,d;
    cin>>a>>b;
    double c=((a+b)/2.0)+.5;
    d=c
    cout<<c<<NL;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: expected ';' before 'cout'
   16 |     d=c
      |        ^
      |        ;
   17 |     cout<<c<<NL;
      |     ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  double a, b;
  cin >> a >> b;
  double c, d;
  c = (a+b) /2;
  d = ( a + b + 1) /2;
  
  if(c %2 == 0){
    cout << c << endl;
  }
  else{
    cout << d << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   10 |   if(c %2 == 0){
      |      ~ ^~
      |      |  |
      |      |  int
      |      double
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b;
  cin a >> b;
  cout << (a+b)/2 + (a+b)%2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'a'
    6 |   cin a >> b;
      |      ^~
      |      ;