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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:32: error: 'inta' was not declared in this scope; did you mean 'int'?
    2 | using namespace std;int main(){inta,b;cin>>a>>b;cout<<(a + b)/2+(a + b)%2<<endl;}
      |                                ^~~~
      |                                int
a.cc:2:37: error: 'b' was not declared in this scope
    2 | using namespace std;int main(){inta,b;cin>>a>>b;cout<<(a + b)/2+(a + b)%2<<endl;}
      |                                     ^
a.cc:2:44: error: 'a' was not declared in this scope
    2 | using namespace std;int main(){inta,b;cin>>a>>b;cout<<(a + b)/2+(a + b)%2<<endl;}
      |                                            ^
Language: C++

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

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

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

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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  // 変数の宣言
  double a, b;
  int c;
  
  //値の取得
  cin >> a>>b;
  
  //型変換
  c=(a+b+1)/2-1
  //出力
  cout << c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected ';' before 'cout'
   13 |   c=(a+b+1)/2-1
      |                ^
      |                ;
   14 |   //出力
   15 |   cout << c;
      |   ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int change(double b){
	return (b>0)?1:0;
}
int main(void){
	int a,b;
	cin>>a>>b;
	double ave=(a+b)/2;
	double b=ave-(int)ave;
	int ave2=ave+change(b);
	cout<<ave2<<endl;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: conflicting declaration 'double b'
   10 |         double b=ave-(int)ave;
      |                ^
a.cc:7:15: note: previous declaration as 'int b'
    7 |         int a,b;
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int change(double b){
	return (b>0)?1:0;
}
int main(void){
	int a,b;
	cin>>a>>b;
	double ave=(a+b)/2;
	doble b=ave-(int)ave;
	int ave2=ave+change(b) 
	cout<<ave2<<endl;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'doble' was not declared in this scope; did you mean 'double'?
   10 |         doble b=ave-(int)ave;
      |         ^~~~~
      |         double
a.cc:12:9: error: expected ',' or ';' before 'cout'
   12 |         cout<<ave2<<endl;
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int change(double b){
	return ((b>0)?1:0;)
}
int main(void){
	int a,b;
	cin>>a>>b
	double ave=(a+b)/2;
	doble b=ave-(int)ave;
	int ave2=ave+change(b) 
	cout<<ave2<<endl;
	
}

Compiler output:
a.cc: In function 'int change(double)':
a.cc:4:26: error: expected ')' before ';' token
    4 |         return ((b>0)?1:0;)
      |                ~         ^
      |                          )
a.cc:4:27: error: expected primary-expression before ')' token
    4 |         return ((b>0)?1:0;)
      |                           ^
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before 'double'
    8 |         cin>>a>>b
      |                  ^
      |                  ;
    9 |         double ave=(a+b)/2;
      |         ~~~~~~    
a.cc:10:9: error: 'doble' was not declared in this scope; did you mean 'double'?
   10 |         doble b=ave-(int)ave;
      |         ^~~~~
      |         double
a.cc:11:18: error: 'ave' was not declared in this scope; did you mean 'ave2'?
   11 |         int ave2=ave+change(b)
      |                  ^~~
      |                  ave2
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>>'
    7 |   cin >> a, b >> endl;
      |             ~~^~~~~~~
Language: C++

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

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

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 |   cin >> a, b, c >> endl;
      |                ~~^~~~~~~
Language: C++

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

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

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

import java.util.Scanner;
 
public class Man {
 
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a =sc.nextInt();
		int b=sc.nextInt();
		int x = (a+b)/2+ (a+b)%2;
		System.out.print(x);
	}
 
}

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

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: unable to find numeric literal operator 'operator""x'
   11 |   if(a+b==2x){
      |           ^~
a.cc:15:3: error: 'eles' was not declared in this scope
   15 |   eles{
      |   ^~~~
Language: C++

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

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

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

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

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

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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'int'
    8 |   int x = a*b % 2
      |   ^~~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else {
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: unable to find numeric literal operator 'operator""\U0000ff0b1'
    7 |   cout<<(a+b)/2＋1<< endl;
      |               ^~~~
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:6:18: error: expected primary-expression before ';' token
    6 |   cin>> a >> b>> ;
      |                  ^
Language: C++

#include<iostream>
using namespace std;
/* 2  つの正整数 a, b が与えられます。 a, bの平均値を xとします。 xの小数点以下を切り上げて得られる整数を出力してください。
*/
int main(){
  double a, b;
  cin >>a >> b;
  double x = (a+b)/2;
  int y = (a+b)/2;
  int z = 2*x;
  if(y == z){
    cout<<y<<endl;
  }else{
    cout<<y + 1<<endl;
  }
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
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:9:27: error: expected primary-expression before '<<' token
    9 |   cout<<(a + b + 1) / 2 + <<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:10:27: error: expected primary-expression before '<<' token
   10 |   cout<<(a + b + 1) / 2 + <<endl;
      |                           ^~
Language: C++

#include <iostream>
using namespace std ;

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

  cout << ( a + b + 1 ) / 2 << endl ;
}

Compiler output:
a.cc:6:3: error: extended character 　 is not valid in an identifier
    6 |   cin　>> a >> b ;
      |   ^
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin\U00003000' was not declared in this scope
    6 |   cin　>> a >> b ;
      |   ^~~~~
Language: C++

#include <iostream>
using namespace std;

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

  cout << ( a + b + 1 ) / 2 << endl;
}

Compiler output:
a.cc:6:3: error: extended character 　 is not valid in an identifier
    6 |   cin　<< a << b ;
      |   ^
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin\U00003000' was not declared in this scope
    6 |   cin　<< a << b ;
      |   ^~~~~
Language: C++

#include <iostream>
using namespace std;

int a, b ;
cin　>> a >> b ;

cout << ( a + b + 1 ) / 2 << endl;

Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | cin　>> a >> b ;
      | ^
a.cc:5:1: error: 'cin\U00003000' does not name a type
    5 | cin　>> a >> b ;
      | ^~~~~
a.cc:7:1: error: 'cout' does not name a type
    7 | cout << ( a + b + 1 ) / 2 << endl;
      | ^~~~
Language: C++

#include <iostream>
using namespace std;

int a, b ;
cin　<< a << b ;

cout >> ( a + b + 1 ) / 2 >> endl;

Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | cin　<< a << b ;
      | ^
a.cc:5:1: error: 'cin\U00003000' does not name a type
    5 | cin　<< a << b ;
      | ^~~~~
a.cc:7:1: error: 'cout' does not name a type
    7 | cout >> ( a + b + 1 ) / 2 >> endl;
      | ^~~~
Language: C++

#include <iostream>
using namespace std;

int a, b ;
cin>> a >> b ;

cout << ( a + b + 1 ) / 2 << endl;

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin>> a >> b ;
      | ^~~
a.cc:7:1: error: 'cout' does not name a type
    7 | cout << ( a + b + 1 ) / 2 << endl;
      | ^~~~
Language: C++

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

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

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

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

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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:48: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |         cout<< x=(a+b)/2+10*(a+b)%2/10*(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 + 1)/2 << endl;
  }else{
    cout << (a + b)/2 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected primary-expression before '%' token
    7 |   if (a + b) % 2 == 1{
      |              ^
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:7:14: error: expected primary-expression before '%' token
    7 |   if (a + b) % 2 = 1{
      |              ^
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 + 1)/2 << endl;
  }else{
    cout << (a + b)/2 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected primary-expression before '%' token
    7 |   if (a + b)%2 = 0{
      |             ^
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 + 1)/2 << endl;
  }else{
    cout << (a + b)/2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected primary-expression before '%' token
    7 |   if (a + b)%2 = 0{
      |             ^
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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: In function 'int main()':
a.cc:8:24: 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=(a+b)/2;
  if((a+b)%2=0){
  cout<<x<<endl;
   }else{
  cout<<x+0.5<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: lvalue required as left operand of assignment
    8 |   if((a+b)%2=0){
      |      ~~~~~^~
Language: C++

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

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

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

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

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

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

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <numeric>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <array>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
using namespace std;
typedef long long unsigned int ll;

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int GCD(const int& a, const int& b){
   const int& _a = max(a,b);
   const int& _b = min(a,b);
   if(_a % _b == 0){
      return _b;
   }
   else{
      return GCD(_b, _a % _b);
   }
}

int LCM(const int& a, const int& b){
   const int& _a = max(a,b);
   const int& _b = min(a,b);
   return (_a*_b)/(GCD(_a, _b));
}

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


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

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

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

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

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


Compiler output:
a.cc:5:3: error: expected initializer before 'double'
    5 |   double a,b,d;
      |   ^~~~~~
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> a >> b;
      |   ^~~
a.cc:8:3: error: 'c' does not name a type
    8 |   c=(a+b)/2.0;
      |   ^
a.cc:9:3: error: 'd' does not name a type
    9 |   d=(a+b)/2.0;
      |   ^
a.cc:10:3: error: 'e' does not name a type
   10 |   e=1-c+d;
      |   ^
a.cc:11:3: error: 'cout' does not name a type
   11 |   cout <<c+e << endl;
      |   ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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

Compiler output:
a.cc:5:3: error: expected initializer before 'double'
    5 |   double a,b,d;
      |   ^~~~~~
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> a >> b;
      |   ^~~
a.cc:8:3: error: 'c' does not name a type
    8 |   c=(a+b)/2.0;
      |   ^
a.cc:9:3: error: 'd' does not name a type
    9 |   d=(a+b)/2.0;
      |   ^
a.cc:10:3: error: 'e' does not name a type
   10 |   e=1+c-d;
      |   ^
a.cc:11:3: error: 'cout' does not name a type
   11 |   cout <<c+e << endl;
      |   ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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

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

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

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

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

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

    #include <iostream>
     
    using namespace std;
     
    int main(){
      int a, b;
      cin >> a >> b;
      
      cout << (a+b)/2 + (a+b)/% << endl;
      return 0;
    }

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

#include<iostram>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  cout<<(a+b)/2+((a+b)%2>0);
}

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

#include <cstdio>  
using namespace std;  
int main() { 	
	int a,b,c,d,e; 	
	scanf("%d %d", &a, &b);
	if((a+b)%2=0){
		printf("%d", a+b);
	}
	else{
		printf("%d", a+b+1);
	}
	
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: lvalue required as left operand of assignment
    6 |         if((a+b)%2=0){
      |            ~~~~~^~
Language: C++

#include <cstdio>  
using namespace std;  
int main() { 	
	int a,b,c,d,e; 	
	scanf("%d %d", &a, &b);
	if((a+b)%=0){
		printf("%d", a+b);
	}
	else{
		printf("%d", a+b+1);
	}
	
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: warning: division by zero [-Wdiv-by-zero]
    6 |         if((a+b)%=0){
      |            ~~~~~^~~
a.cc:6:14: error: lvalue required as left operand of assignment
    6 |         if((a+b)%=0){
      |            ~~^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    7 |   c = a%2.0;
      |       ~^~~~
      |       | |
      |       | double
      |       double
a.cc:8:8: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    8 |   d = b%2.0;
      |       ~^~~~
      |       | |
      |       | double
      |       double
Language: C++

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

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

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

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

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

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

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

int main(){
 int a,c,d,e;
  cin>>a>>c;
    e=(a+c)/2
     if((a+c)%2==1){
    e++;
     }
 
    cout<<e<<endl;
    
     
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'if'
    7 |     e=(a+c)/2
      |              ^
      |              ;
    8 |      if((a+c)%2==1){
      |      ~~
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;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected primary-expression before '==' token
    7 |   if( ((a+b)/2)% == 0){
      |                  ^~
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;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected primary-expression before '==' token
    7 |   if(((a+b)/2)% == 0){
      |                 ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: conflicting declaration 'int c'
    8 |   int c;
      |       ^
a.cc:7:9: note: previous declaration as 'double c'
    7 |  double c = (a + b) / 2 + 1;
      |         ^
Language: C++

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

int main() {
  int x , y;
  cin >> x >> y;
 cout << (x + y)/2 << endl;

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

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

int main(){
  int a,b;
  cin >> a >> b;
  cout << (a+b-1)/2 + 1 << 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:7:3: error: 'cout' was not declared in this scope
    7 |   cout << (a+b-1)/2 + 1 << 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-1)/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>
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;
  } else {
    cout << (a+b)/2;
  }
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main () {
      | ~~~
Language: C++

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


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

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

    

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

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

int main() {
  int R, G, P;
  double A;
  cin >> R >> G;
  (R+G)/2 = A;
  A + 0.5 = P;
  cout << P << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: lvalue required as left operand of assignment
    8 |   (R+G)/2 = A;
      |   ~~~~~^~
a.cc:9:5: error: lvalue required as left operand of assignment
    9 |   A + 0.5 = P;
      |   ~~^~~~~
Language: C++

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

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

#include<iostream>
using namespace std;

int main(void){
  int a,b;
  cin>>a>>b;
  cout<<(((a+b)%2==0))?"(a+b)/2":"(a+b)/2+1")<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:45: error: expected ';' before ')' token
    7 |   cout<<(((a+b)%2==0))?"(a+b)/2":"(a+b)/2+1")<<endl;
      |                                             ^
      |                                             ;
Language: C++

#include<iostream>
using namespace std;

int main(void){
  int a,b;
  cin>>a>>b;
  cout<<(((a+b)%2==0))?"(a+b)/2":"(a+b)/2+1"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:45: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout<<(((a+b)%2==0))?"(a+b)/2":"(a+b)/2+1"<<endl;
      |                                  ~~~~~~~~~~~^~~~~~
Language: C

#include<stdio.h>
int main()
{
    int  a, b, x, z;
    float p;
    scanf("%d %d", &a, &b);
     z = (a + b) %2;
    if(z==0)
      x=(a+b)/2;
     printf("%d\n", x);
    else
    {
     p = 1+a+b;
     x = p/2;
     printf("%d\n", x);
    }
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:5: error: 'else' without a previous 'if'
   11 |     else
      |     ^~~~
Language: C

#include<stdio.h>
int main()
{
    int  a, b, x, z;
    float p;
    scanf("%d %d", &a, &b);
     z = (a + b) %2;
    if(z==0)
      x=(a+b)/2;
     printf("%d\n", x);
    else if(z!=0)
    {
     p = 1+a+b;
     x = p/2;
     printf("%d\n", x);
    }
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:5: error: 'else' without a previous 'if'
   11 |     else if(z!=0)
      |     ^~~~
Language: C

#include<stdio.h>
int main()
{
    int  a, b, x, y;
    float z;
    scanf("%d %d", &a, &b);
    y = ((a + b) % 2);
    x= ((a+b) / 2);
    z =( x + 0.5);
    if(y==0){
     printf("%d\n", x);
    }
    else if(y!=0){
     printf("%d\n", z;);
    }
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:22: error: expected ')' before ';' token
   14 |      printf("%d\n", z;);
      |            ~         ^
      |                      )
Language: C

#include<stdio.h>
int main()
{
    int  a, b, x;
    float z;
    scanf("%d %d", &a, &b);
    y = ((a + b) % 2);
    x= ((a+b) / 2);
    z =( x + 0.5);
    if(y==0){
     printf("%d\n", x);
    }
    else if(y!=0){
     printf("%d\n", z;);
    }
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'y' undeclared (first use in this function)
    7 |     y = ((a + b) % 2);
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:22: error: expected ')' before ';' token
   14 |      printf("%d\n", z;);
      |            ~         ^
      |                      )
Language: C

#include<stdio.h>
int main()
{
    int  a, b, x;
    float x, z;
    scanf("%d %d", &a, &b);
    y = ((a + b) % 2);
    x= ((a+b) / 2);
    z =( x + 0.5);
    if(y==0){
     printf("%d\n", x);
    }
    else if(y!=0){
     printf("%d\n", z);
    }
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:11: error: conflicting types for 'x'; have 'float'
    5 |     float x, z;
      |           ^
main.c:4:16: note: previous declaration of 'x' with type 'int'
    4 |     int  a, b, x;
      |                ^
main.c:7:5: error: 'y' undeclared (first use in this function)
    7 |     y = ((a + b) % 2);
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
    int  a, b, x;
    float x, z;
    scanf("%d %d", &a, &b);
    y = ((a + b) % 2);
    x= ((a+b) / 2);
    z =( x + 0.5);
    if(y==0){
     printf("%d\n", x);
    }
    else if(y!=0){
     printf("%d\n", z;);
    }
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:11: error: conflicting types for 'x'; have 'float'
    5 |     float x, z;
      |           ^
main.c:4:16: note: previous declaration of 'x' with type 'int'
    4 |     int  a, b, x;
      |                ^
main.c:7:5: error: 'y' undeclared (first use in this function)
    7 |     y = ((a + b) % 2);
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:22: error: expected ')' before ';' token
   14 |      printf("%d\n", z;);
      |            ~         ^
      |                      )
Language: C

#include<stdio.h>
int main()
{
    int  a, b, x, z;
float p;
    scanf("%d %d", &a, &b);
     z = (a + b) %2;
     p=(a+b)/2;
    if(z==0)
p=x
     printf("%d\n", x);
    else if(z!=0)
    {
x=p+.5;
     printf("%d\n", x;);
    }
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:4: error: expected ';' before 'printf'
   10 | p=x
      |    ^
      |    ;
   11 |      printf("%d\n", x);
      |      ~~~~~~
main.c:15:22: error: expected ')' before ';' token
   15 |      printf("%d\n", x;);
      |            ~         ^
      |                      )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:26: error: expected ')' before ';' token
   12 |      printf("%d\n", x+0.5;);
      |            ~             ^
      |                          )
Language: C

#include<stdio.h>
int main()
{
    int  a, b, x, z,p;
    scanf("%d %d", &a, &b);
     z = (a + b) %2;
     x=(a+b)/2;
    if(z==0)
     printf("%d\n", x);
    else if(z!=0)
    {
     printf("%d\n", x+0.5;);
    }
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:26: error: expected ')' before ';' token
   12 |      printf("%d\n", x+0.5;);
      |            ~             ^
      |                          )
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: lvalue required as left operand of assignment
   13 |   if(c - (a + b)/2 = 0){
      |      ~~^~~~~~~~~~~
Language: C++

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

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

}

Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h>]
      |                         ^
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'if'
   10 |   if(c - (a + b)/2 > 0 ){
      |   ^~
a.cc:13:8: error: lvalue required as left operand of assignment
   13 |   if(c - (a + b)/2 = 0){
      |      ~~^~~~~~~~~~~
Language: C++

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

    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: lvalue required as left operand of assignment
    8 |   if((num%2) = 1){
      |      ~~~~^~~
Language: C++

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

    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: lvalue required as left operand of assignment
    8 |   if((num%2) = 1){
      |      ~~~~^~~
Language: C++

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

    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: lvalue required as left operand of assignment
    8 |   if((num%2) = 1){
      |      ~~~~^~~
a.cc:10:11: error: expected '(' before '{' token
   10 |   }else if{
      |           ^
      |           (
Language: C++

#include <iostream>
#include <stdio.h>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <vector>
#include <cstdlib>
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)/2;
return(0);
}
#include <iostream>
#include <stdio.h>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <vector>
#include <cstdlib>
using namespace std;
#define REP(i,n) for(int i = 0;i < (int)(n);i++)

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


Compiler output:
a.cc:27:5: error: redefinition of 'int main()'
   27 | int main() {
      |     ^~~~
a.cc:11:5: note: 'int main()' previously defined here
   11 | int main() {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:30:24: error: expected ';' before 'else'
   30 | if ((a+b)%2)a=(a+b)/2+1
      |                        ^
      |                        ;
   31 | else a=(a+b)%2
      | ~~~~
Language: C++

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: 'x' was not declared in this scope
    6 |   cin >> a >> b >> x;
      |                    ^
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: 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 ;
  cin >> a >> b ;
  cout << (a + b ) % 2 << endl;
}


Compiler output:
a.cc:1:10: 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 a, b;
  cin >> a >> b;
  int c;
  c=a+b;
  if(c%2==1){
    c=c+1
  }
  
  
  cout << c/2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected ';' before '}' token
   10 |     c=c+1
      |          ^
      |          ;
   11 |   }
      |   ~
Language: C++

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'if'
    6 |     x = (a+b)/2
      |                ^
      |                ;
    7 |     if( (a+b) % 2 != 0 ){
      |     ~~          
a.cc:9:6: error: 'else' without a previous 'if'
    9 |     }else{
      |      ^~~~
Language: C++

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

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

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

#include <bits/sdc++>
using namespace std;

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

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

#include <bits/sdc++>
using namespace std;

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

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

#include <bits/sdc++>
using namespace std;

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

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

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

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'ceil' was not declared in this scope
    7 |   cout << ceil((a + b)/2.0) << endl;
      |           ^~~~
Language: C++

#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>

#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
#endif

// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>

#if __cplusplus >= 201103L
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#endif
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef vector<ll> vi;
typedef vector<string> vs;
typedef pair<ll,ll> P;
typedef vector<P> vp;
#define REP(i,n) for(int i=0;i<n;i++)
#define FOR(i,m,n) for(int i=m;i<n;i++)
#define REPR(i,n) for(int i=n-1;i>=0;i--)
#define FORR(i,n,m) for(int i=n-1;i>=m;i--)
#define all(in) in.begin(),in.end()
#define ALL(in,K) in,in+K
#define INF 1e18
#define MOD 100000007
#define SIZE 10005
#define PI 	3.14159265358979323846


int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a,b;
    cin >> a >> b;
    cout << (a+b)%2?(a+b)/2+1:(a+b)/2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:110:39: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
  110 |     cout << (a+b)%2?(a+b)/2+1:(a+b)/2 << endl;
      |                               ~~~~~~~~^~~~~~~
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  double x = (a + b) / 2.0;
  if ( x % 1 == 0 ){
    count << x << endl;
    return 0;
  }
  int ans = x;
  cout << x << endl;
  return 0;
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 |   if ( x % 1 == 0 ){
      |        ~ ^ ~
      |        |   |
      |        |   int
      |        double
a.cc:9:11: error: invalid operands of types '<unresolved overloaded function type>' and 'double' to binary 'operator<<'
    9 |     count << x << endl;
      |     ~~~~~~^~~~
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  double x = (a + b) / 2.0;
  if ( x % 1.0 == 0.0 ){
    count << x << endl;
    return 0;
  }
  int ans = x;
  cout << x << endl;
  return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    8 |   if ( x % 1.0 == 0.0 ){
      |        ~ ^ ~~~
      |        |   |
      |        |   double
      |        double
a.cc:9:11: error: invalid operands of types '<unresolved overloaded function type>' and 'double' to binary 'operator<<'
    9 |     count << x << endl;
      |     ~~~~~~^~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'a' was not declared in this scope
    5 |   cout << (a + b + 1) / 2 << endl;
      |            ^
a.cc:5:16: error: 'b' was not declared in this scope
    5 |   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) / 2 + sum % 2 << endl;
}
  

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

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

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