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

#include <bits/stdc++.h>
#include <math.h>
 
using namespace std;
 
int main() {
int a;
int b;
  int c=2;
  
  1<=a;
  b<=100;
  cin >> a >>b;
  int ave;
  double ans;
  ave = a+b;
  double ceil(double);
  ans = ceil((double)ave/(double)c);
  cout << ans\ << endl;
}

Compiler output:
a.cc:19:14: error: stray '\' in program
   19 |   cout << ans\ << endl;
      |              ^
Language: C++

#include <bits/stdc++.h>
#include <math.h>
 
using namespace std;
 
int main() {
int a;
int b;
  int c=2;
  
  1<=a;
  b<=100;
  cin >> a >>b;
  int ave;
  ave = a+b;
  double ceil(double);
  ans = ceil((double)ave/(double)c);
  cout << ans\ << endl;
}

Compiler output:
a.cc:18:14: error: stray '\' in program
   18 |   cout << ans\ << endl;
      |              ^
a.cc: In function 'int main()':
a.cc:17:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |   ans = ceil((double)ave/(double)c);
      |   ^~~
      |   abs
Language: C++

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

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


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

#include <iostream>
using namespace std;
 
int main() {
    int a, b;
    cin >> a >> b;
    double f = (a + b) / 2.0;
    int ans = ceil(f);
    cout << ans << endl;
}

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

#include <iostream>
using namespace std;
 
int main() {
    int a, b;
    cin >> a >> b;
    float f = (a + b) / 2.0;
    int ans = ceil(f);
    cout << ans << endl;
}

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

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


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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'if'
    7 |   if ((a + b) % 2 == 0);
      |   ^~
a.cc:8:13: error: expected primary-expression before 'int'
    8 |     cout << int x << endl;
      |             ^~~
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else;
      |   ^~~~
a.cc:10:13: error: expected primary-expression before 'int'
   10 |     cout << int x + 1 << endl;
      |             ^~~
Language: Java

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.nextLine().toCharArray();
		char[] t = sc.nextLine().toCharArray();
        Arrays.sort(s);
        Arrays.sort(t);

        StringBuilder revercseT = new StringBuilder();
		revercseT.append(t);
        revercseT.reverse();

        System.out.println(String.valueOf(s).compareTo(revercseT.toString()) < 0 ? "Yes" : "No");
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
        Arrays.sort(s);
        ^
  symbol:   variable Arrays
  location: class Main
Main.java:8: error: cannot find symbol
        Arrays.sort(t);
        ^
  symbol:   variable Arrays
  location: class Main
4 errors
Language: C++

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


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

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


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

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


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

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

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

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

int main() {
  float a, b;
  cin >> a >> b;
  cout << ceil(mean(a, b)) << endl;
}


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

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

int main() {
  float a, b;
  cin >> a >> b;
  cout << ceil(ave(a, b)) << endl;
}


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

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a, b;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> a >> b;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << (a+b)/2 +1;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

int a,b;

cin >> a >> b;
cout << (a+b)/2+1;


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

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

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


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

