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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'ceil' was not declared in this scope
    6 |     int s=ceil(a+b)/2;
      |           ^~~~
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:7:19: error: expected ';' before ')' token
    7 |   cout<< (a+b+1)/2)<<endl;
      |                   ^
      |                   ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: expected ';' before ')' token
    6 |   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 + 1 << endl;
}

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

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

int main() {
  // ここにプログラムを追記
  int a, b, x;
  cin >> a >> b;
  x = (a + b + 1) / 2;
  
  cout << N * N - A << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'N' was not declared in this scope
   10 |   cout << N * N - A << endl;
      |           ^
a.cc:10:19: error: 'A' was not declared in this scope
   10 |   cout << N * N - A << endl;
      |                   ^
Language: C++

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



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



}


Compiler output:
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
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 +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, ;
      |             ^
a.cc:7:11: error: expected primary-expression before '{' token
    7 |   cout << {a + b +1}/2 << endl;
      |           ^
a.cc:7:21: 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,x;
  double X;
  cin >> a;
  cin >> b;
  X = (a + b)/2;
  x =X;
  count << x << endle;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   11 |   count << x << endle;
      |   ~~~~~~^~~~
a.cc:11:17: error: 'endle' was not declared in this scope
   11 |   count << x << endle;
      |                 ^~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before 'count'
    8 |   x = (a + b)/2
      |                ^
      |                ;
    9 |   count << x << endle;
      |   ~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'int'
    7 |   int y = (a + b) % 2
      |   ^~~
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 |   x = (a+b)%2;
      |       ~~~~~^~
      |         |   |
      |         |   int
      |         double
a.cc:9:14: error: expected ';' before 'cout'
    9 |   y = (a+b)/2
      |              ^
      |              ;
   10 | 
   11 |   cout << x + y << endl;
      |   ~~~~
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:29: error: expected ';' before 'endl'
    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 ;
  cout << (a+b)/2 +(a+b)%2   endl;
}


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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | y = (a+b)%2;
      |     ~~~~~^~
      |       |   |
      |       |   int
      |       double
a.cc:10:17: error: expected ';' before '}' token
   10 | cout<<x +y<<endl
      |                 ^
      |                 ;
   11 |  }
      |  ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected initializer before '.' token
    6 | int x.y;
      |      ^
a.cc:8:1: error: 'y' was not declared in this scope
    8 | y = (a+b)%2;
      | ^
a.cc:8:10: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | y = (a+b)%2;
      |     ~~~~~^~
      |       |   |
      |       |   int
      |       double
a.cc:9:1: error: 'x' was not declared in this scope
    9 | x= (a+b)/2;
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected initializer before '.' token
    6 | int x.y;
      |      ^
a.cc:8:1: error: 'y' was not declared in this scope
    8 | y = (a+b)%2
      | ^
a.cc:8:10: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | y = (a+b)%2
      |     ~~~~~^~
      |       |   |
      |       |   int
      |       double
Language: C++

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

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

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

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();
    double d=(a+b)/2;
    System.out.println((int)Double.ceil(d));
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    System.out.println((int)Double.ceil(d));
                                  ^
  symbol:   method ceil(double)
  location: class Double
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'Math' was not declared in this scope
    8 |   cout << Math.ceil(x) << 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 {
  x = a + (b + 1);
  cout << x / 2 << endl;
  }
}

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

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

int main() {
  int a, b;
  double x = (a + b) /2;
  cout << Math.ceil(x) << endl;
}

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

#include <bits/stdc++.h>

uning namespace std;

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

Compiler output:
a.cc:3:1: error: 'uning' does not name a type
    3 | uning namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:8:9: 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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         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:9:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         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>

uning namespace std;

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

