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+1)%2;
}

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

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

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

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

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

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

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

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

int main() {
int a,b,x;

cin>>a>>b;

x=(a+b)/2;

if(x%1!=0){
x++;
cout<<x;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
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;
  cin >> b;
  int answer;
  int r = (a + b) % 2;
  if (r == 0) {
    answer = r
  } else {
   	answer = r + 1 
  }
  cout << r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected ';' before '}' token
   11 |     answer = r
      |               ^
      |               ;
   12 |   } else {
      |   ~            
a.cc:13:23: error: expected ';' before '}' token
   13 |         answer = r + 1
      |                       ^
      |                       ;
   14 |   }
      |   ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'doouble' was not declared in this scope; did you mean 'double'?
    5 |   doouble a, b, c;
      |   ^~~~~~~
      |   double
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b;
      |               ^
a.cc:7:3: error: 'c' was not declared in this scope
    7 |   c = ceil((a + b)/2);
      |   ^
Language: C++

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

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

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

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

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

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

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

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


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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: expected unqualified-id before 'xor_eq' token
    4 |     int a, b, xor_eq;
      |               ^~~~~~
a.cc:7:9: error: 'x' was not declared in this scope
    7 |         x = (a + b) / 2;
      |         ^
a.cc:8:17: error: 'x' was not declared in this scope
    8 |         cout << x << endl;
      |                 ^
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else
      |     ^~~~
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:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

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

int main() {

  int a,b;
  cin >> a >> b;
  cout << (a + b - 1) + 1 << endl;
}


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

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

int main() {

  int a,b;
  cin >> a >> b;
  cout << (a + b - 1) + 1 << endl
}


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

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'cout'
   10 |   x = c + 2*d
      |              ^
      |              ;
   11 |   cout << x << endl;
      |   ~~~~
Language: C

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

int main(){

    int a, b;

    cin >> a >> b;

    //　小数点切り上げ　//

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

    return 0;
}

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

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

int main()
{
  double a;
  double b;
  int div1;
  double div2;
  int mod;
  
  cin >> a >> b;
  div1 = a / b;
  div2 = a / b;
  mod = div2 % div1;
  if(mod >= 0.5)
  {
    div1 += 1;
  }
  cout << div1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   15 |   mod = div2 % div1;
      |         ~~~~ ^ ~~~~
      |         |      |
      |         double int
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  float a;
  float b;
  float ave;
  int i_ave;
  // 変数aで入力を受け取る
  cin >> a >> b;
  ab = a+b;
  ave = (a+b)/2.0;
  i_ave = ave; 
  
  cout << i_ave+(ab % 2) * (ab % 2) << endl;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else;
      |         ^~~~
Language: C++

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

int main(){
  int a, b;
  cin >> a >> b;
  if ((int((a + b) /2)) %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:29: error: expected primary-expression before '==' token
    7 |   if ((int((a + b) /2)) %2) == 0{
      |                             ^~
Language: C++

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

Compiler output:
a.cc:11:2: error: 'f' does not name a type
   11 | }f
      |  ^
Language: C++

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

Compiler output:
a.cc:10:2: error: 'f' does not name a type
   10 | }f
      |  ^
Language: C++

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

Compiler output:
a.cc:10:2: error: 'f' does not name a type
   10 | }f
      |  ^
Language: C++

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

Compiler output:
a.cc:10:2: error: 'f' does not name a type
   10 | }f
      |  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:43: error: expected ',' or ';' before ')' token
    8 |   double x = ((a + b) / 2) + ((a + b) % 2));
      |                                           ^
a.cc: At global scope:
a.cc:10:2: error: 'f' does not name a type
   10 | }f
      |  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:61: error: expected ',' or ';' before ')' token
    8 |   double x = ((a + b) / 2) + ((a + b) % 2) + (1-(a + b) % 2));
      |                                                             ^
