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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: a function-definition is not allowed here before '{' token
    4 |   int main(void){
      |                 ^
a.cc:9:2: error: expected '}' at end of input
    9 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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

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

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

int main() {
  int x;
  double a, b;
  cin >> a >> b;
  x = (a+b)/2
  cout << x+1 << 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+1 << endl;
      |   ~~~~
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:7:12: error: expected identifier before '(' token
    7 |   cout << [(a + b) / 2] << endl;
      |            ^
a.cc: In lambda function:
a.cc:7:25: error: expected '{' before '<<' token
    7 |   cout << [(a + b) / 2] << endl;
      |                         ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'seil' was not declared in this scope; did you mean 'ceil'?
    7 |   cout << seil(a + b) / 2  << endl;
      |           ^~~~
      |           ceil
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:7:16: error: extended character 　 is not valid in an identifier
    7 |   cout << (a + b　- 1) / 2  << endl;
      |                ^
a.cc: In function 'int main()':
a.cc:7:16: error: 'b\U00003000' 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)　<< endl;
}


Compiler output:
a.cc:7:22: error: extended character 　 is not valid in an identifier
    7 |   cout << (a * b / 2)　<< endl;
      |                      ^
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before '\U00003000'
    7 |   cout << (a * b / 2)　<< endl;
      |                      ^~
      |                      ;
Language: C++

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

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


Compiler output:
a.cc:7:25: error: extended character 　 is not valid in an identifier
    7 |   cout << (a * b / 2) + 1　<< endl;
      |                         ^
a.cc: In function 'int main()':
a.cc:7:25: error: unable to find numeric literal operator 'operator""\U00003000'
    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 << (a * b / 2) + 1　<< endl;
}


Compiler output:
a.cc:7:25: error: extended character 　 is not valid in an identifier
    7 |   cout << (a * b / 2) + 1　<< endl;
      |                         ^
a.cc: In function 'int main()':
a.cc:7:25: error: unable to find numeric literal operator 'operator""\U00003000'
    7 |   cout << (a * b / 2) + 1　<< endl;
      |                         ^~~
Language: C++

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

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

    int x = (a+b)/2;

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


}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: break statement not within loop or switch
   14 |         break;
      |         ^~~~~
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:34: error: expected ';' before '}' token
    7 |     cout << (a + b + 1)/2 << endl
      |                                  ^
      |                                  ;
    8 | }
      | ~
Language: C++

using namespace std;
 
int main() 
{
  int a,b,x;
  double c,d;
  cin >> a >> b;
  x = (a + b)/2;
  c = (a + b) % 2;
  if(c = 0){
    cout << x + d << endl;
  }else{
    cout << x << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a >> b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << x + d << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |     cout << x + d << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << x << endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:18: error: 'endl' was not declared in this scope
   13 |     cout << x << endl;
      |                  ^~~~
a.cc:13:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
using namespace std;

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

	cout << ave<< endl;

}


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

#include <iostream>
using namespace std;

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

	cout << ave<< endl;

}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: expected '}' at end of input
   11 |     cout << c +1 <<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;
  double x;
  cin >> a >> b;
  x=(a+b)/2
  int x;
  cout << x << endl;
}


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

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

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



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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected ';' before '}' token
   13 |         a = a + 1
      |                  ^
      |                  ;
   14 |   }
      |   ~