Compiler output:
a.cc:3:1: error: 'uning' does not name a type
    3 | uning namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:8:9: 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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout >> (a+b)/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:9:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout >> (a+b)/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() {
  double a,b,c;
  
  int d;

  cin >> a>>b;
  
  (a+b)/2 =c;
  
  c+0.9=d;

  cout << d << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin >> a>>b;
      |   ^~~
a.cc:11:8: error: lvalue required as left operand of assignment
   11 |   (a+b)/2 =c;
      |   ~~~~~^~
a.cc:13:4: error: lvalue required as left operand of assignment
   13 |   c+0.9=d;
      |   ~^~~~
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << d << endl;
      |   ^~~~
a.cc:15:16: error: 'endl' was not declared in this scope
   15 |   cout << d << endl;
      |                ^~~~
Language: C++

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

int main(){
  cin >> a >> b;
  int x = (a + b + 1)/2;
  cout << x << 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(){
cin >> a >> b;
int x = (a + b + 1)/2;
cout << x;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cont' was not declared in this scope; did you mean 'const'?
    7 |   cont << ( a + b + 1 ) / 2 << endl;
      |   ^~~~
      |   const
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:6:3: error: expected initializer before 'cin'
    6 |   cin >> a >> b;
      |   ^~~
a.cc:7:16: error: 'b' 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 x,y,z;
  cin >> x, y;
  z = x + y;
  
  if (z % 2 == 0){
    cout << z << endl;
  }
  
  else{
    cout << z/2+1 << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
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)/2 + (a+B)%2 << endl;
}


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

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

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


Compiler output:
a.cc:4:1: error: 'ceil' does not name a type
    4 | ceil main() {
      | ^~~~
Language: C++

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

double main() {
  double a;
  double b;
  cin >> a >> b ;
  cout << 1/2*(a-b) << endl;
}


Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | double 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:1:11: fatal error:  bits/stdc++.h: No such file or directory
    1 | # include < bits/stdc++.h>
      |           ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc:1:11: 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
  cout << (a+b)/2 << endl;
}

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

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

int main() {
  unsigned int a = 0, b = 0;
  cin >> a >> b;
  while(!is_proper(a) || !is_proper(b)){
    cin >> a >> b;
  }
  cout << (a+b)/2 + 1 << endl;
}
bool is_proper(unsigned int in);
bool is_proper(unsigned int in){
  if (in>=1&&in<=100){
    return true;
  }
  return false;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'is_proper' was not declared in this scope; did you mean 'isupper'?
    7 |   while(!is_proper(a) || !is_proper(b)){
      |          ^~~~~~~~~
      |          isupper
Language: C++

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

int main() {
  unsigned int a = 0, b = 0;
  cin >> a >> b;
  while(!is_proper(a) || !is_proper(b)){
    cin >> a >> b;
  }
  cout << (a+b)/2 + 1 << endl;
}
static bool is_proper(unsigned int in){
  if (in>=1&&in<=100){
    return true;
  }
  return false;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'is_proper' was not declared in this scope; did you mean 'isupper'?
    7 |   while(!is_proper(a) || !is_proper(b)){
      |          ^~~~~~~~~
      |          isupper
Language: C++

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

int main() {
  unsigned int a = 0, b = 0;
  cin >> a >> b;
  while(!is_proper(a) || !is_proper(b)){
    cin >> a >> b;
  }
  cout << (a+b)/2 + 1 << endl;
}
bool is_proper(unsigned int in){
  if (in>=1&&in<=100){
    return true;
  }
  return false;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'is_proper' was not declared in this scope; did you mean 'isupper'?
    7 |   while(!is_proper(a) || !is_proper(b)){
      |          ^~~~~~~~~
      |          isupper
Language: C++

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

int main() {
  unsigned int a = 0, b = 0;
  cin >> a >> b;
  while(!is_proper(a) || !is_proper(b)){
    cin >> a >> b;
  }
  cout << (a+b)/2 + 1 << endl;
}
boolean is_proper(unsigned int in){
  if (in>=1&&in<=100){
    return true;
  }
  return false;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'is_proper' was not declared in this scope; did you mean 'isupper'?
    7 |   while(!is_proper(a) || !is_proper(b)){
      |          ^~~~~~~~~
      |          isupper
a.cc: At global scope:
a.cc:12:1: error: 'boolean' does not name a type; did you mean 'bool'?
   12 | boolean is_proper(unsigned int in){
      | ^~~~~~~
      | bool
Language: C++

#include <bits/c++.h>

using namespace std;

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

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

#include <bits/c++.h>

using namespace std;

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

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

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

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

Compiler output:
a.cc:2:17: error: 'stdc' is not a namespace-name
    2 | using namespace stdc;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> 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:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << a + b / 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:8:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << a + b / 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 stdc;

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

Compiler output:
a.cc:2:17: error: 'stdc' is not a namespace-name
    2 | using namespace stdc;
      |                 ^~~~
a.cc:4:12: error: expected unqualified-id before ')' token
    4 | 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 << endl;
}

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

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
#include <cstdlib>
using namespace std;
int main()
{
    double a, b, hei;
    cin >> a >> b;
    hei = (a + b) / 2;
    cout << round(hei) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: 'round' was not declared in this scope
   14 |     cout << round(hei) << 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;
  
/ *
整数型の割り算の計算結果は使用する言語によって異なりますが，多くの言語では切り捨てです．
a÷bの計算結果を切り上げする場合には(a+b-1)/bと書くと計算結果が切り上げになります．

a = x+y
b = 2
(a+b+2-1)/2
*/
}


Compiler output:
a.cc:11:1: error: extended character ÷ is not valid in an identifier
   11 | a÷bの計算結果を切り上げする場合には(a+b-1)/bと書くと計算結果が切り上げになります．
      | ^
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '/' token
    9 | / *
      | ^
a.cc:10:1: error: '\U00006574\U00006570\U0000578b\U0000306e\U00005272\U0000308a\U00007b97\U0000306e\U00008a08\U00007b97\U00007d50\U0000679c\U0000306f\U00004f7f\U00007528\U00003059\U0000308b\U00008a00\U00008a9e\U0000306b\U00003088\U00003063\U00003066\U00007570\U0000306a\U0000308a\U0000307e\U00003059\U0000304c\U0000ff0c\U0000591a\U0000304f\U0000306e\U00008a00\U00008a9e\U00003067\U0000306f\U00005207\U0000308a\U00006368\U00003066\U00003067\U00003059\U0000ff0e' was not declared in this scope
   10 | 整数型の割り算の計算結果は使用する言語によって異なりますが，多くの言語では切り捨てです．
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b;
  cin >> a,b;
  x=(a+b+1)/2;
  cout << 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+1)/2;
      |   ^
Language: C++

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

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

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

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

#include "bits/stdc++.h"
using namespace std;
#define REP(i,a,b) for(int i=(a);i<(b);++i)
#define rep(i,n) REP((i),0,(n))
#define ALL(v) (v).begin(),(v).end()

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

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

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

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

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

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

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

Compiler output:
a.cc:6:3: error: stray '\' in program
    6 |   \\int x = 48-M;
      |   ^
a.cc:6:4: error: stray '\' in program
    6 |   \\int x = 48-M;
      |    ^
a.cc: In function 'int main()':
a.cc:6:16: error: 'M' was not declared in this scope
    6 |   \\int x = 48-M;
      |                ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans = ((a+b) + (a+b)%2)/2;
      |   ^~~
      |   abs
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #iclude<bits/stdc++.h>
a.cc:7:3: error: 'ans' was not declared in this scope
    7 |   ans = ((a+b) + (a+b)%2)/2;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << ans << endl;
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |   cout << ans << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #iclude<bits/stdc++.h>
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ';' before ')' token
    7 |     cout<<ceil(a+b)/2.0);
      |                        ^
      |                        ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: lvalue required as left operand of assignment
   10 |         s=(a+b)/2+=1;
      |           ~~~~~^~
Language: C++

#include <bins/stdc++.h>
using namespace std;
 
int main(){
  int a, b;
  cin >> a >> b;
  cout << (a+b+1)/2 << endl; //(a+b)が奇数の時切り下がるので、1で補正すると切り上げられる
}


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

#include <bins/stdc++.h>
using namespace std;
 
int main(){
  int a, b;
  cin >> a >> b;
  cout << (a+b+1)/2 << endl; //(a+b)が奇数の時切り下がるので、1で補正すると切り上げられる
}

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

#include <bins/stdc++/h>
using namespace std;
 
int main(){
  int a, b;
  cin >> a >> b;
  cout << (a+b+1)/2 << endl; //(a+b)が奇数の時切り下がるので、1で補正すると切り上げられる
}

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

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

int main(){
  int a, b;
  cnt >> a >> b;
  cout << (a+b+1)/2 << endl; //(a+b)が奇数の時切り下がるので、1で補正すると切り上げられる
}

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

#include<iostream>
using namespace std;
int main(){
    int a,b,ans;
    cin >> a >> b;
    ans = ( a + b ) / 2
    if ((a + b) == 1 )ans++;
    cout << ans << endl; 

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ';' before 'if'
    6 |     ans = ( a + b ) / 2
      |                        ^
      |                        ;
    7 |     if ((a + b) == 1 )ans++;
      |     ~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int a,b;
    cin >> a >> b;
    ans = ( a + b ) / 2
    if ((a + b) == 1 )ans++;
    cout << ans << endl; 

}

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

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

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

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main() {
      | ^~~~
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:6:14: error: expected ';' before 'cout'
    6 |   x = (a+b)/2
      |              ^
      |              ;
    7 |   cout << x << endl;
      |   ~~~~
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:35: 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 <iostream>
#include <string.h>
#include <algorithm>
#include <array>
#include <vector>

using namespace std;

int main( void ) {

    int a, b;
    double x;
    cin >> a >> b;
    
    a = x = a * b / 2;

    if ( x > (double)a ) {
        cout << a + 1 << endl;
    } else {
        cout << a << enld;
    }

    return 0;   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:22: error: 'enld' was not declared in this scope
   20 |         cout << a << enld;
      |                      ^~~~
Language: C++

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

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

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

int main() {
	int x, y;
	cin >> x >> y; 
	double z = (x + y) / 2.0;
	if (fmod(10*z,10) != 0)z++;
	cout << (int)z << endl;
	return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'fmod' was not declared in this scope
    9 |         if (fmod(10*z,10) != 0)z++;
      |             ^~~~
Language: C++

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

int main() {
	int x, y;
	cin >> x >> y;
	double z = (x + y) / 2.0;

	int out = ceil(z);
	cout << out << endl;
	return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'ceil' was not declared in this scope
   10 |         int out = ceil(z);
      |                   ^~~~
Language: C++

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

int main() {
	int x, y;
	cin >> x >> y;
	double z = (x + y) / 2.0;

	cout << ceil(z) << endl;
	return (0);
}

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

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

int main() {
	int x, y;
	cin >> x >> y;
	double z = (x + y) / 2;
	cout << round(z) << endl;
	return (0);
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: 'c' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |                    ^
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:7:18: error: expected ';' before '}' token
    7 |   cout<<(a+b+1)/2
      |                  ^
      |                  ;
    8 | }
      | ~
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;
    }
    if (c % 2 == 1) {
    	cout << c/2 + 1 << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'if'
    7 |         c = a + b
      |                  ^
      |                  ;
    8 |     if (c % 2 == 0) {
      |     ~~
Language: C++

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

int main() {

  int a, b;

  cin >> a >> b;
  
  int x = a+b;

  if(x%2=1){
  	cout << x/2+1 << endl;
  }else{
    cout << x/2 << endl;
  }
}


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

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

int main() {
  // ここに追記
  int a,b;
  int x=(a+b)/2 + 0.999999999;
  
  cin >> A >> B;
  cout << x << endl;
}


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

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

int main() {
  // ここに追記
  int a,b;
  int x=(a+b)/2 + 0.999999999
  
  cin >> A >> B;
  cout << x << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'cin'
    9 |   cin >> A >> B;
      |   ^~~
Language: C++

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

int main() {
  // ここに追記
  int a,b;
  int x=　ceil ((double)(a+b)/2)
  
  cin >> A >> B;
  cout << x << endl;
}


Compiler output:
a.cc:7:9: error: extended character 　 is not valid in an identifier
    7 |   int x=　ceil ((double)(a+b)/2)
      |         ^
a.cc: In function 'int main()':
a.cc:7:9: error: '\U00003000ceil' was not declared in this scope; did you mean 'ceil'?
    7 |   int x=　ceil ((double)(a+b)/2)
      |         ^~~~~~
      |         ceil
Language: C++

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

int main() {
  // ここに追記
  int a,b;
  int x=(a+b)/2
  
  cin >> A >> B;
  cout << x << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'cin'
    9 |   cin >> A >> B;
      |   ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'x'
   11 |   y = (a+b)%2
      |              ^
      |              ;
   12 |   x = (a+b)/2+y;
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int a , b;
    string S;
    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:8:10: error: expected primary-expression before '<<' token
    8 |     else << cout << (a+ b)/2 + 1 << endl;
      |          ^~
Language: C++

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

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


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

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

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


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

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

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


Compiler output:
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+1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'cout'
    8 |   cin>>a>>b
      |            ^
      |            ;
    9 |   // 以下のコメント/* */を消して追記する
   10 |   cout << (a+b)/2+1 << endl;
      |   ~~~~
Language: C++

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

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

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

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

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

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

#include<bits/stdc++.h>
using namespace std;
int a,b;
int main()
{
 //freopen(".in","r",stdin);
 //freopen(".out","w",stdout);
 cin>>a>>b;
 cout<<(a+b+3)/2-1;
 return 0;


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: lvalue required as left operand of assignment
    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) %= 1){
    a += 1;
  }  
  cout << (a + b)/2 << endl;
}


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

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

}

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

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

}

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

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

}

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

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

int main() {
  // ここにプログラムを追記
  int a,b,m;
  cin >> a >> b;
  m = (a+b)/2+(a+b)%2
  cout << m << endl;
}

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

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

int main() {
  // ここにプログラムを追記
  int a,b,m;
  cin >> a >> b;
  m = (a+b)/2
  cout << m+1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'cout'
    8 |   m = (a+b)/2
      |              ^
      |              ;
    9 |   cout << m+1 << endl;
      |   ~~~~
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String[] args) {

		// 入力
		Scanner sc = new Scanner(System.in);
		int inputA = sc.nextInt();
		int inputB = sc.nextInt();
		sc.close();
		
		int c = (int) Math.ceil((inputB + inputA) / 2);
		
		System.out.println(c);
	}

Compiler output:
Main.java:17: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  double 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:7:3: error: expected ',' or ';' before 'cout'
    7 |   cout << c << endl;
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: conflicting declaration 'int x'
    9 |   int x;
      |       ^
a.cc:7:10: note: previous declaration as 'double x'
    7 |   double x;
      |          ^
Language: C++

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

int main() {
  int a, b;
  cin >> R >> G;
  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:6:10: error: 'R' was not declared in this scope
    6 |   cin >> R >> G;
      |          ^
a.cc:6:15: error: 'G' was not declared in this scope
    6 |   cin >> R >> G;
      |               ^
Language: C++

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

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

 	 int x;
 	 x = (a+b+2-1)/2


 	cout << x<< endl;
}


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

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

int main() {
  int a, b;
  cin >> a >> b;
  if ((a+b)/2 == int){
  	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 'int'
    7 |   if ((a+b)/2 == int){
      |                  ^~~
a.cc:7:17: error: expected ')' before 'int'
    7 |   if ((a+b)/2 == int){
      |      ~          ^~~~
      |                 )
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before '/' token
    7 |   if (a+b)/2 == int{
      |           ^
a.cc:8:25: error: invalid user-defined conversion from 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int' [-fpermissive]
    8 |         cout << (a+b)/2 << endl;
      |         ~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 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,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_ios.h:121:16: note: candidate is: 'std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  121 |       explicit operator bool() const
      |                ^~~~~~~~
/usr/include/c++/14/bits/basic_ios.h:121:16: note:   return type 'bool' of explicit conversion function cannot be converted to 'int' with a qualification conversion
a.cc:7:17: error: expected primary-expression before 'int'
    7 |   if (a+b)/2 == int{
      |                 ^~~