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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:45: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << (a + b) / 2 + 1 -(1 - (a + b) % 1 << endl;
      |                             ~~~~~~~~~~~~~~~~^~~~~~~
a.cc:7:52: error: expected ')' before ';' token
    7 |   cout << (a + b) / 2 + 1 -(1 - (a + b) % 1 << 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:6: error: expected ';' before 'a'
    6 |   cin a >> b;
      |      ^~
      |      ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: 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 << int((a+b)/2)<< endl;
}

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

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

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

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

#include <iostream>
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:8:23: error: expected ')' before '{' token
    8 |   if ( ((a+b)%2 == 0 ) {
      |      ~                ^~
      |                       )
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
Language: C++

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

int main() {
  // ここにプログラムを追記
  string A,B;
  cin >>A>>B;
  sort(A.begin(),A.end())
    
  sort(B.begin(),B.end())
    reverse(B.begin(),B.end())
    if(A<B){
     cout<< "YES"<<endl;
      
    }
  else {cout<<"NO"<<endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ';' before 'sort'
    8 |   sort(A.begin(),A.end())
      |                          ^
      |                          ;
    9 | 
   10 |   sort(B.begin(),B.end())
      |   ~~~~                    
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else {cout<<"NO"<<endl;}
      |   ^~~~
Language: C++

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

int main (){

    int a, b;
    cin >> a >> b;
    int x = a + b;
    int xa = x%2;
  int y;
  if(xa ==0){
        y = x/2;

    }
    else{
        y = (x+1)/2;

    }

    cout << y << endl;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | x#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'x' does not name a type
    1 | x#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> a >> b;
      |     ^~~
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout << y << endl;
      |     ^~~~
a.cc:20:18: error: 'endl' was not declared in this scope
   20 |     cout << y << endl;
      |                  ^~~~
Language: C++

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

int main (){

    int a, b;
    cin >> a >> b;
    int x = a + b;
    int xa = x%2;


int y;

    if(xa ==0){
        y = x/2;

    }
    else{
        y = (x+1)/2;

    }

    cout << y << endl;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | x#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'x' does not name a type
    1 | x#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> a >> b;
      |     ^~~
a.cc:23:5: error: 'cout' was not declared in this scope
   23 |     cout << y << endl;
      |     ^~~~
a.cc:23:18: error: 'endl' was not declared in this scope
   23 |     cout << y << endl;
      |                  ^~~~
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();
    System.out.println(Math.ceil(double(a+b)/2.0));
  }
}
    

Compiler output:
Main.java:7: error: '.class' expected
    System.out.println(Math.ceil(double(a+b)/2.0));
                                       ^
Main.java:7: error: not a statement
    System.out.println(Math.ceil(double(a+b)/2.0));
                                         ^
Main.java:7: error: ';' expected
    System.out.println(Math.ceil(double(a+b)/2.0));
                                           ^
3 errors
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:20: 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;
  cin>>a>>b;
  cout<<(A+B)/2+(A+B)%2<<endl;
}

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

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

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


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

#include <iostream>
int main(void){
    int a, b;
    cin >> a >> b;
    a = (a + b) / 2.0;
    cout << (a + b + 1) / 2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     cin >> a >> b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << (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:6:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout << (a + b + 1) / 2 << endl;
      |                                ^~~~
      |                                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

int a, b;
    cin >> a >> b;
    a = (a + b) / 2.0;
    cout << (a + b + 1) / 2 << endl;

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

int a, b;
cin >> a >> b;
a = (a + b) / 2.0;
cout << (a + b + 1) / 2 << endl;

Compiler output:
main.c:2:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>>' token
    2 | cin >> a >> b;
      |     ^~
main.c:3:1: warning: data definition has no type or storage class
    3 | a = (a + b) / 2.0;
      | ^
main.c:3:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:3:5: error: initializer element is not constant
    3 | a = (a + b) / 2.0;
      |     ^
main.c:4:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<<' token
    4 | cout << (a + b + 1) / 2 << endl;
      |      ^~
Language: C++

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

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'dobble' was not declared in this scope; did you mean 'double'?
    5 | dobble a,b;
      | ^~~~~~
      | double
a.cc:6:8: error: 'a' was not declared in this scope
    6 | cin >> a;
      |        ^
a.cc:7:12: 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 a, b;
  int x;
  x = (a + b) / 2;
  cin >> a >> b >>
  int d;
  d = x + 1;
  cout << d << endl;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected primary-expression before 'int'
    9 |   int d;
      |   ^~~
a.cc:10:3: error: 'd' was not declared in this scope
   10 |   d = x + 1;
      |   ^
Language: C++

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

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

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

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

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

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


Compiler output:
a.cc:7:10: error: extended character 　 is not valid in an identifier
    7 |   cin >> a　>> b;
      |          ^
a.cc: In function 'int main()':
a.cc:7:10: error: 'a\U00003000' was not declared in this scope
    7 |   cin >> a　>> b;
      |          ^~~
Language: C++

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

int main(){
  int a,b;
  
  cin >> a　>> b;
  
  double d = (a+b+1)/2;
  
  int c = d;
  
  if (1<=a && b<=100){
  cout << c << endl;
  }
  else {
    cout << "error" << endl;
  }
}


Compiler output:
a.cc:7:10: error: extended character 　 is not valid in an identifier
    7 |   cin >> a　>> b;
      |          ^
a.cc: In function 'int main()':
a.cc:7:10: error: 'a\U00003000' was not declared in this scope
    7 |   cin >> a　>> b;
      |          ^~~
Language: C++

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

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


Compiler output:
a.cc:7:10: error: extended character 　 is not valid in an identifier
    7 |   cin >> a　>> b;
      |          ^
a.cc: In function 'int main()':
a.cc:7:10: error: 'a\U00003000' was not declared in this scope
    7 |   cin >> a　>> b;
      |          ^~~
Language: C++

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

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

Compiler output:
a.cc:7:10: error: extended character 　 is not valid in an identifier
    7 |   cin >> a　>> b;
      |          ^
a.cc: In function 'int main()':
a.cc:7:10: error: 'a\U00003000' was not declared in this scope
    7 |   cin >> a　>> b;
      |          ^~~
a.cc:11:3: error: expected ',' or ';' before 'if'
   11 |   if (1<=a && b<=100){
      |   ^~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
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:26: error: expected '}' at end of input
    7 |   cout<<(a+b+1)/2 <<endl;
      |                          ^
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)*0.5 <<endl;

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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: warning: narrowing conversion of '((a + b) / 2)' from 'int' to 'double' [-Wnarrowing]
    7 |   double c{(a+b)/2};
      |            ~~~~~^~
a.cc:9:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   if (c > ci) std::cout << ci + 1 << endl;
      |                                      ^~~~
      |                                      std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   else std::cout << ci << endl;
      |                           ^~~~
      |                           std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main(){
  int 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:21: error: expected ';' before 'cout'
    7 |   c = (a + b + 1) /2
      |                     ^
      |                     ;
    8 |   cout << c << endl;
      |   ~~~~
Language: C++

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

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

Compiler output:
a.cc:8:16: error: extended character 　 is not valid in an identifier
    8 |   cout << (a + b　+ 1)/2 << endl;
      |                ^
a.cc: In function 'int main()':
a.cc:8:16: error: 'b\U00003000' was not declared in this scope
    8 |   cout << (a + b　+ 1)/2 << endl;
      |                ^~~
Language: C++

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

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

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

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

int main() {

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: expected ';' before '}' token
   17 |   return 0
      |           ^
      |           ;
   18 | }
      | ~
Language: C++

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

int main() {

  int a, b;
  int ave;
  
  cin >> a >> b;
  cout << name << endl; // 10
  
  if((a + b) % 2 != 0) {
    ave = ((a + b) / 2) + 1;
  else
    ave = (a + b) / 2;
  }
  
  return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'name' was not declared in this scope
   10 |   cout << name << endl; // 10
      |           ^~~~
a.cc:14:3: error: expected '}' before 'else'
   14 |   else
      |   ^~~~
a.cc:12:24: note: to match this '{'
   12 |   if((a + b) % 2 != 0) {
      |                        ^
a.cc: At global scope:
a.cc:18:3: error: expected unqualified-id before 'return'
   18 |   return 0
      |   ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before '}' token
    7 |  cout << (a + b + 1)/2 << endl
      |                               ^
      |                               ;
    8 | }
      | ~
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:11: error: expected initializer before 'b'
    5 |     int a b;
      |           ^
a.cc:7:16: error: 'a' was not declared in this scope
    7 |         cin >> a >> b;
      |                ^
a.cc:7:21: error: 'b' was not declared in this scope
    7 |         cin >> a >> b;
      |                     ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ';' before 'cout'
    7 |     x = (a + b + 1) / 2
      |                        ^
      |                        ;
    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
    cout << x + 1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before 'cout'
    7 |     x = (a + b) / 2
      |                    ^
      |                    ;
    8 |     cout << x + 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 << endl;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'X' was not declared in this scope
    9 |   cout << X << endl ;
      |           ^
a.cc:9:22: error: expected '}' at end of input
    9 |   cout << X << endl ;
      |                      ^
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;
  0<a,b<100
  cin >> a >> b ;
  cout << (a+b)/2+1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before 'cin'
    6 |   0<a,b<100
      |            ^
      |            ;
    7 |   cin >> a >> b ;
      |   ~~~
Language: C

#include<stdio.h>

int main(void){
  int a,b;
  scanf("%d %d",&a ,&b);
  printf("%d", (a+b+2-1)\2);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:25: error: stray '\' in program
    6 |   printf("%d", (a+b+2-1)\2);
      |                         ^
main.c:6:25: error: expected ')' before numeric constant
    6 |   printf("%d", (a+b+2-1)\2);
      |         ~               ^~
      |                         )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: redeclaration of 'int x'
    6 |    int x = (a+b)/2;
      |        ^
a.cc:4:12: note: 'int x' previously declared here
    4 |    int a,b,x;
      |            ^
Language: C++

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

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

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

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

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

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

int main() {
  int a,b;
  cin >> a >> b;
  x = ceil((a+b)/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 = ceil((a+b)/2);
      |   ^
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b;
  x = roundup((a+b)/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 = roundup((a+b)/2);
      |   ^
a.cc:7:7: error: 'roundup' was not declared in this scope; did you mean 'roundl'?
    7 |   x = roundup((a+b)/2);
      |       ^~~~~~~
      |       roundl
Language: C++

#include<iostream>
using namespace std;

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

}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ')' before ';' token
   10 |   result = (int)((a + b)/2;)
      |                 ~         ^
      |                           )
a.cc:10:28: error: expected primary-expression before ')' token
   10 |   result = (int)((a + b)/2;)
      |                            ^
Language: C++

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: conflicting declaration 'int y'
   10 |   int y = x;
      |       ^
a.cc:9:10: note: previous declaration as 'double y'
    9 |   double y = (a + b) / 2;
      |          ^
a.cc:10:11: error: 'x' was not declared in this scope
   10 |   int y = x;
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: conflicting declaration 'int X'
   10 |   int X = x;
      |       ^
a.cc:9:10: note: previous declaration as 'double X'
    9 |   double X = (a + b) / 2;
      |          ^
a.cc:10:11: error: 'x' was not declared in this scope
   10 |   int X = x;
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: conflicting declaration 'int X'
   10 |   int X = x
      |       ^
a.cc:9:10: note: previous declaration as 'double X'
    9 |   double X = (a + b) / 2;
      |          ^
a.cc:10:11: error: 'x' was not declared in this scope
   10 |   int X = x
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: redeclaration of 'int X'
   10 |   int X = x;
      |       ^
a.cc:9:7: note: 'int X' previously declared here
    9 |   int X = (a + b) / 2;
      |       ^
a.cc:10:11: error: 'x' was not declared in this scope
   10 |   int X = x;
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'int'
    7 |   cin >> a >> b
      |                ^
      |                ;
    8 | 
    9 |   int x = a + b;
      |   ~~~           
a.cc:11:11: error: 'x' was not declared in this scope
   11 |   cout << x / 2 << endl;
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'int'
    7 |   cin >> a >> b
      |                ^
      |                ;
    8 | 
    9 |   int x = a + b;
      |   ~~~           
a.cc:11:11: error: 'x' was not declared in this scope
   11 |   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
  cout << x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: 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,b;
  cin>>a>>b;
  int x=(a+b)/2;
  cout<<x+1??endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected primary-expression before '?' token
    8 |   cout<<x+1??endl;
      |             ^
a.cc:8:18: error: expected ':' before ';' token
    8 |   cout<<x+1??endl;
      |                  ^
      |                  :
a.cc:8:18: error: expected primary-expression before ';' token
a.cc:8:18: error: expected ':' before ';' token
    8 |   cout<<x+1??endl;
      |                  ^
      |                  :
a.cc:8:18: error: expected primary-expression before ';' token
Language: C++

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

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


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

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

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

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

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

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

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

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

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

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

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

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

  



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

  



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

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde <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 | #inculde <bits/stdc++.h>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<(a+b)/2<<endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:18: error: 'endl' was not declared in this scope
    7 |   cout<<(a+b)/2<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inculde <bits/stdc++.h>
Language: C++

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

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


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

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

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


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

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

int main(){
  int a, b;
  cin >> a >> b;
  x = (a+b)/2.0;
  x = x/1;
  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)/2.0;
      |   ^
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before 'cout'
   11 |   ave = ceil(ave)
      |                  ^
      |                  ;
   12 | 
   13 |   cout << ave << endl;
      |   ~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before 'cout'
   11 |   ave = ceil(ave)
      |                  ^
      |                  ;
   12 | 
   13 |   cout >> ave >> endl;
      |   ~~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: unable to find numeric literal operator 'operator""c'
    8 |         cout <<(2c-1)/2+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 <<(2c+1)/2<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: unable to find numeric literal operator 'operator""c'
    8 |         cout <<(2c+1)/2<<endl;
      |                 ^~
Language: C++

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

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

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

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

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

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

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

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

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

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

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

int main(){
  int a, b;
  cin >> a >> b;
  while(a < 1 || a > 100 || b < 1 || b > 100){
    cin >> a >> b;
  }
  if((a + b) % 2 == 0){
    cout << (a + b) / 2 << endl;
  }else{
    cout << (a + B + 1) / 2 << endl;
  }
}

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

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

int main(){
  int a, b;
  cin >> a >> b;
  while(a < 1 || a > 100 || b < 1 || b > 100){
    cin >> a >> b;
  }
  if((a + b) % 2 == 0){
    cout << (a + b) / 2 << endl;
  }else{
    cout << (a + B + 1) / 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: 'B' was not declared in this scope
   13 |     cout << (a + B + 1) / 2 << endl;
      |                  ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

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

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

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

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

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

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << ((a + b + (a + b) % 2)/2) << endl;
      |   ^~~~
a.cc:7:40: error: 'endl' was not declared in this scope
    7 |   cout << ((a + b + (a + b) % 2)/2) << endl;
      |                                        ^~~~
Language: C++

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

int main(){
  int a,b;
  cin >> a >> b;
  cout << (a + b + (a + b) % 2)/2 << 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:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << (a + b + (a + b) % 2)/2 << endl;
      |   ^~~~
a.cc:7:38: error: 'endl' was not declared in this scope
    7 |   cout << (a + b + (a + b) % 2)/2 << endl;
      |                                      ^~~~
Language: C++

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

int main(){
  int a,b;
  cin >> a >> b;
  cout << (a + b + (a + b) % 2) << 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:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << (a + b + (a + b) % 2) << endl;
      |   ^~~~
a.cc:7:36: error: 'endl' was not declared in this scope
    7 |   cout << (a + b + (a + b) % 2) << endl;
      |                                    ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected primary-expression before '=' token
   11 |   if ( (A+B)%2 === 0 ){
      |                  ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: lvalue required as left operand of assignment
   11 |   if ( (A+B)%2 = 0 ){
      |        ~~~~~^~
a.cc:13:5: error: expected '}' before 'else'
   13 |     else{
      |     ^~~~
a.cc:11:21: note: to match this '{'
   11 |   if ( (A+B)%2 = 0 ){
      |                     ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
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;
  c = c + 1;
  cout << c;
  
  
}
 

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

include <bits/stdc++.h>
using namespace std;
 
int main() {
    int a,b,c;
    double x;
    cin >> a;
    cin >> b;

    x= (a+b)/2;
    c=ceil(x);
    cout << c << endl;
    
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> a;
      |     ^~~
a.cc:11:7: error: 'ceil' was not declared in this scope
   11 |     c=ceil(x);
      |       ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << c << endl;
      |     ^~~~
a.cc:12:18: error: 'endl' was not declared in this scope
   12 |     cout << c << endl;
      |                  ^~~~
Language: C++

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

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

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

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> a >> b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | cout << (a+b)/2+1;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | cout << (a+b)/2;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> a >> b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |    cout << (a+b)/2+1;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |    cout << (a+b)/2;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> a >> b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:11: error: lvalue required as left operand of assignment
    6 |  if ((a+b)%2 = 1) {
      |      ~~~~~^~
a.cc:7:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |    cout << (a+b)/2+1;
      |    ^~~~
      |    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:11: error: lvalue required as left operand of assignment
    9 |  if ((a+b)%2 = 0) {
      |      ~~~~~^~
a.cc:10:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |    cout << (a+b)/2;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> a >> b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:11: error: lvalue required as left operand of assignment
    6 |  if ((a+b)%2 = 1) {
      |      ~~~~~^~
a.cc:7:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |    cout << (a+b)/2+1;
      |    ^~~~
      |    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:11: error: lvalue required as left operand of assignment
    9 |  if ((a+b)%2 = 0) {
      |      ~~~~~^~
a.cc:10:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |    cout << (a+b)/2;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~