Language: C++

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: lvalue required as left operand of assignment
    7 |   if((x+y)%2=0){
      |      ~~~~~^~
a.cc:10:11: error: lvalue required as left operand of assignment
   10 |   if((x+y)%2=1){
      |      ~~~~~^~
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:8:14: error: lvalue required as left operand of assignment
    8 |   if((a + b) % 2 = 0){
      |      ~~~~~~~~^~~
a.cc:11:36: error: expected ';' before ':' token
   11 |     cout << (a + b) / 2 + 1 << endl:
      |                                    ^
      |                                    ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'B' was not declared in this scope
    8 |   ans=(a+B)/2
      |          ^
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else{cout<<ans<<endl;}
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans=(a+B)/2
      |   ^~~
      |   abs
a.cc:7:10: error: 'B' was not declared in this scope
    7 |   ans=(a+B)/2
      |          ^
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else{cout<<ans<<endl;}
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans=(a+B)/2
      |   ^~~
      |   abs
a.cc:7:10: error: 'B' was not declared in this scope
    7 |   ans=(a+B)/2
      |          ^
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else{cout<<ans<<endl;}
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans==(a+B)/2
      |   ^~~
      |   abs
a.cc:7:11: error: 'B' was not declared in this scope
    7 |   ans==(a+B)/2
      |           ^
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else{cout<<ans<<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+1<<endl;
}
  else{cout<<(a+b)/2<<endl;}
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ')' before '!' token
    7 |   if((a+b/2)!%0)
      |     ~       ^
      |             )
a.cc:10:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |   else{cout<<(a+b)?2<<endl;}
      |                    ~^~~~~~
a.cc:10:27: error: expected ':' before ';' token
   10 |   else{cout<<(a+b)?2<<endl;}
      |                           ^
      |                           :
a.cc:10:27: error: expected primary-expression before ';' token
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: warning: division by zero [-Wdiv-by-zero]
    7 |   if(!(a+b/2)%0)
      |      ~~~~~~~~^~
a.cc:10:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |   else{cout<<(a+b)?2<<endl;}
      |                    ~^~~~~~
a.cc:10:27: error: expected ':' before ';' token
   10 |   else{cout<<(a+b)?2<<endl;}
      |                           ^
      |                           :
a.cc:10:27: error: expected primary-expression before ';' token
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:7:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    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<<(a*b)/2+=1<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    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<<(a+b)/2<,endl;
}


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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a>>b;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout<<N<<endl;
      |   ^~~~
a.cc:10:12: error: 'endl' was not declared in this scope
   10 |   cout<<N<<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:1:23: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++>h>
      |                       ^
a.cc:1:9: fatal error: bits/stdc++>: No such file or directory
    1 | #include<bits/stdc++>h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> a >> b;
      |     ^~~
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout << (a + b) / 2 + ((a + b) % 2 != 0) << endl;
      |     ^~~~
a.cc:5:49: error: 'endl' was not declared in this scope
    5 |     cout << (a + b) / 2 + ((a + b) % 2 != 0) << endl;
      |                                                 ^~~~
Language: C++

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

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


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

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

int main(){
  int a,b;
  cin >> a >> b;
  
  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: 'x' was not declared in this scope
    9 |     x = (a+b)/2;
      |     ^
a.cc:12:5: error: 'x' was not declared in this scope
   12 |     x = (a+b)/2 +1;
      |     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:43: error: expected '}' at end of input
    7 |   cout << (n%2)*((n+1)/2) + !(n%2)*(n/2) ;
      |                                           ^
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;
  cout << (a + b + 1) / 2
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 ==1  &&  b%2==1){
      |      ~^~
      |      | |
      |      | int
      |      double
a.cc:6:20: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 ==1  &&  b%2==1){
      |                   ~^~
      |                   | |
      |                   | int
      |                   double
a.cc:8:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2==0  &&  b%2==0) {
      |          ~^~
      |          | |
      |          | int
      |          double
a.cc:8:23: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2==0  &&  b%2==0) {
      |                      ~^~
      |                      | |
      |                      | int
      |                      double
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 ==1  &&  b%2==1){
      |      ~^~
      |      | |
      |      | int
      |      double
a.cc:6:20: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 ==1  &&  b%2==1){
      |                   ~^~
      |                   | |
      |                   | int
      |                   double
a.cc:8:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2==0 && b%2==0) {
      |          ~^~
      |          | |
      |          | int
      |          double
a.cc:8:21: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2==0 && b%2==0) {
      |                    ~^~
      |                    | |
      |                    | int
      |                    double
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 =1 && b%2=1){
      |      ~^~
      |      | |
      |      | int
      |      double
a.cc:6:17: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 =1 && b%2=1){
      |                ~^~
      |                | |
      |                | int
      |                double
a.cc:8:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2=0 && b%2=0) {
      |          ~^~
      |          | |
      |          | int
      |          double
a.cc:8:20: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2=0 && b%2=0) {
      |                   ~^~
      |                   | |
      |                   | int
      |                   double
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 =1 && b%2=1){
      |      ~^~
      |      | |
      |      | int
      |      double
a.cc:6:17: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 =1 && b%2=1){
      |                ~^~
      |                | |
      |                | int
      |                double
a.cc:8:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2=1 && b%2=1) {
      |          ~^~
      |          | |
      |          | int
      |          double
a.cc:8:20: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2=1 && b%2=1) {
      |                   ~^~
      |                   | |
      |                   | int
      |                   double
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 =1 && b%2=1){
      |      ~^~
      |      | |
      |      | int
      |      double
a.cc:6:17: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 =1 && b%2=1){
      |                ~^~
      |                | |
      |                | int
      |                double
a.cc:8:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2=1 && b%2=0 {
      |          ~^~
      |          | |
      |          | int
      |          double
a.cc:8:20: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2=1 && b%2=0 {
      |                   ~^~
      |                   | |
      |                   | int
      |                   double
a.cc:10:1: error: expected primary-expression before 'else'
   10 | else { cout << (a+b)/2 +0.5;}
      | ^~~~
a.cc:9:16: error: expected ')' before 'else'
    9 | cout<<(a+b)/2;}
      |                ^
      |                )
   10 | else { cout << (a+b)/2 +0.5;}
      | ~~~~            
a.cc:8:9: note: to match this '('
    8 | else if (a%2=1 && b%2=0 {
      |         ^
Language: C++

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

Compiler output:
a.cc:7:13: error: extended character ÷ is not valid in an identifier
    7 | cout<< (a+b)÷2;}
      |             ^
a.cc:9:12: error: extended character ÷ is not valid in an identifier
    9 | cout<<(a+b)÷2;}
      |            ^
a.cc:10:21: error: extended character ÷ is not valid in an identifier
   10 | else { cout << (a+b)÷2 +0.5;}
      |                     ^
a.cc: In function 'int main()':
a.cc:6:7: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 =1 && b%2=1){
      |      ~^~
      |      | |
      |      | int
      |      double
a.cc:6:17: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 =1 && b%2=1){
      |                ~^~
      |                | |
      |                | int
      |                double
a.cc:7:13: error: expected ';' before '\U000000f72'
    7 | cout<< (a+b)÷2;}
      |             ^~
      |             ;
a.cc:8:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2=1 && b%2=0 {
      |          ~^~
      |          | |
      |          | int
      |          double
a.cc:8:20: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2=1 && b%2=0 {
      |                   ~^~
      |                   | |
      |                   | int
      |                   double
a.cc:10:1: error: expected primary-expression before 'else'
   10 | else { cout << (a+b)÷2 +0.5;}
      | ^~~~
a.cc:9:16: error: expected ')' before 'else'
    9 | cout<<(a+b)÷2;}
      |                ^
      |                )
   10 | else { cout << (a+b)÷2 +0.5;}
      | ~~~~            
a.cc:8:9: note: to match this '('
    8 | else if (a%2=1 && b%2=0 {
      |         ^
Language: C++

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

Compiler output:
a.cc:7:13: error: extended character ÷ is not valid in an identifier
    7 | cout<< (a+b)÷2;}
      |             ^
a.cc:9:12: error: extended character ÷ is not valid in an identifier
    9 | cout<<(a+b)÷2;}
      |            ^
a.cc:10:21: error: extended character ÷ is not valid in an identifier
   10 | else { cout << (a+b)÷2 +0.5;}
      |                     ^
a.cc: In function 'int main()':
a.cc:6:7: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 =1,b%2=1){
      |      ~^~
      |      | |
      |      | int
      |      double
a.cc:6:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    6 | if ( a%2 =1,b%2=1){
      |             ~^~
      |             | |
      |             | int
      |             double
a.cc:7:13: error: expected ';' before '\U000000f72'
    7 | cout<< (a+b)÷2;}
      |             ^~
      |             ;
a.cc:8:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2=0,b%2=0 {
      |          ~^~
      |          | |
      |          | int
      |          double
a.cc:8:17: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 | else if (a%2=0,b%2=0 {
      |                ~^~
      |                | |
      |                | int
      |                double
a.cc:10:1: error: expected primary-expression before 'else'
   10 | else { cout << (a+b)÷2 +0.5;}
      | ^~~~
a.cc:9:16: error: expected ')' before 'else'
    9 | cout<<(a+b)÷2;}
      |                ^
      |                )
   10 | else { cout << (a+b)÷2 +0.5;}
      | ~~~~            
a.cc:8:9: note: to match this '('
    8 | else if (a%2=0,b%2=0 {
      |         ^
Language: C++

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

Compiler output:
a.cc:8:13: error: extended character ÷ is not valid in an identifier
    8 | cout<< (a+b)÷2;}
      |             ^
a.cc:10:12: error: extended character ÷ is not valid in an identifier
   10 | cout<<(a+b)÷2;}
      |            ^
a.cc:11:21: error: extended character ÷ is not valid in an identifier
   11 | else { cout << (a+b)÷2 +0.5;}
      |                     ^
a.cc: In function 'int main()':
a.cc:7:7: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    7 | if ( a%2 =1,b%2=1){
      |      ~^~
      |      | |
      |      | int
      |      double
a.cc:7:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    7 | if ( a%2 =1,b%2=1){
      |             ~^~
      |             | |
      |             | int
      |             double
a.cc:8:13: error: expected ';' before '\U000000f72'
    8 | cout<< (a+b)÷2;}
      |             ^~
      |             ;
a.cc:9:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 | else if (a%2=0,b%2=0 {
      |          ~^~
      |          | |
      |          | int
      |          double
a.cc:9:17: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 | else if (a%2=0,b%2=0 {
      |                ~^~
      |                | |
      |                | int
      |                double
a.cc:11:1: error: expected primary-expression before 'else'
   11 | else { cout << (a+b)÷2 +0.5;}
      | ^~~~
a.cc:10:16: error: expected ')' before 'else'
   10 | cout<<(a+b)÷2;}
      |                ^
      |                )
   11 | else { cout << (a+b)÷2 +0.5;}
      | ~~~~            
a.cc:9:9: note: to match this '('
    9 | else if (a%2=0,b%2=0 {
      |         ^
Language: C++

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

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


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

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

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



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

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

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

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

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'c' was not declared in this scope
    7 |   cout << c=(a+b+1)/2 << endl;
      |           ^
a.cc:7:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << c=(a+b+1)/2 << endl;
      |             ~~~~~~~~~~^~~~~~~
Language: C++

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected primary-expression before ')' token
   11 |   if( ((a + b ) % 2) == 0) ){
      |                            ^
a.cc:14:13: error: 'X' was not declared in this scope
   14 |     cout << X + 1 << endl;
      |             ^
Language: C++

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

int main() {
  
  int a,b,ans;
  cin >> a >> b ;

  if ((a+b)/2% == 0){
    ans = (a+b)/2;
  }else{
    ans = (a+b)/2 +1;
  }
  
  cout << ans << endl;
}


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

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

int main() {
  
  int a,b,ans;
  cin >> a >> b ;

  if ((a+b)/2%==0){
    ans = (a+b)/2;
  }else{
    ans = (a+b)/2 +1;
  
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected primary-expression before '=' token
    9 |   if ((a+b)/2%==0){
      |                ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  
  int a,b,ans;
  cin >> a >> b ;

  if (a+b)%2 == 0; {
    ans = (a+b) / 2;
  } else {
    ans = (a+b)/2+1;
  }
  
  cout << ans << endl;
}


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

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

int main() {
  
  int a,b,ans;
  cin >> a >> b ;

  if (a+b) % 2 == 0  {
    ans = (a+b) / 2;
  } else {
    ans = {(a+b) / 2}+1 ;
  }
  
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected primary-expression before '%' token
    9 |   if (a+b) % 2 == 0  {
      |            ^
a.cc:12:22: error: expected ';' before '+' token
   12 |     ans = {(a+b) / 2}+1 ;
      |                      ^
      |                      ;
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <utility>
#include <set>
#include <stack>
#include <climits>
#include <cmath>
#include <iomanip>
#include <unordered_map>
#include <map>
#include <boost/multiprecision/cpp_int.hpp>

#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define rep1(i,n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
#define reps(i,s,n) for(int i=s, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
#define MEMSET(v, h) memset((v), h, sizeof(v))
typedef long long ll;
typedef long double ld;
const char sp = ' ';

using namespace boost::multiprecision;
using namespace std;

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


Compiler output:
a.cc:15:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
   15 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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


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

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

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

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



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

#include <iostream>
using namespace std;

int main()
{
  int a,b;
  cin >> a >> b;
  cout (a+b-1)/b;
  return 0;
}

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

#include <bits/stdc++.h>

using namespace std;

int main() {

  int a;
  int b;
  
  cin >> a >> b;
  
  cout <<（a+b+1)/2 << endl;

}

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

#include <bits/stdc++.h>

using namespace std;

int main() {

  int a;
  int b;
  
  cin >> a >> b;
  
  cout << （a+b)/2+0.5 << endl;

}

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

 #include <cstdio>

int main()
{
    int a,b;
    scanf("%d %d", &a, &b);
    if ((a + b) % 2 == 1))
    {
        printf("%d", (a + b) / 2 + 1);
    }
    
    else 
    {
        printf("%d", (a + b) / 2);
    }
    
}

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

#include <cstdio>

int main()
{
    int a,b;
    scanf("%d %d", &a, &b);
    if ((a + b) % 2 == 1))
    {
        printf("%d", (a + b) / 2 + 1);
    }
    
    else 
    {
        printf("%d", (a + b) / 2);
    }
    
}

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

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

int main(){
    int a, b;
  	cin >> a >> b;
  	
  if ( (a + b) / 2 % != 0){
    int avg = (a + b) / 2 + 1;
  }else{
    int avg = (a + b) / 2;
  }
  
  
  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){
      |                      ^~
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(){
  cin >> a >> b;
  cout << (a+b+1)/2 << endl;
}

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

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

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


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

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

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


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

import java.util.*;


public class A_RoundUptheMean {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int x = (a + b) % 2;
		int y = (a + b) / 2;
		if(x == 0)
		{
			System.out.println(y);
		}
		else 
		{
			y = y + 1;
			System.out.println(y);
		}
	}

}

Compiler output:
Main.java:4: error: class A_RoundUptheMean is public, should be declared in a file named A_RoundUptheMean.java
public class A_RoundUptheMean {
       ^
1 error
Language: C++

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

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


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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a b;
  cin>>a b;
  cout<<(a+b+1)%2<<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:7:12: error: 'b' was not declared in this scope
    7 |   cout<<(a+b+1)%2<<endl;
      |            ^
Language: C++

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

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:7:12: error: 'b' was not declared in this scope
    7 |   cout<<(a+b+1)%2;
      |            ^