a.cc: At global scope:
a.cc:10:2: error: 'f' does not name a type
   10 | }f
      |  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:58: error: expected ',' or ';' before ')' token
    8 |   int x = ((a + b) / 2) + ((a + b) % 2) + (1-(a + b) % 2));
      |                                                          ^
a.cc: At global scope:
a.cc:10:2: error: 'f' does not name a type
   10 | }f
      |  ^
Language: C++

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

Compiler output:
a.cc:10:2: error: 'f' does not name a type
   10 | }f
      |  ^
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:7:16: error: expected primary-expression before '%' token
    7 |   if ( a + b ) % 2 = 0:
      |                ^
Language: C++

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

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

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

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

#include<iostream>

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

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

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

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

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

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

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

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

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

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

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

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


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

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:24: error: expected primary-expression before '<<' token
    6 |   cout << (a + b) / 2; << endl;
      |                        ^~
Language: C++

1. #include <bits/stdc++.h>
2. using namespace std;
3.  
4. int main() {
5. //　宣言
6.   double a = 0,b = 0,c = 0.1;
7.   int x = 0;
8.   
9.  
10. //入力    
11.    cin >> a >> b;
12.     
13. //処理
14.    x = ((a + b) / 2) - c;
15.   
16. //出力
17.   cout << x + 1 << endl;
18. }

Compiler output:
a.cc:1:4: error: stray '#' in program
    1 | 1. #include <bits/stdc++.h>
      |    ^
a.cc:9:4: error: extended character   is not valid in an identifier
    9 | 9.  
      |    ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1. #include <bits/stdc++.h>
      | ^~
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3.
      | ^~
Language: C

#include <bits/stdc++.h>
using namespace std;
 