#include <bits/stdc++.h>
using namespace std;
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:4:1: error: 'cin' does not name a type
    4 | cin >> a >> b;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if((a+b)%2==0) {
      | ^~
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else {
      | ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'cin'
    7 |   x = (a+b)/2
      |              ^
      |              ;
    8 |   cin >> a, b;
      |   ~~~         
a.cc:9:21: error: expected '}' at end of input
    9 |   cout << x << endl;
      |                     ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'cin'
    7 |   x = (a+b)/2
      |              ^
      |              ;
    8 |   cin >> a >> b;
      |   ~~~         
a.cc:9:21: error: expected '}' at end of input
    9 |   cout << x << endl;
      |                     ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'ceil' was not declared in this scope
    6 |   cout << ceil(a+b/2) << "\n";
      |           ^~~~
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:5:10: error: found ':' in nested-name-specifier, expected '::'
    5 |   int a,b:
      |          ^
      |          ::
a.cc:5:9: error: 'b' has not been declared
    5 |   int a,b:
      |         ^
a.cc:6:7: error: qualified-id in declaration before '>>' token
    6 |   cin >> a >> b;
      |       ^~
a.cc:7:12: error: 'b' was not declared in this scope
    7 |   if ((a + b) % 2 == 0)
      |            ^
Language: C++

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

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


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

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

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


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

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


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

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


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

#include <bits/stdc++.h>
using namespace std;
void test(double x)
{
  std::feclearexcept(FE_ALL_EXCEPT);
  std::cout << "ceil(" << x << ") = " << std::ceil(x) << '\n';
  std::cout << "FE_INEXACT = " << std::boolalpha << (std::fetestexcept(FE_INEXACT) != 0) << "\n\n";
}
int main() {
  // ここにプログラムを追記
  int a,b;
  cin >> a >> b;
  count << test((a+b)/2) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: invalid operands of types '<unresolved overloaded function type>' and 'void' to binary 'operator<<'
   13 |   count << test((a+b)/2) << endl;
      |   ~~~~~~^~~~~~~~~~~~~~~~
Language: C++

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

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

#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <vector>

using namespace std;

int main() {
    int a, b;

    cin >> a >> b;

    cout << ceil((double) (a + b) / 2) << endl;
    return 0;
}

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

#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <vector>

using namespace std;

int main() {
    int a, b;

    cin >> a >> b;

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: expected ';' before 'if'
    7 |         ave = (a + b) /2
      |                         ^
      |                         ;
    8 |         if((a + b) % 2 > 0)
      |         ~~               
a.cc:10:9: error: 'else' without a previous 'if'
   10 |         else
      |         ^~~~
Language: C++

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


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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: unable to find numeric literal operator 'operator""a'
    7 |   a = 2a
      |       ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (int)'
    7 |   cout (a+b+1)/2
      |   ~~~~~^~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before 'cout'
    7 |   l = (n+m)/2+0.9999
      |                     ^
      |                     ;
    8 |   cout << l <<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:18: 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 endl;
  cout << (A+B+1)/2 << endl;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'end1' was not declared in this scope
    8 |   cout << c+1 << end1;
      |                  ^~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin >> a >> b ;
      |     ^~~
a.cc:7:3: error: 'c' was not declared in this scope
    7 |   c = a + b + 1 - (a % b) ;
      |   ^
a.cc:8:16: error: 'end1' was not declared in this scope
    8 |   cout << c << end1;
      |                ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin >> a >> b ;
      |     ^~~
a.cc:7:3: error: 'c' was not declared in this scope
    7 |   c = a + b + 1 - a % b ;
      |   ^
a.cc:8:16: error: 'end1' was not declared in this scope
    8 |   cout << c << end1;
      |                ^~~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected primary-expression before ',' token
    5 |   int a,b;,x;
      |           ^
a.cc:5:12: error: 'x' was not declared in this scope
    5 |   int a,b;,x;
      |            ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:4:1: error: 'sigend' does not name a type; did you mean 'signed'?
    4 | sigend main(){
      | ^~~~~~
      | signed
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:49: error: redeclaration of 'int b'
    2 | using namespace std;int main(){int a, b = 0;int b = 0;cin >> a >> b;cout << (a + b + 1) / 2 << endl;}
      |                                                 ^
a.cc:2:39: note: 'int b' previously declared here
    2 | using namespace std;int main(){int a, b = 0;int b = 0;cin >> a >> b;cout << (a + b + 1) / 2 << endl;}
      |                                       ^
Language: C++

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

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


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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'x' was not declared in this scope
    7 |   cout<<x=(a+b+1)/2<<endl;
      |         ^
a.cc:7:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout<<x=(a+b+1)/2<<endl;
      |           ~~~~~~~~~^~~~~~
a.cc:7:27: error: expected '}' at end of input
    7 |   cout<<x=(a+b+1)/2<<endl;
      |                           ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: 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;
  int c = (a + b + 1)/2;
  cout << c << endl;
  /*if(b <= a) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc:8:3: error: unterminated comment
    8 |   /*if(b <= a) cout << "Yes" << endl;
      |   ^
a.cc: In function 'int main()':
a.cc:7:21: error: expected '}' at end of input
    7 |   cout << c << endl;
      |                     ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++


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

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected initializer before 'x'
    9 |         int answer x / 1;
      |                    ^
a.cc:10:17: error: 'answer' was not declared in this scope
   10 |         cout << answer << endl;
      |                 ^~~~~~
Language: C++


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ',' or ';' before 'int'
    9 |         int answer x / 1;
      |         ^~~
a.cc:10:17: error: 'answer' was not declared in this scope
   10 |         cout << answer << endl;
      |                 ^~~~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'while'
   10 |   while(c > 0){
      |   ^~~~~
Language: C++

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

int main() {
  int a,b;
  double x
  cin >> a >> b;
  x = (a + b)/2;
  cout << x + 0.9 <<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: 'x' was not declared in this scope
    8 |   x = (a + b)/2;
      |   ^
Language: C++

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

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

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

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

int main() {
  int a,b,x;
  cin >> a >> b;
  x = (a + b + 1)*0.5
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before '}' token
    7 |   x = (a + b + 1)*0.5
      |                      ^
      |                      ;
    8 | }
      | ~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected '(' before 'mod'
    8 |         if mod <= 0.4) {
      |            ^~~
      |            (
a.cc:10:7: error: 'else' without a previous 'if'
   10 |     } else if (mod >= 0.5) {
      |       ^~~~
Language: C++

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: lvalue required as left operand of assignment
    7 |   if ( (a+b) % 2 = 0 ){
      |        ~~~~~~^~~
a.cc:8:24: error: 'endle' was not declared in this scope
    8 |     cout << (a+b)/2 << endle;
      |                        ^~~~~
a.cc:11:26: error: 'endle' was not declared in this scope
   11 |     cout << (a+b+1)/2 << endle;
      |                          ^~~~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: lvalue required as left operand of assignment
    9 |   c / 2 = d;
      |   ~~^~~
a.cc:10:7: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   10 |   if(c%2>=1){
      |      ~^~
      |      | |
      |      | int
      |      double
Language: C++

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

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


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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before 'cout'
   10 |   x = (a + b) / 2
      |                  ^
      |                  ;
   11 |   cout << x << endl;
      |   ~~~~            
a.cc:11:21: error: expected '}' at end of input
   11 |   cout << x << endl;
      |                     ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: expected ';' before 'cout'
   13 |   d=c
      |      ^
      |      ;
   14 | 
   15 |   cout << d << endl;
      |   ~~~~
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int input_a;
  int input_b;
  cin >> input_a;
  cin >> input_b;
  float output_float = (float)((input_a + input_b)/2);
  int output_int = (int)output_float
  cout << output_int << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'cout'
   11 |   cout << output_int << 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:7:36: error: expected ';' before '}' token
    7 |   cout << (a + b) / 2 + (a + b) % 2
      |                                    ^
      |                                    ;
    8 |   }
      |   ~
Language: C++

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    8 |   if(heikin%10.0 == 0)cout << (int)heikin << endl;
      |      ~~~~~~^~~~~
      |      |      |
      |      double double
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 |   if(heikin%10 == 0)cout << (int)heikin << endl;
      |      ~~~~~~^~~
      |      |      |
      |      double int
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before '}' token
    7 |   cout << (n + a + 1) / 2
      |                          ^
      |                          ;
    8 | }
      | ~
Language: C++

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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

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

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

int main() {
  // ここにプログラムを追記
  double R, G;
  cin >> R >> G;
  cout << (R + G)/2 + (R + G) % 1 << endl;
}

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

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

int main() {
  // ここにプログラムを追記
  double R, G;
  cin >> R >> G;
  cout << (R + G)/2 % 1 << endl;
}

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

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

int main() {

  int a,b,c,x ;

  x=(a+b)/2 ;
  c=(a+b)%2 ;
  
  if(C>0){
    cout << x+1 ;
  }
  else{
    cout << x;
  }
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'C' was not declared in this scope
   11 |   if(C>0){
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected primary-expression before 'double'
    8 |   c=double a;
      |     ^~~~~~
a.cc:9:5: error: expected primary-expression before 'double'
    9 |   d=double b;
      |     ^~~~~~
a.cc:11:5: error: expected primary-expression before 'int'
   11 |   f=int e;
      |     ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'c' was not declared in this scope
    7 |   c=double a;
      |   ^
a.cc:7:5: error: expected primary-expression before 'double'
    7 |   c=double a;
      |     ^~~~~~
a.cc:8:3: error: 'd' was not declared in this scope
    8 |   d=double b;
      |   ^
a.cc:8:5: error: expected primary-expression before 'double'
    8 |   d=double b;
      |     ^~~~~~
a.cc:9:3: error: 'e' was not declared in this scope
    9 |   e=((a+b)/2)+0.5;
      |   ^
a.cc:10:3: error: 'f' was not declared in this scope
   10 |   f=int e;
      |   ^
a.cc:10:5: error: expected primary-expression before 'int'
   10 |   f=int e;
      |     ^~~