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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int h, w;
  cin >> h >> w;
  
  bool heven = h%2==0;
  bool weven = w%2==0;

  long long ans;
  if (heven && weven) {
    ans = h * w / 2;
  else if (!heven && weven)
    ans = w / 2 * h;
  else if (heven && !weven)
    ans = h / 2 * w;
  else
    ans = h / 2 * w + w / 2 + 1;
    
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected '}' before 'else'
   14 |   else if (!heven && weven)
      |   ^~~~
a.cc:12:23: note: to match this '{'
   12 |   if (heven && weven) {
      |                       ^
Language: C++

#include <bits/stdc++.h>

int main() {
  long long w, h;
  std::cou << (w*h+2-1)/2 << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'cou' is not a member of 'std'; did you mean 'cout'?
    5 |   std::cou << (w*h+2-1)/2 << std::endl;
      |        ^~~
      |        cout
Language: C++

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

int main(){
  long long int h,w;
  cin>>h>>w;
  
  long long ans;
  ans=(i*j+1)/2;
  cout<<ans;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   ans=(i*j+1)/2;
      |        ^
a.cc:9:10: error: 'j' was not declared in this scope
    9 |   ans=(i*j+1)/2;
      |          ^
Language: C++

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

int main(){
  long long int h,w;
  cin>>h>>w;
  
  long long ans;
  ans=(i*j+1)/2;
  cout<<ans;
  
  return 0;
}

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

#include <iostream>
using namespace std;
typedef long long ll;

int main(void) {
  ll H, W;
  cin >> H >> W;
  if (H==1||W==1) {
    cout << 1 << endl;
  }
  else {
    cout << floor((H*W+1)/2) << endl;
  }
  return 0;
}


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

#include <iostream>
using namespace std;
int main() {
	long long int h, w;
	cin >> h >> w;
	long long int ans;
	if (h == 1 || w == 1)
		ans = 1;
	else if (h % 2 == 1 && w % 2 == 1)
		ans = (w * h) / 2 + 1;
	else
		ans = (w * h) / 2;
	cout << ans << "\n";
}

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

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
using namespace std;
using ll = long long;
using P = pair<int, int>;
const ll N = pow(10, 9);
 
int main() {
  ll h,w;
  cin >> h >> w;
  ll ans;
  ans = w * (h/2);
  ams += ((w +1)/2) * (h%2);
  cout << ans;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'ams' was not declared in this scope; did you mean 'ans'?
   14 |   ams += ((w +1)/2) * (h%2);
      |   ^~~
      |   ans
Language: C++

#include<iostream>
using namespace std;
int main()
{
  	int H,W,x,y;
  	double z;
  
  cin>>H>>W;
  x=H*W;
  y=x%2;
  z=x/2;
  if(H=1&&W>1)
    cout<<1;
 else if(W=1&&H>1)
    cout<<1;
  else if(W=1&&H=1)
    cout<<0;
  else
  	if(y==0)
   	 	cout<<z;
 	 else
    	cout<<z+0.5;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: lvalue required as left operand of assignment
   16 |   else if(W=1&&H=1)
      |             ~^~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int x;
  int y;
  cin >> x;
  cin >> y;
  if (2*x*y%2=0)
    cout << x*y/2;
  else
    cout << 2*x*y/2+1;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: lvalue required as left operand of assignment
    9 |   if (2*x*y%2=0)
      |       ~~~~~^~
a.cc:12:23: error: expected '}' at end of input
   12 |     cout << 2*x*y/2+1;
      |                       ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
  int H, W;
  cin >> H >> W;
  int X = H % 2;
  int Y = W % 2;
  int Z = H / 2;
  int U = H / 2 + 1;
  int V = W / 2;
  int T = U * W
  int S = W / 2 + 1;
  
  if (X == 0) {
    cout << H * W / 2;
  else if (X == 1) {
    if (Y == 0) {
      cout << Z * W / 2;
    }
    else if (Y == 1) {
      cout << T - S;
    }
  }
 }    

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: expected ',' or ';' before 'int'
   15 |   int S = W / 2 + 1;
      |   ^~~
a.cc:19:3: error: expected '}' before 'else'
   19 |   else if (X == 1) {
      |   ^~~~
a.cc:17:15: note: to match this '{'
   17 |   if (X == 0) {
      |               ^
a.cc:24:19: error: 'S' was not declared in this scope
   24 |       cout << T - S;
      |                   ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  	int H,W,x;
  	double z;
  cin>>H>>W;
  x=H*W;
  z=x/2;
  if(x%2==0)
    cout<<z;
  else(x%2==1)
    cout<<z+0.5;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected ';' before 'cout'
   12 |   else(x%2==1)
      |               ^
      |               ;
   13 |     cout<<z+0.5;
      |     ~~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
	int h, w;
	cin >> h >> w;
	int r = h * w;
	int ans
	if (h == 1 || w == 1)
		ans = 0
	else if (r % 2 == 1)
		ans = r / 2 + 1;
	else
		ans = r / 2
	cout << ans << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected initializer before 'if'
    8 |         if (h == 1 || w == 1)
      |         ^~
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else
      |         ^~~~
a.cc:13:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |                 ans = r / 2
      |                 ^~~
      |                 abs
Language: C++

#include<iostream>
using namespace std;
int main()
{
  	int H,W,x;
  cin>>H>>W;
  if(H*M%2==0)
    cout<<H*M%2;
  else
    cout<<H*M%2+0.5;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'M' was not declared in this scope
    7 |   if(H*M%2==0)
      |        ^
Language: C++

 #include <iostream>

 using namespace std;
 typedef long long ;
 int main(void){
  H,W;
 cin >> H >> W;

 if(H == 1 || W == 1){1 cout << 1 << end;
 } else {
 cout << (H * W + 1) / 2 << end;
 }

 return 0;
 }

Compiler output:
a.cc:4:15: error: declaration does not declare anything [-fpermissive]
    4 |  typedef long long ;
      |               ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'H' was not declared in this scope
    6 |   H,W;
      |   ^
a.cc:6:5: error: 'W' was not declared in this scope
    6 |   H,W;
      |     ^
a.cc:9:24: error: expected ';' before 'cout'
    9 |  if(H == 1 || W == 1){1 cout << 1 << end;
      |                        ^~~~~
      |                        ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	ios_base::sync_with_stdio(0);
	cin.tie(0);
 
	long long int h,w,ans;
	int is_h_odd=0,is_w_odd=0;
 
	cin>>h>>w;
 
	if(h%2)
		is_h_odd=1;
	if(w%2)
		is_w_odd=1;
 
	//ans=((h/2 + is_h_odd)*(w/2 + is_w_odd)) + ((h/2)*(w/2));
	ans=(h*w + 1)/2;
  	cout<<ans<<endl;
 
	return 0

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'h' was not declared in this scope
    9 |   else if (h==1 || w==1){
      |            ^
a.cc:9:20: error: 'w' was not declared in this scope
    9 |   else if (h==1 || w==1){
      |                    ^
a.cc:12:4: error: expected '}' before 'else'
   12 |    else{
      |    ^~~~
a.cc:9:25: note: to match this '{'
    9 |   else if (h==1 || w==1){
      |                         ^
Language: C++

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

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


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

include<iostream>
using namespace std;

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b >> endl;
      |   ^~~
a.cc:6:20: error: 'endl' was not declared in this scope
    6 |   cin >> a >> b >> endl;
      |                    ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << c ;
      |   ^~~~
Language: C++

include<iostream>
using namespace std;

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b >> endl;
      |   ^~~
a.cc:6:20: error: 'endl' was not declared in this scope
    6 |   cin >> a >> b >> endl;
      |                    ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << c ;
      |   ^~~~
Language: C++

include<iostream>
using namespace std;

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin << a << b << endl;
      |   ^~~
a.cc:6:20: error: 'endl' was not declared in this scope
    6 |   cin << a << b << endl;
      |                    ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << c ;
      |   ^~~~
Language: C++

include<iostream>
using namespace std;

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin << a << b << endl;
      |   ^~~
a.cc:6:20: error: 'endl' was not declared in this scope
    6 |   cin << a << b << endl;
      |                    ^~~~
Language: C++

include<iostream>
using namespace std;

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin << a << b << endl;
      |   ^~~
a.cc:6:20: error: 'endl' was not declared in this scope
    6 |   cin << a << b << endl;
      |                    ^~~~
a.cc:8:12: error: expected ';' before '}' token
    8 |     c=a*b/2
      |            ^
      |            ;
    9 |   }else{
      |   ~         
a.cc:10:16: error: expected ';' before '}' token
   10 |     c=(a*b+1)/2}
      |                ^
      |                ;
Language: C++

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

int main(){
  long long H, W;
  cin >> H >> W;
  cout << (int)((H * W + 1) / 2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << (int)((H * W + 1) / 2 << endl;
      |                 ~~~~~~~~~~~~~~~~^~~~~~~
a.cc:7:40: error: expected ')' before ';' token
    7 |   cout << (int)((H * W + 1) / 2 << endl;
      |                ~                       ^
      |                                        )
Language: C++

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

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

#include<stdio.h>

int main(){


        int h,w,cnt;

        cnt = 0 ; 

        scanf("%d %d",&h ,&w);

        if(h == 1 || w == 1)
                printf("1");

        else {
                count = (h * w + 1)/2;
                printf("%d",cnt);

        }   

        return 0;

}

Compiler output:
main.c: In function 'main':
main.c:16:17: error: 'count' undeclared (first use in this function); did you mean 'cnt'?
   16 |                 count = (h * w + 1)/2;
      |                 ^~~~~
      |                 cnt
main.c:16:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:123: error: expected primary-expression before ';' token
    4 | {   long long int h,w,a,b;   cin>>h>>w;   if(w%2==0)   {     a=h*(w/2);   }   else   {     if(h%2==0)     {       a=(h)/2*;     }     else     {       b=((w+1)/2);       a=b+(((h-1)/2)*w);     }   }   cout<<a<<endl;
      |                                                                                                                           ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'll' was not declared in this scope
    4 |   ll a,b;
      |   ^~
a.cc:5:8: error: 'a' was not declared in this scope
    5 |   cin>>a>>b;
      |        ^
a.cc:5:11: error: 'b' was not declared in this scope
    5 |   cin>>a>>b;
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
	ll h,w;
	cin>>h>>w;
	if(h==1)
	 cout<<"0";
    }
	else if(h%2==0){
		ll ans=(h/2)*w;
		cout<<ans;
	}
	else{
		if(w%2==0){
			ll ans=(h)*(w/2);
			cout<<ans;
		}
		else{
			ll ans=(h)*(w/2)+(h+1)/2;
			cout<<ans;
		}
	}
return 0;

	
}

Compiler output:
a.cc:11:9: error: expected unqualified-id before 'else'
   11 |         else if(h%2==0){
      |         ^~~~
a.cc:15:9: error: expected unqualified-id before 'else'
   15 |         else{
      |         ^~~~
a.cc:25:1: error: expected unqualified-id before 'return'
   25 | return 0;
      | ^~~~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
	ll h,w;
	cin>>h>>w;
	if(h==1)
	 cout<<"0";
	 return 0;
    }
	if(h%2==0){
		ll ans=(h/2)*w;
		cout<<ans;
	}
	else{
		if(w%2==0){
			ll ans=(h)*(w/2);
			cout<<ans;
		}
		else{
			ll ans=(h)*(w/2)+(h+1)/2;
			cout<<ans;
		}
	}
return 0;

	
}

Compiler output:
a.cc:12:9: error: expected unqualified-id before 'if'
   12 |         if(h%2==0){
      |         ^~
a.cc:16:9: error: expected unqualified-id before 'else'
   16 |         else{
      |         ^~~~
a.cc:26:1: error: expected unqualified-id before 'return'
   26 | return 0;
      | ^~~~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using P = pair<string,int>;
const double PI = acos(-1);

int main() {
lls h,w;
cin >> h >> w;
if(w == 1 || h == 1){
  cout << 1 << endl;
}
else cout << (h*w+1)/2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'lls' was not declared in this scope; did you mean 'll'?
    9 | lls h,w;
      | ^~~
      | ll
a.cc:10:8: error: 'h' was not declared in this scope
   10 | cin >> h >> w;
      |        ^
a.cc:10:13: error: 'w' was not declared in this scope
   10 | cin >> h >> w;
      |             ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef long double ld;
typedef unsigned int uint;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef pair<int, int> ii;
typedef map<int, int> MPII;
typedef set<int> SETI;

const int mxN = 2e5;
const ld pi = 4.0 * atanl(1.0);
const int iinf = 1e9 + 10;
const int inf = 1e18 + iinf + 10;
const int mod = 1000000007;
const ld prec = .000001;

#define F first
#define S second
#define pb push_back
#define mp make_pair
#define all(c) c.begin(), c.end()
#define rall(c) c.end(), c.begin()

ll n, m, t, a[mxN];
vi v;

void fast() { ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); }

int main() {
  fast();
  cin >> n >> m;
  // half num of squares
  if (n == 1 || w == 1)
    cout << 1;
  else
    cout << (n * m + 1) / 2;
  return 0;
}


Compiler output:
a.cc:20:29: warning: overflow in conversion from 'double' to 'int' changes value from '1.000000001e+18' to '2147483647' [-Woverflow]
   20 | const int inf = 1e18 + iinf + 10;
      |                 ~~~~~~~~~~~~^~~~
a.cc: In function 'int main()':
a.cc:40:17: error: 'w' was not declared in this scope
   40 |   if (n == 1 || w == 1)
      |                 ^
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <iomanip> // fixed, setprecision 
#include <math.h> // double sqrt
#define rep(i,n) for(int i=0;i<(n);++i)
#define ll long long
using namespace std;
int main(){
    ll h,w;
    cin>>h>>w;
    if(h==1||w==1){cout<<1;return 0;}
    cout<<(h*w+1)/2
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:20: error: expected ';' before 'return'
   27 |     cout<<(h*w+1)/2
      |                    ^
      |                    ;
   28 |     return 0;
      |     ~~~~~~
Language: C

#include <iostream>
#include <iomanip>

typedef long long ll;
using namespace std;
const ll INF = 1e9;
const ll MOD = 1e9 + 7;
#define repi(i, n, init) for(ll i=init;i<(n);i++)

int main() {
    ll h, w;
    cin >> h >> w;
    if (w != 1 && h != 1)
        cout << ((h + 1) / 2) * ((w + 1) / 2) + (h / 2) * (w / 2) << endl;
    else
        cout << 0 << endl;
    return 0;
}

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

#include <bits/stdc++.h>

using namespace std;

typedef long long int ll;

int main(){
	ll h,w;
	cin >> h >> w;
	ll hlf = (h + 1) / 2;
	ll rem = h - hlf;
	cout << hlf * (73(w + 1) / 2) + rem * (w / 2);	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: expression cannot be used as a function
   12 |         cout << hlf * (73(w + 1) / 2) + rem * (w / 2);
      |                        ~~^~~~~~~
Language: C++

#ifdef __unix__
#include <bits/stdc++.h>
#else
#include <iostream>
#include <algorithm>
#include <math.h>
#include <functional>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <unordered_set>
#include <stack>
#include <bitset>
#endif

#define fastIO ios_base::sync_with_stdio(0), cin.tie(NULL)
#define pb push_back
#define all(x) x.begin(), x.end()
#define endl '\n'
#define mkp make_pair
/*#define NUMTOSTR(x)  (unsigned char)((x) + 48);*/
typedef unsigned int uint;
typedef long long ll;
typedef unsigned long long  ull;
using namespace std;

int main() {
	fastIO;
    ull w, h;
	cin >> w >> h;
	cout << fixed << (ull)ceil((long double)(long double(w * h) / 2.0));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:50: error: expected primary-expression before 'long'
   32 |         cout << fixed << (ull)ceil((long double)(long double(w * h) / 2.0));
      |                                                  ^~~~
a.cc:32:50: error: expected ')' before 'long'
   32 |         cout << fixed << (ull)ceil((long double)(long double(w * h) / 2.0));
      |                                                 ~^~~~
      |                                                  )
Language: Java

import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long H = Integer.parseInt(sc.next());
        long W = Integer.parseInt(sc.next());
        double N = (double) H * W / 2;
        long result = ;
        PrintWriter out = new PrintWriter(System.out);

        if (H == 1 || W == 1) {
            out.println(1);
            out.flush();
            sc.close();
            return;
        }

        result = (long) Math.ceil(N);

        out.println(result);
        out.flush();
        sc.close();
    }
}

Compiler output:
Main.java:10: error: illegal start of expression
        long result = ;
                      ^
1 error
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int H = scn.nextInt();
		int W = scn.nextInt();
		long m = H*W;
		if(m % 2 == 0) {
			System.out.println(m / 2);
		}else {
			System.out.println(m/2 + 1);F
		}
	}
}

Compiler output:
Main.java:12: error: not a statement
			System.out.println(m/2 + 1);F
			                            ^
Main.java:12: error: ';' expected
			System.out.println(m/2 + 1);F
			                             ^
2 errors
Language: C

#include<stdio.h>

typedef long long ll;

int main(){
    ll h,m;
    scanf("%lld%lld",&h,&m);
    if(h==1||w==1) printf("1\n");
    else printf("%lld",(h*m+1)/2);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: 'w' undeclared (first use in this function)
    8 |     if(h==1||w==1) printf("1\n");
      |              ^
main.c:8:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
using namespace std;
 
int main(){
  int H,W;
  int ans;
  cin >> H >> W;
  if(H%2==1 && W/2==1) ans=(H*W/2)+1
  else ans=H*W/2;
  
  cout << ans << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:37: error: expected ';' before 'else'
    8 |   if(H%2==1 && W/2==1) ans=(H*W/2)+1
      |                                     ^
      |                                     ;
    9 |   else ans=H*W/2;
      |   ~~~~
Language: Java

import java.util.*;
import java.io.*;
public class main {
    public static void main (String[]args) throws IOException{
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int a[] = Arrays.stream(in.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();


        if(a[0] == 1 || a[1] == 1) {
            System.out.println(1);
        }
        else{
            System.out.println((a[0]*a[1] + 1)/2);
        }
    }
}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

/*
int a[] = new int[n];
String line = br.readLine(); // to read multiple integers line
String[] strs = line.trim().split("\\s+");
for (int i = 0; i < n; i++) {
    a[i] = Integer.parseInt(strs[i]);
}*/

/*
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int arr[] = Arrays.stream(in.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
*/



import java.util.*;
import java.io.*;
public class cp {
    public static void main (String[]args) throws IOException{
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int arr[] = Arrays.stream(in.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
        int possibleMoves = 0;
        int boardSize = arr[0]*arr[1];

        while(boardSize>=9) {
            boardSize-=9;
            possibleMoves+=5;

        if(boardSize%2==0 && boardSize>2) {
            possibleMoves = possibleMoves + 1;
        }
        else if(boardSize%3==0 && boardSize>2) {
            possibleMoves = possibleMoves + 1;
        }
        }
       System.out.println(possibleMoves);
    }
}    


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


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

#define fastio 			ios::sync_with_stdio(0);	cin.tie(0); cout.tie(0);  cout<<fixed;  cout<<setprecision(12);
#define randomINT 		mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());
#define	newl 			cout<<"\n"
#define DISP(as)		for(auto it : as) cout<<it<<" ";newl;
#define DISP1(as)		for(auto it : as) cout<<it.f<<" "<<it.s<<") ";newl;
#define all(x)         	(x).begin(),(x).end()
#define mset(x,val)    	memset(x,val,sizeof(x))
#define newl           	cout<<"\n"
#define pb             	push_back
#define mp             	make_pair
#define f 				first
#define s 				second
#define dline          cerr<<"///REACHED///\n";
#define deb1(x)        cerr<<#x<<" = "<<x<<'\n';
#define deb2(x,y)      cerr<<'['<<#x<<','<<#y<<"] = "<<'['<<x<<','<<y<<']'<<'\n';
#define deb3(x,y,z)    cerr<<'['<<#x<<','<<#y<<','<<#z<<"] = "<<'['<<x<<','<<y<<','<<z<<']'<<'\n';

typedef long long 				ll;
typedef long double 			ld;
typedef vector<ll> 				vll;
typedef pair<ll , ll> 			pll;
typedef pair<ld, ld> 			pld;
typedef unordered_map<ll, ll> 	um;
typedef vector<pll> 			vpll;

const ll 	MAX5 	= 	2e+5 + 99;
const ll 	MAX7 	= 	1e+7 + 7;
const ll 	MAXN 	= 	MAX7;
const ll   	INF   	=  	0x7f7f7f7f7f7f7f7f;
const int  	INFi 	=  	0x7f7f7f7f;
const ll 	MOD		=  	1e+9 + 7;

// <------------- Declare Variables Here ------------> //

ll T = 1;
ll n, k, l, q, x, y;
string s;
ll res = 0;

// < ----------- func eh ---------------- ? //


// <------------- Start of main() -------------------> //

void MAIN() {
	cin>>x>>y;
	if(h==1 || w==1) cout<<1;
	else
	cout<<(x*y + 1)/2;
}

int main() {
	fastio; randomINT;
	//cin >> T;
	while (T--) {
		MAIN();
	}
	return 0;
}


Compiler output:
a.cc: In function 'void MAIN()':
a.cc:51:12: error: 'h' was not declared in this scope
   51 |         if(h==1 || w==1) cout<<1;
      |            ^
a.cc:51:20: error: 'w' was not declared in this scope
   51 |         if(h==1 || w==1) cout<<1;
      |                    ^
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <utility>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define _GLIBCXX_DEBUG
using namespace std;
typedef long long ll;
typedef pair<int, int> pair;
const int inf = 1000000000;

int main(){
    ll h, w;
    cin >> h >> w;
    ll a;
    if (h % 2 == 0 || w % 2 == 0) {
        a = h * w / 2;
        cout << a << endl;
        return 0;
    }

    else {
        a = (h * w　+1) / 2;
        cout << a << endl;
        return 0;
    }

    return 0;
} 

Compiler output:
a.cc:26:18: error: extended character 　 is not valid in an identifier
   26 |         a = (h * w　+1) / 2;
      |                  ^
a.cc: In function 'int main()':
a.cc:26:18: error: 'w\U00003000' was not declared in this scope
   26 |         a = (h * w　+1) / 2;
      |                  ^~~
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long h = sc.nextLong();
    long w = sc.nextLong();
    System.out.println(ans%2 == 0 ? h*w/2 : (h*w/2)+1);
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    System.out.println(ans%2 == 0 ? h*w/2 : (h*w/2)+1);
                       ^
  symbol:   variable ans
  location: class Main
1 error
Language: C++

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

int main() {
  long long h, w, t;
  cin >> h >> w;
  t = h*w;
  if (t%2 == 0)
  {
    cout << t/2 << endl;

  }else
  {
    cout << t/2+1 << endl:
  }
  return 0;
  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:26: error: expected ';' before ':' token
   15 |     cout << t/2+1 << endl:
      |                          ^
      |                          ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before 'return'
    8 |     cout<<1<<endl
      |                  ^
      |                  ;
    9 |       return 0;
      |       ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void) {
  long long int n, m;
  cin >> n >> m;
  long long int prod = n * m;
  long long ans = prod / 2;
  if(prod & 1) {
    ans++;
  }
  cout << ans << "\n"
}


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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

int main(){
  long long, H, W, ans = 0;
  cin >> H >> W;
  if(H*W == 1){
    cout << 1 << endl;
    return 0;
  }

  if((H * W) % 2){
    cout << (H * W) / 2 + 1 << endl;
  }else{
    cout << H * W / 2 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected unqualified-id before ',' token
    6 |   long long, H, W, ans = 0;
      |            ^
Language: C

#include <stdio.h>

int main(void){
  int H,W, count, i, j;
  
  scanf("%d", H);
  scanf("%d", W);
  
  for(i=0; i<H; i++){
    for(j=0; j<W; j++){
      if(i+j==0){
        if(i-j!=0){
          count++;
        }
      }else{
          if(i-j==0){
            count++;
          }
      }
    }
    
  
}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: Java

    import java.util.*;
    public class Main{
      public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
    	long h = sc.nextLomg();
        long w = sc.nextLong();
        long s = h * w;
        if(s % 2 == 1){
          s += 1;
        }
        System.out.println(s);
      
      }
    }

Compiler output:
Main.java:5: error: cannot find symbol
    	long h = sc.nextLomg();
    	           ^
  symbol:   method nextLomg()
  location: variable sc of type Scanner
1 error
Language: C++

#include<bits/stdc++.h>

using namepsace std;

int main() {
  int h, v;
  cin >> h >> v;
  h *= v;
  if(h%2)
    cout << h/2+1 << endl;
  else
    cout << h/2 << endl;
  return 0;
}

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

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

int main(){
  
  ll h,w;
  cin >> h >> w;
  ll a=h*w;
  if(a%2==0) cout << a/2 << endl;
  else cout << (a-1)/2+1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll h,w;
      |   ^~
a.cc:7:10: error: 'h' was not declared in this scope
    7 |   cin >> h >> w;
      |          ^
a.cc:7:15: error: 'w' was not declared in this scope
    7 |   cin >> h >> w;
      |               ^
a.cc:8:5: error: expected ';' before 'a'
    8 |   ll a=h*w;
      |     ^~
      |     ;
a.cc:9:6: error: 'a' was not declared in this scope
    9 |   if(a%2==0) cout << a/2 << endl;
      |      ^
Language: C++

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

int main(){
  long long H,W;
  cin >>H>>W;
  if(H==1||W==1){
    cout<<1<<endl;
    return 0;
  }
  cout<<setprecison(20)<<(W/2)*(H/2)+(W/2+W%2)*(H/2+H%2)<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'setprecison' was not declared in this scope
   11 |   cout<<setprecison(20)<<(W/2)*(H/2)+(W/2+W%2)*(H/2+H%2)<<endl;
      |         ^~~~~~~~~~~
Language: C++


#include <iostream>
#include<cmath>
using namespace std;
 
int main(){
   int h,w;
   
   cin >>h;
   cin>>w;
if (h*w%2 == 0){
    cout << h*w/2;
}
if (h*w%2 == 1){
    cout<< (h*w + 1)/2;
}

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

#include<iostream>

int main(){
  long long int a,b;
  std::cin>>a>>b;
  if(a*b%2!=0&&(a!=1||b!=1)){
    std::cout<<(a*b+1)/2<<std::endl;
  }else if(a!=1||b!=1){
    std::cout<<a*b/2<<std::endl;
  }else std::cout<<1<<std::endl
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected ';' before 'return'
   10 |   }else std::cout<<1<<std::endl
      |                                ^
      |                                ;
   11 |   return 0;
      |   ~~~~~~
Language: C++

#include<iostream>

int main(){
  long long int a,b;
  std::cin>>a>>b;
  if(a*b%2!=0&&(a!=1||b!=1){
    std::cout<<(a*b+1)/2<<std::endl;
  }else if(a!=1||b!=1){
    std::cout<<a*b/2<<std::endl;
  }else std::cout<<1<<std::endl
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: expected ';' before '{' token
    6 |   if(a*b%2!=0&&(a!=1||b!=1){
      |                            ^
      |                            ;
a.cc:8:4: error: expected primary-expression before 'else'
    8 |   }else if(a!=1||b!=1){
      |    ^~~~
a.cc:8:4: error: expected ')' before 'else'
    8 |   }else if(a!=1||b!=1){
      |    ^~~~
      |    )
a.cc:6:5: note: to match this '('
    6 |   if(a*b%2!=0&&(a!=1||b!=1){
      |     ^
Language: C++

#include<iostream>

int main(){
  long long int a,b;
  std::cin>>a>>b;
  if(a*b%2!=0&&(a!=1||b!=1)){
    std::cout<<(a*b+1)/2<<std::endl;
  }else if(a!=1||b!=1)std::cout<<a*b/2<<std::endl;
     else std::cout<<1<<std::endl
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: expected ';' before 'return'
    9 |      else std::cout<<1<<std::endl
      |                                  ^
      |                                  ;
   10 |   return 0;
      |   ~~~~~~
Language: C++

#include<iostream>

int main(){
  long long int a,b;
  std::cin>>a>>b;
  if(a*b%2!=0&&(a!=1||b!=1){
    std::cout<<(a*b+1)/2<<std::endl;
  }else if(a!=1||b!=1)std::cout<<a*b/2<<std::endl;
     else std::cout<<1<<std::endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: expected ';' before '{' token
    6 |   if(a*b%2!=0&&(a!=1||b!=1){
      |                            ^
      |                            ;
a.cc:8:4: error: expected primary-expression before 'else'
    8 |   }else if(a!=1||b!=1)std::cout<<a*b/2<<std::endl;
      |    ^~~~
a.cc:8:4: error: expected ')' before 'else'
    8 |   }else if(a!=1||b!=1)std::cout<<a*b/2<<std::endl;
      |    ^~~~
      |    )
a.cc:6:5: note: to match this '('
    6 |   if(a*b%2!=0&&(a!=1||b!=1){
      |     ^
Language: C++

#include<iostream>

int main(){
  long long int a,b;
  std::cin>>a>>b;
  if(a*b%2!=0&&(a!=1||b!=1){
    std::cout<<(a*b+1)/2<<std::endl;
  }else if(a!=1||b!=1)std::cout<<a*b/2<<std::endl;
     else std::cout<<1<<std::endl
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: expected ';' before '{' token
    6 |   if(a*b%2!=0&&(a!=1||b!=1){
      |                            ^
      |                            ;
a.cc:8:4: error: expected primary-expression before 'else'
    8 |   }else if(a!=1||b!=1)std::cout<<a*b/2<<std::endl;
      |    ^~~~
a.cc:8:4: error: expected ')' before 'else'
    8 |   }else if(a!=1||b!=1)std::cout<<a*b/2<<std::endl;
      |    ^~~~
      |    )
a.cc:6:5: note: to match this '('
    6 |   if(a*b%2!=0&&(a!=1||b!=1){
      |     ^
a.cc:9:34: error: expected ';' before 'return'
    9 |      else std::cout<<1<<std::endl
      |                                  ^
      |                                  ;
   10 |   return 0;
      |   ~~~~~~
Language: C

#include <stdio.h>

int main(){
  long h, w;
  long sum;
  
  scanf("%ld", &h);
  scanf("%ld", &w);
  
  long sum = (h * w + 1) / 2;
  
  if(h == 1L || w == 1L)
    sum = 1L;
  
  printf("%ld\n", sum);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:8: error: redeclaration of 'sum' with no linkage
   10 |   long sum = (h * w + 1) / 2;
      |        ^~~
main.c:5:8: note: previous declaration of 'sum' with type 'long int'
    5 |   long sum;
      |        ^~~
Language: C

#include <stdio.h>

int main(){
  long h, w;
  long sum;
  
  scanf("%ld", &h);
  scanf("%ld", &w);
  
  long sum = (h * w + 1) / 2;
  
  if(h == 1 || w == 1)
    sum = 1;
  
  printf("%ld\n", sum);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:8: error: redeclaration of 'sum' with no linkage
   10 |   long sum = (h * w + 1) / 2;
      |        ^~~
main.c:5:8: note: previous declaration of 'sum' with type 'long int'
    5 |   long sum;
      |        ^~~
Language: C

#include<stdio.h>
#include<math.h>

int main()
{
  long double h,w=0;
  
  scanf("%Lf",&h);
  scanf("%Lf",&w);
  
  if(fmod(h*w.2)==0){
    printf("%Lf",h*w/2);
}else{
    printf("%Lf",(h*w)/2+1);
  };
  return 0;
};



Compiler output:
main.c: In function 'main':
main.c:11:14: error: expected ')' before numeric constant
   11 |   if(fmod(h*w.2)==0){
      |          ~   ^~
      |              )
main.c:11:6: error: too few arguments to function 'fmod'
   11 |   if(fmod(h*w.2)==0){
      |      ^~~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:201:1: note: declared here
  201 | __MATHCALL (fmod,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~
Language: C

#include<stdio.h>
#include<math.h>

int main()
{
  long double h,w=0;
  
  scanf("%Lf",&h);
  scanf("%Lf",&w);
  
  if(h*w%2==0){
    printf("%Lf",h*w/2);
}else{
    printf("%Lf",(h*w)/2+1);
  };
  return 0;
};



Compiler output:
main.c: In function 'main':
main.c:11:9: error: invalid operands to binary % (have 'long double' and 'int')
   11 |   if(h*w%2==0){
      |      ~~~^
      |       |
      |       long double
Language: C

#include<stdio.h>
#include<math.h>

int main()
{
  long double h,w=0;
  
  scanf("%lf",&h);
  scanf("%lf",&w);
  
  if(h*w%2==0){
    printf("%lf",h*w/2);
}else{
    printf("%lf",(h*w)/2+1);
  };
  return 0;
};



Compiler output:
main.c: In function 'main':
main.c:11:9: error: invalid operands to binary % (have 'long double' and 'int')
   11 |   if(h*w%2==0){
      |      ~~~^
      |       |
      |       long double
Language: C++

// #include <bits/stdc++.h>
#include <iostream>

#define rep(i,n) for (int i = 0; i < (n); ++i)
#define repr(i,n) for (int i = 0; i < (f); --i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

const int MAX = 100;
const int INF = (1<<12);

int main() {
  long h, w;
  cin >> h >> w;
  long ans;
  if(h == 1 || w == 1){
    cunt << 1 << endl;
  }else{
    ans = h * w / 2;
    if ((h * w) % 2 == 1) ans++; 
    cout << ans << endl;
  }
  return 0;
}

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

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

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

#include<iostream>
using namespace std;

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

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;
      |   ^~~
      |   abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
int64_t MOD=10000007;

int main() {
  int H,W;
  cin>>H>>W;
  int a=H*W;
  if(a%2=0)a/=2;
  else a=(a+1)/2;
  cout<<a;

  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: lvalue required as left operand of assignment
   10 |   if(a%2=0)a/=2;
      |      ~^~
Language: Java

import java.util.*;

public class Main{
    public static void main(String args[]){
        Scanner sn = new Scanner(System.in);
        long H = sn.nextInt();
        long W = sn.nextInt();
        long area = H * W;
        long result = 0;
        

        if(H == 1 | W == 1){
            result = 1;
        }else{
            if(area % 2 == 0){
                result = area/2;
            }else{
                result = area/2+1;
        }

        

        System.out.println(result);
    }
}

Compiler output:
Main.java:25: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include <bits/stdc++.h>
#define pb push_back
#define vi vector<int>
using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int n,m;
    cin>>n>>m;
    if((n*m)%2==0)
    {
    	cout<<(n*m)/2<<"\n";
    }
    else
    {
    	cout<<((n*m+)/2)+1<<"\n";
    }


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:21: error: expected primary-expression before ')' token
   18 |         cout<<((n*m+)/2)+1<<"\n";
      |                     ^
Language: C

#include <stdio.h>

int main(){
	long M,N,ans;
	scanf("%d %d",&M,&N);
	ans = H * (M + 1) / 2;
	if(H == 1||M == 1)
		printf("1");
	else
		printf("%d",ans);
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: 'H' undeclared (first use in this function)
    6 |         ans = H * (M + 1) / 2;
      |               ^
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>

int main(){
  int h,w;
  cin >> h >> w;
  printf("%d",(h+w) % 2 ? ((h+w)/2)+1 : (h+w)/2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> h >> w;
      |   ^~~
      |   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
      |                  ^~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int (i) = 0; (i) < (n); i++)
#define ll long long
using namespace std;

int main(){
  ll h,w;
  cin>>h>>w;
  if(h==1||w-=1){
    cout<<'1'<<endl;
  }
  else if{
    cout<<(h*w+1)/2<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: lvalue required as left operand of assignment
    9 |   if(h==1||w-=1){
      |      ~~~~^~~
a.cc:12:10: error: expected '(' before '{' token
   12 |   else if{
      |          ^
      |          (
Language: C++

#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <map>
#include <queue>
#include <bitset>

using ll = long long int;
using ul = unsigned long long int;

namespace lamlib
{
	// Absolute
	template<class T> inline T abs(const T &a){ return (a>0) ? a : -a; }
	// GCD: a > b
	ul gcd(ul a,ul b) { return (!b) ? a : gcd(b,a%b); }
}

int main(int argc,char *argv[])
{
	ll h,n;
	std::cin >> h >> n;
	
	ll tmp = h*n;
	if (h == 1 || w == 1) std::cout << 1 << std::endl;
	else if(!(tmp%2)) std::cout << tmp/2 << std::endl;
	else std::cout << tmp/2 + 1 << std::endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:28:23: error: 'w' was not declared in this scope
   28 |         if (h == 1 || w == 1) std::cout << 1 << std::endl;
      |                       ^
Language: C++

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

int main() {
  int64_t h,w;
  cin >> h >> w;
  
  if(h == 1 || w == 1){
    cout << 1 << endl;
  }
  
  else{
    cout (h*w+1)/2 << endl;
  }
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (int64_t)'
   13 |     cout (h*w+1)/2 << endl;
      |     ~~~~~^~~~~~~
Language: Java

import java.util.Scanner ;
import java.math.BigInteger;
public class sol{
  public static void main(String[] args){
    int h,w;
    Scanner input = new Scanner(System.in);
    h = input.nextInt();
    w = input.nextInt();

    System.out.printf(BigInteger.valueOf(h).multiply(BigInteger.valueOf(w/2)).add(BigInteger.valueOf((w%2) * (h+2-1)/2)).toString());
    
  }
}

Compiler output:
Main.java:3: error: class sol is public, should be declared in a file named sol.java
public class sol{
       ^
1 error