int main() {
//　宣言
  double a = 0,b = 0,c = 0.000001;
  int x = 0;
  
 
//入力    
   cin >> a >> b;
    
//処理
   x = ((a + b) / 2) - c;
  
//出力
  cout << x + 1 << endl;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'inc' was not declared in this scope; did you mean 'int'?
    8 |   inc c = a + b;
      |   ^~~
      |   int
a.cc:9:12: error: 'c' was not declared in this scope
    9 |   cout << (c + 1) / 2 << endl;
      |            ^
Language: C++

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

int main(){
	int a,b;
  	cin >> a >> b;
  	return round((a+b)/2);
}


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

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

int main() {
  int a, b;

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected primary-expression before '{' token
   10 |   cout <<{ (a+b+1)/2}*2 << endl;
      |          ^
a.cc:10:22: error: invalid type argument of unary '*' (have 'int')
   10 |   cout <<{ (a+b+1)/2}*2 << endl;
      |                      ^~
Language: C++

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

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

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

int main() {
  int a, b,iavg,avg;
  double davg;
  cin>>a;
  cin>>b;
  iavg=(a+b)/2;
  d=((a+b)/2)-iavg;
  avg=d*2+iavg;
  cout<<avg<<endl;
  
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before 'cout'
   11 |   avg=2*davg-iavg
      |                  ^
      |                  ;
   12 |   cout<<avg<<endl;
      |   ~~~~
Language: C++

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

int main(){
	int a,b,iavg,avg;
  	double davg;
  	cin>>a;
  	cin>>b;
  	davg = (a+b)/2;
  	iavg = davg;
  	avg=2*davg-iabg;
  	cout<<avg<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'iabg' was not declared in this scope; did you mean 'iavg'?
   11 |         avg=2*davg-iabg;
      |                    ^~~~
      |                    iavg
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before 'if'
    9 |     c=(a+b)
      |            ^
      |            ;
   10 | 
   11 |    if (c%2==0) {
      |    ~~       
a.cc:15:4: error: 'else' without a previous 'if'
   15 |    else {
      |    ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |    if (c%1==0) {
      |        ~^~
      |        | |
      |        | int
      |        double
a.cc:16:18: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |      cout << c-(c%1)+1 <, endl;
      |                 ~^~
      |                 | |
      |                 | int
      |                 double
a.cc:16:25: error: expected primary-expression before ',' token
   16 |      cout << c-(c%1)+1 <, endl;
      |                         ^
Language: C++

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


Compiler output:
a.cc:2:17: error: 'stdl' is not a namespace-name
    2 | using namespace stdl;
      |                 ^~~~
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:11:9: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |    if (c%1==0) {
      |        ~^~
      |        | |
      |        | int
      |        double
a.cc:12:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |      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:12:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |      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)
      |     ^~~~
a.cc:16:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |      cout << c-(c%1)+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:16:18: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |      cout << c-(c%1)+1 <, endl;
      |                 ~^~
      |                 | |
      |                 | int
      |                 double
a.cc:16:25: error: expected primary-expression before ',' token
   16 |      cout << c-(c%1)+1 <, endl;
      |                         ^
a.cc:16:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |      cout << c-(c%1)+1 <, 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 stdl;
  
  int main () {
  double a, b;
  cin >> a >> b;
    
  double c;
    c=(a+b)/2
      
   if (c%1==0) {
     cout << c << endl;
   }
      
   else {
     cout << c-(c%1)+1 <, endl;
   }
  }
  

Compiler output:
a.cc:2:17: error: 'stdl' is not a namespace-name
    2 | using namespace stdl;
      |                 ^~~~
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:9:14: error: expected ';' before 'if'
    9 |     c=(a+b)/2
      |              ^
      |              ;
   10 | 
   11 |    if (c%1==0) {
      |    ~~         
a.cc:15:4: error: 'else' without a previous 'if'
   15 |    else {
      |    ^~~~
a.cc:16:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |      cout << c-(c%1)+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:16:18: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |      cout << c-(c%1)+1 <, endl;
      |                 ~^~
      |                 | |
      |                 | int
      |                 double
a.cc:16:25: error: expected primary-expression before ',' token
   16 |      cout << c-(c%1)+1 <, endl;
      |                         ^
a.cc:16:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |      cout << c-(c%1)+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: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  // ここにプログラムを追記
  int a,b;
  cin >> a >> b;
  double c = ceil((a + b) /2)
  cout <<  c<<endl;
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  // ここにプログラムを追記
  int a,b;
  cin >> a >> b;
  double c = celi((a + b) /2)
  cout <<  c<<endl;
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  // ここにプログラムを追記
  int a,b;
  cin >> a >> b;
  
  cout << celi((a + b - 1) / b) <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'celi' was not declared in this scope; did you mean 'ceil'?
    9 |   cout << celi((a + b - 1) / b) <<endl;
      |           ^~~~
      |           ceil
Language: C++

#include <iostream>
using namespace std;

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

    if(c%0.5 == 0){
      cout<<c;
    }
  cout<<c+1;
}

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

#include <iostream>
using namespace std;

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

    if(c%0.5 == 0){
      cout<<c;
    }
  cout<<c+1;
}

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

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <map>
using namespace std;
using ll = long long;
#define rep(i, j, n) for(int i = (j); i < (n); ++i)
#define rrep(i, j, n) for(int i = (n) - 1; (j) <= i; --i)


constexpr ll MOD = 1000000007;
constexpr ll INF = 1LL << 60;


int main() {
	cin.tie(0);
	ios_base::sync_with_stdio(0);

	double a, b; cin >> a >> b;
	decltype(a) c = (a + b) / 2.0;
	cout << (int)ceil(c) << endl;

	return 0;
}

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

import java.util.Scanner;
//import java.util.Arrays;
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((a + b) % 2 == 0 ? (a + b) / 2 : (a + b) / 2 + 1);
	}
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ')' before ';' token
    8 |   x = (a + (b-1) / b;
      |       ~             ^
      |                     )
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:8:3: error: 'x' was not declared in this scope
    8 |   x = a * b / 2;
      |   ^
Language: C

#include <stdio.h>

int main(void)
{
        int a,b,c;
        double s;
        scanf("%d%d",&a,&b);
        s=(a+b)/2;
        c=(int)s;
        if(s%c==0)printf("%d\n",c);
        else printf("%d\n",c+1);
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:13: error: invalid operands to binary % (have 'double' and 'int')
   10 |         if(s%c==0)printf("%d\n",c);
      |             ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   10 |   if((a + b) % 2.0 == 1.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.0;
  
  if((a + b) % 2 == 1){
    c = c + 1.0;
  } 
  
  cout << c << 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((a + b) % 2 == 1){
      |      ~~~~~~~ ^ ~
      |         |      |
      |         double int
Language: C++

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

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


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

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

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


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

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

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


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

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

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


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a=0,b=101;
  int x=0;
  cin >> a >> b;
  if(a<1||100<b) cout << "入力エラー(制約 : 1≦a, b≦100)" << endl;
  else{
    x = ((((a+b)/2.0)-((a+b)/2))*10)/(((a+b)/2.0)-((a+b)/2))*10))+((a+b)/2);
    cout << x << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:64: error: expected ';' before ')' token
    9 |     x = ((((a+b)/2.0)-((a+b)/2))*10)/(((a+b)/2.0)-((a+b)/2))*10))+((a+b)/2);
      |                                                                ^
      |                                                                ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a=0, b=101, x=0;
  int c=0;
  cin >> a >> b;
  if(a<1||100<b) cout << "入力エラー(制約 : 1≦a, b≦100)" << endl;
  else{
    c = (a+b)%2;
    x = (a+b)/2;
    if(0<c) x = x+1;
    cout << x << endl;
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a=0, b=101, x=0;
  int c=0;
  cin >> a >> b;
  if(a<1||b<101) cout << "入力エラー(制約 : 1≦a, b≦100)" << endl;
  else{
    c = (a+b)%2;
    x = (a+b)/2;
    if(0<c) x = x+1;
    cout << x << endl;
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a=0, b=101, x=0;
  int c=0;
  cin >> a >> b;
  if(a<1||b<101) cout << "入力エラー(制約 : 1≦a, b≦100)" << endl;
  else{
    c = (a+b)%2;
    x = (a+b)/2
    if(0<c) x = x+1;
    cout << x << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'if'
   10 |     x = (a+b)/2
      |                ^
      |                ;
   11 |     if(0<c) x = x+1;
      |     ~~          
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a=0, b=101, x=0;
  int c=0;
  cin >> a >> b;
  if(a<1||b<101) cout << "入力エラー(制約 : 1≦a, b≦100)" << endl;
  else{
    c = (a+b)%2;
    x = (a+b)/2
    if(0<c) x = x+1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'if'
   10 |     x = (a+b)/2
      |                ^
      |                ;
   11 |     if(0<c) x = x+1;
      |     ~~          
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a=0,b=101;
  int c=0,x=0;
  cin >> a >> b;
  if(a<1||b<101) cout << "入力エラー(制約 : 1≦a, b≦100)" << endl;
  else{
    x = (a+b)/2;
    c = (((a+b)/2.0) - x*10;
    if(0<c) x = x+1;
    cout << x << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: expected ')' before ';' token
   10 |     c = (((a+b)/2.0) - x*10;
      |         ~                  ^
      |                            )
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a=0,b=101;
  int x=0;
  cin >> a >> b;
  if(a<1||b<101) cout << "入力エラー(制約 : 1≦a, b≦100)" << endl;
  else{
    x = ((((a+b)/2.0)-((a+b)/2))*10)/(((a+b)/2.0)-((a+b)/2))*10))+((a+b)/2);
    cout << x << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:64: error: expected ';' before ')' token
    9 |     x = ((((a+b)/2.0)-((a+b)/2))*10)/(((a+b)/2.0)-((a+b)/2))*10))+((a+b)/2);
      |                                                                ^
      |                                                                ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a=0,b=101;
  int x=0;
  cin >> a >> b;
  if(a<1||b<101) cout << "入力エラー(制約 : 1≦a, b≦100)" << endl;
  else{
    x = ((((a+b)/2.0)-((a+b)/2))*10)/(((a+b)/2.0)-((a+b)/2))*10))+((a+b)/2)
    cout << x << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:64: error: expected ';' before ')' token
    9 |     x = ((((a+b)/2.0)-((a+b)/2))*10)/(((a+b)/2.0)-((a+b)/2))*10))+((a+b)/2)
      |                                                                ^
      |                                                                ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: 'x' was not declared in this scope
   18 |   cout << x << endl;
      |           ^
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int ans = (a+b)/2;
    System,out.println((a+b)%2==0 ? ans : ans+1);
  }
}


Compiler output:
Main.java:9: error: not a statement
    System,out.println((a+b)%2==0 ? ans : ans+1);
    ^
Main.java:9: error: ';' expected
    System,out.println((a+b)%2==0 ? ans : ans+1);
          ^
2 errors
Language: Java

import java.util.*;

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


Compiler output:
Main.java:8: error: ';' expected
    int ans = (a+b)/2
                     ^
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int ans = (a+b)/2
    System,out.println((a+b)%2==0 ? ans : ans+1);
  }
}

Compiler output:
Main.java:8: error: ';' expected
    int ans = (a+b)/2
                     ^
Main.java:9: error: not a statement
    System,out.println((a+b)%2==0 ? ans : ans+1);
    ^
Main.java:9: error: ';' expected
    System,out.println((a+b)%2==0 ? ans : ans+1);
          ^
3 errors
Language: C++

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

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

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

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

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


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

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'cout'
   11 |   cout << ceil(mean) << 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:19: error: expected primary-expression before '<<' token
    7 |   cout<<(a+b+1)/2;<<endl;
      |                   ^~
Language: C++

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

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


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

#include <iostream>
#include <map>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>

using namespace std;

int M[][] = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}};

