criyle/codenet-compile-errors huggingface dataset:
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: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:5:11: error: lvalue required as left operand of assignment
    5 |  if ((a+b)%2 = 1) {
      |      ~~~~~^~
a.cc:6:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |    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:8:11: error: lvalue required as left operand of assignment
    8 |  if ((a+b)%2 = 0) {
      |      ~~~~~^~
a.cc:9:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |    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<bits/stdc++.h>
using namespace std;
int main(){int a,b,x;cin>>a>>b;x=a+b;cout<<x<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:3:52: error: expected '}' at end of input
    3 | int main(){int a,b,x;cin>>a>>b;x=a+b;cout<<x<<endl;
      |           ~                                        ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'cin'
    7 |   cin >> a
      |           ^
      |           ;
    8 |   cin >> 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:8:22: error: expected ';' before 'cout'
    8 |   x = (a + b + 1) / 2
      |                      ^
      |                      ;
    9 |   cout << x << endl;
      |   ~~~~
Language: C++

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

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

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

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


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

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

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


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

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

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

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

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


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

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

int main(){
  int a,b;
  cin >> a >> b;
  
  double x = (a+b)/2;
  int y = (a+b)/2;
  int z = y+(x-y)*2;

  cout << z
  
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected ';' before '}' token
   12 |   cout << z
      |            ^
      |            ;
   13 | 
   14 | }
      | ~
Language: C++

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

int main(){
  int a,b;
  double x = (a+b)/2;
  int y = (a+b)/2;
  int z = y+(x-y)*2;

  cin >> a >> b;
  cout << z
  
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected ';' before '}' token
   11 |   cout << z
      |            ^
      |            ;
   12 | 
   13 | }
      | ~
Language: C++

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

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

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

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> 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 << c << 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:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << c << 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 namespase std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> 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 << c << 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:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << c << endl;
      |                ^~~~
      |                std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected primary-expression before ',' token
   11 |     cout<,(a+b)/2+1<<endl;
      |          ^
a.cc:11:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |     cout<,(a+b)/2+1<<endl;
      |           ~~~~~~~~~^~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before 'int'
    8 |   cout << int c << endl;
      |           ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected initializer before 'd'
    8 |   d=(a+b)/2
      |   ^
Language: C++

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

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

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

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

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

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

    c = (a + b) / 2;
    cout << c + (a + b) % 2
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected ';' before '}' token
   11 |     cout << c + (a + b) % 2
      |                            ^
      |                            ;
   12 | }
      | ~
Language: C++

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

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

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

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


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

#include <iostrem>
using namespace std;

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

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

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


Compiler output:
a.cc:6:23: error: exponent has no digits
    6 |   cout<<(a+b)/2+(a+b)%2endl;
      |                       ^~~~~
Language: C++

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

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

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

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


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

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

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


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

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

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

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

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

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

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

int main(){
  int a,b;
  cin >> a >> b;
  cout << (a+b+1)/2 << 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 <bits/stdc++.h>
using namespace std;

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

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

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

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

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

#include <cstdio>

using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    int a,b;
    cin >> a >> b;
    
    if ((a+b)%2 == 0) cout << (a+b)/2;
    else cout << (a+b+1)/2;
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> a >> b;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | 
a.cc:10:23: error: 'cout' was not declared in this scope
   10 |     if ((a+b)%2 == 0) cout << (a+b)/2;
      |                       ^~~~
a.cc:10:23: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:10: error: 'cout' was not declared in this scope
   11 |     else cout << (a+b+1)/2;
      |          ^~~~
a.cc:11:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'cout'
    8 |   c = (a + b + 1) / 2
      |                      ^
      |                      ;
    9 |   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: In function 'int main()':
a.cc:6:9: error: found ':' in nested-name-specifier, expected '::'
    6 | int a, b:
      |         ^
      |         ::
a.cc:6:8: error: 'b' has not been declared
    6 | int a, b:
      |        ^
a.cc:7:5: error: qualified-id in declaration before '>>' token
    7 | cin >> a >> b ;
      |     ^~
a.cc:8:14: 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)%2+(a+b)/2;
}

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

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

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

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

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from double to int
    int average = Math.ceil( (a+b)/2 );
                           ^
1 error
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
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'if'
    9 |   if((a+b)&2 == 1){
      |   ^~
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else{
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'sum' was not declared in this scope
    7 |   sum = (a + b)/2
      |   ^~~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else{
      |   ^~~~
Language: C++

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

int main ()
{
  int s1,s2,s3;
  
  cin >> s1 >> s2 >> s3;
  cout << s1 + s2 + s3 << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'timespace'
    2 | using timespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> s1 >> s2 >> s3;
      |   ^~~
      |   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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << s1 + s2 + s3 << 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:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << s1 + s2 + s3 << 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++.>
using namespace std;

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

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

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


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

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


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

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

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

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

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
a.cc:4:6: error: expected initializer before '+' token
    4 | 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.0001 + 1
  cout << c << endl;
}

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

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

    outd = (a + b) / 2;
    if (outd % out != 0)
    {
        out += 1;
    }
    cout << out << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   10 |     if (outd % out != 0)
      |         ~~~~ ^ ~~~
      |         |      |
      |         double int
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:29: 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;
  
  s = (a + b) / 2;
  
  cout << ceil(s) << endl;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before 'cout'
    8 |   y = x%2
      |          ^
      |          ;
    9 |     cout << x + y << 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;
  x = (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 = (A+B)/2
      |   ^
Language: C++

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expression cannot be used as a function
    7 |   cout << int(0.5(a+b)+0.5)<< 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:10: error: 'b' was not declared in this scope
    6 |   int 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:6:16: error: expected ';' before 'cout'
    6 |   x = (A+B+1)/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 ? (a+b+1)/2 : (a+b)/2 << endl;
}

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

#include<iostream>
using namespace std;
int main()
{
  int a,b,c,d;
cin >> a >> b;
  c=a+b;
if(c%2=1) d=(c-1)/2;
else d=c/2;

cout << d <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: lvalue required as left operand of assignment
    8 | if(c%2=1) d=(c-1)/2;
      |    ~^~
Language: C++

#include<stdio.h>
using namespace std;
int main()
{
  int a,b,c,d;
cin >> a >> b;
  c=a+b;
if(c%2=1) d=(c-1)/2;
else d=c/2;

cout << d <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin >> a >> b;
      | ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:5: error: lvalue required as left operand of assignment
    8 | if(c%2=1) d=(c-1)/2;
      |    ~^~
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout << d <<endl;
      | ^~~~
a.cc:11:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:13: error: 'endl' was not declared in this scope
   11 | cout << d <<endl;
      |             ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include<stdio.h>
using namespace std;
int main()
{
  int a,b,c,d;
cin >> a >> b;
  c=a+b;
if(c%2=1) d=(c-1)/2;
else d=c/2

cout << d <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin >> a >> b;
      | ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:5: error: lvalue required as left operand of assignment
    8 | if(c%2=1) d=(c-1)/2;
      |    ~^~
a.cc:9:11: error: expected ';' before 'cout'
    9 | else d=c/2
      |           ^
      |           ;
   10 | 
   11 | cout << d <<endl;
      | ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'a' was not declared in this scope
    4 |   cin >> a >>b
      |          ^
a.cc:4:14: error: 'b' was not declared in this scope
    4 |   cin >> a >>b
      |              ^
a.cc:5:30: error: expected '}' at end of input
    5 |   cout << int((a+b)/2) <<endl
      |                              ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
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:8:11: error: expected primary-expression before '{' token
    8 |   cout << {(a+b)/2}%<< endl;
      |           ^
a.cc:8:20: error: expected primary-expression before '%' token
    8 |   cout << {(a+b)/2}%<< endl;
      |                    ^
a.cc:8:21: error: expected primary-expression before '<<' token
    8 |   cout << {(a+b)/2}%<< endl;
      |                     ^~
Language: C++

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

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

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


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

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

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


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

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

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

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

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

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

Compiler output:
a.cc:4:5: error: expected unqualified-id before ')' token
    4 | int() {
      |     ^
Language: C++

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

double() {
  double a, b, c;
  cin >> a >> b;
  c = (a + b) / 2;
  if (c == 0) {
    cout << c << endl;
  }
  else {
    cout << c + 0.5 << endl;
  }
}
  

Compiler output:
a.cc:4:8: error: expected unqualified-id before ')' token
    4 | double() {
      |        ^
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:12: 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 average;
  average=(a*b+1)/2
    
    cout << average << endl;
}


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

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

int main() {
 int R,G,T;
  cin>>R>>G;
  T=(R+G)/2;
  if(R%2==0 && G%2==0){
    T=T
  }
  else{
    T++
  }
    
  
  cout<<T<<endl;
}
      
    




Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ';' before '}' token
    9 |     T=T
      |        ^
      |        ;
   10 |   }
      |   ~     
a.cc:12:8: error: expected ';' before '}' token
   12 |     T++
      |        ^
      |        ;
   13 |   }
      |   ~
Language: C++

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

int name(){
 int a, b ;
  cin >> a >> b ;
  int x ;
  x = 5 * ( a + b ) ;
  cout << (x+9)/10 <<endl;
}


Compiler output:
a.cc: In function 'int name()':
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int name(){
 int a, b ;
  cin >> a >> b ;
  int x ;
  x = 5*(a+b) ;
  cout << (x+9)/10 <<endl;
}


Compiler output:
a.cc: In function 'int name()':
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int name(){
 int a, b ;
  cin >> a >> b ;
  cout << (5*(a+b)+9)/10 <<endl;
}


Compiler output:
a.cc: In function 'int name()':
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int name(){
 int a, b ;
  cin >> a >> b ;
  double x ;
  x = 5*(a+b) ;
  cout << (x+9)/10 <<endl;
}

Compiler output:
a.cc: In function 'int name()':
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <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:24: error: expected ';' before 'endl'
    7 |   cout << (a + b + 1)/2 endl;
      |                        ^~~~~
      |                        ;
Language: C++

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


Compiler output:
a.cc:10:3: error: expected unqualified-id before 'return'
   10 |   return 0;
      |   ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before '}' token
    8 |   cout << (a+b+1)/2
      |                    ^
      |                    ;
    9 |   }
      |   ~                 
a.cc: At global scope:
a.cc:10:3: error: expected unqualified-id before 'return'
   10 |   return 0;
      |   ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

#include<iostream>
#algorithm
using namespace std;
int main(){
  int a,b,i;
  double ave;
  cin >> a >> b;
  ave=(a+b)/2;
  for(i=0;i<max(a,b);i++){
    if(i>=ave){
      cout << i;
      break;
    }
  }
  return 0;
}
  

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #algorithm
    2 | #algorithm
      |  ^~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:4:5: error: expected unqualified-id before ')' token
    4 | int() main{
      |     ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: lvalue required as left operand of assignment
    7 |   (double)ans = ((double)a + (double)b) / 2.0;
      |   ^~~~~~~~~~~
Language: C++

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

int main() {
  int a, b, Y;
  double y;
  
  cin >> a >> b;
  y = A / B;
  Y = A / B;
  
  if((y-Y) != 0){
    Y = Y + 1;
  }
  
  cout << Y << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'A' was not declared in this scope
    9 |   y = A / B;
      |       ^
a.cc:9:11: error: 'B' was not declared in this scope
    9 |   y = A / B;
      |           ^
Language: C++

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

int main() {
  int a, b, Y;
  double y;
  
  cin >> a >> b;
  y = A / B;
  Y = A / B;
  
  if((y-Y)){
    Y++;
  }
  
  cout << Y << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'A' was not declared in this scope
    9 |   y = A / B;
      |       ^
a.cc:9:11: error: 'B' was not declared in this scope
    9 |   y = A / B;
      |           ^
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: found ':' in nested-name-specifier, expected '::'
    6 |   double b:
      |           ^
      |           ::
a.cc:6:10: error: 'b' has not been declared
    6 |   double b:
      |          ^
a.cc:7:7: error: qualified-id in declaration before '>>' token
    7 |   cin >> a;
      |       ^~
a.cc:8:10: error: 'b' was not declared in this scope
    8 |   cin >> b;
      |          ^
Language: C++

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

int main() {
  int a;
  int b:
  cin >> a;
  cin >> b;
  double c=a;
  double d=b;
  double e =(c+d)/2;
  int f=e;
  cout << f+1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: found ':' in nested-name-specifier, expected '::'
    6 |   int b:
      |        ^
      |        ::
a.cc:6:7: error: 'b' has not been declared
    6 |   int b:
      |       ^
a.cc:7:7: error: qualified-id in declaration before '>>' token
    7 |   cin >> a;
      |       ^~
a.cc:8:10: error: 'b' was not declared in this scope
    8 |   cin >> b;
      |          ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: found ':' in nested-name-specifier, expected '::'
    6 |   int b:
      |        ^
      |        ::
a.cc:6:7: error: 'b' has not been declared
    6 |   int b:
      |       ^
a.cc:7:7: error: qualified-id in declaration before '>>' token
    7 |   cin >> a;
      |       ^~
a.cc:8:10: error: 'b' was not declared in this scope
    8 |   cin >> b;
      |          ^
Language: C++

//g++ -std=gnu++14 a.cpp
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <iostream>
#include <istream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#include <tuple>
#include <iomanip>
#include <random>
#include <math.h>

using namespace std;

#define ll long long
#define rep(i, n) for(ll i = 0; i < (n); i++)
ll MOD = 1e9 + 7;
int INF = 1 << 30;
ll INFL = 1LL << 60;

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

Compiler output:
a.cc:28:5: error: cannot declare '::main' to be a global variable
   28 | int main{
      |     ^~~~
a.cc:29:3: error: expected primary-expression before 'int'
   29 |   int a,b;
      |   ^~~
a.cc:29:3: error: expected '}' before 'int'
a.cc:28:9: note: to match this '{'
   28 | int main{
      |         ^
a.cc:30:3: error: 'cin' does not name a type
   30 |   cin >> a >> b;
      |   ^~~
a.cc:31:15: error: 'a' was not declared in this scope
   31 |   double x = (a+b)/2;
      |               ^
a.cc:31:17: error: 'b' was not declared in this scope
   31 |   double x = (a+b)/2;
      |                 ^
a.cc:32:3: error: 'cout' does not name a type
   32 |   cout << (10*x+5)/10 <<endl;
      |   ^~~~
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int c;
 double a,b;
  c=(a+b)/2+0.9;
  // 変数aで入力を受け取る
  cin >> a >>b;
  cout<<c<<endl
  
}

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

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

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

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

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

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

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

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

int main() {
  int a,b,(a+b)+1/2;

  // 変数aで入力を受け取る
  cin >> a >> b;

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


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

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

int main() {
  int a,b,(a+b+1)/2;

  cin >> a >> b;

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


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

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

int main() {
  int a,b,(a+b)/2;

  cin >> a >> b;

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


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

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

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

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

import java.util.Scanner;

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

Compiler output:
Main.java:7: error: cannot find symbol
    int a = sc.Scanner();
              ^
  symbol:   method Scanner()
  location: variable sc of type Scanner
Main.java:8: error: cannot find symbol
    int b = sc.Scanner();
              ^
  symbol:   method Scanner()
  location: variable sc of type Scanner
2 errors