bool f(string s, int i, int N, int x, int y, int _x, int _y, int direction) {
  while (i < N && s[i] == 'F') {
    _x += M[direction][0];
    _y += M[direction][1];
    ++i;
  }
  if (i >= N) {
    return _x == x && _y == y;
  } else {
    bool res0 = f(s, i + 1, N, x, y, _x, _y, (direction + 1) % 4);
    bool res1 = f(s, i + 1, N, x, y, _x, _y, (direction + 3) % 4);
    return res0 || res1;
  }
}

int main() {
  string s;
  cin >> s;
  int x, y;
  cin >> x >> y;

  if (f(s, 0, s.size(), x, y, 0, 0, 0)) {
    printf("Yes\n");
  } else {
    printf("No\n");
  }
}


Compiler output:
a.cc:10:5: error: declaration of 'M' as multidimensional array must have bounds for all dimensions except the first
   10 | int M[][] = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}};
      |     ^
a.cc: In function 'bool f(std::string, int, int, int, int, int, int, int)':
a.cc:14:11: error: 'M' was not declared in this scope
   14 |     _x += M[direction][0];
      |           ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'a' was not declared in this scope
    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, B, C, D, E;
    cin >> A >> B;
    int ans =( A + B + 1)/2;
    cout << ans << endl;

    return 0;
}5

Compiler output:
a.cc:12:2: error: expected unqualified-id before numeric constant
   12 | }5
      |  ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'y' was not declared in this scope
    7 |   ans = (a+b-1)/y;
      |                 ^
Language: C++

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'doudle' was not declared in this scope; did you mean 'double'?
    7 |   doudle x = (a + b) / 2
      |   ^~~~~~
      |   double
a.cc:9:11: error: 'x' was not declared in this scope
    9 |   cout << x << endl;
      |           ^