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

#include<stdio.h>
int main(){
	int H,W Result;
  	scanf("%d %d",&H,&W);
  	if((H*W)%2==0)
      Result=(H*W)/2;
  	else Result=(H*W)/2+1;
  printf("%d",Result);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Result'
    3 |         int H,W Result;
      |                 ^~~~~~
main.c:4:27: error: 'W' undeclared (first use in this function)
    4 |         scanf("%d %d",&H,&W);
      |                           ^
main.c:4:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:7: error: 'Result' undeclared (first use in this function)
    6 |       Result=(H*W)/2;
      |       ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int H, W, a, ;
int answer;

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

Compiler output:
a.cc:4:14: error: expected unqualified-id before ';' token
    4 | int H, W, a, ;
      |              ^
a.cc: In function 'int main()':
a.cc:15:39: error: expected ';' before ')' token
   15 |       answer = (H * W) + ((H - 1) * W));
      |                                       ^
      |                                       ;
a.cc:21:14: error: 'H' cannot be used as a function
   21 |       a = (H (H * W) + ((H - 1) * W));
      |            ~~^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'coutcout' was not declared in this scope
   16 |         coutcout<<(a*b)/2;
      |         ^~~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
    double  H, W;
    cin>> H >> W;
    double = H * W;
    double = result / 2;
    if(result % 2 != 0){
        final = final + 1;
    }
    if(W == 1){
        final = 1;
    }
    cout<< final;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected unqualified-id before '=' token
    7 |     double = H * W;
      |            ^
a.cc:8:12: error: expected unqualified-id before '=' token
    8 |     double = result / 2;
      |            ^
a.cc:9:8: error: 'result' was not declared in this scope
    9 |     if(result % 2 != 0){
      |        ^~~~~~
a.cc:10:9: error: 'final' was not declared in this scope
   10 |         final = final + 1;
      |         ^~~~~
a.cc:13:9: error: 'final' was not declared in this scope
   13 |         final = 1;
      |         ^~~~~
a.cc:15:12: error: 'final' was not declared in this scope
   15 |     cout<< final;
      |            ^~~~~
Language: C++

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

int main () {
  longlong H,W;
  cin >> H >> W;
  longlong ans,cross;
  cross = H*W;
  if (H % 2 == 1 && W % 2 == 1) {
    ans = (cross+1)/2;
  }
  else {
    ans = cross/2;
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'longlong' was not declared in this scope
    5 |   longlong H,W;
      |   ^~~~~~~~
a.cc:6:10: error: 'H' was not declared in this scope
    6 |   cin >> H >> W;
      |          ^
a.cc:6:15: error: 'W' was not declared in this scope
    6 |   cin >> H >> W;
      |               ^
a.cc:7:11: error: expected ';' before 'ans'
    7 |   longlong ans,cross;
      |           ^~~~
      |           ;
a.cc:8:3: error: 'cross' was not declared in this scope
    8 |   cross = H*W;
      |   ^~~~~
a.cc:10:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     ans = (cross+1)/2;
      |     ^~~
      |     abs
a.cc:13:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     ans = cross/2;
      |     ^~~
      |     abs
a.cc:15:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include <iostream>
using namespace std;

int H, W, a, b;
int answer;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:39: error: expected ';' before ')' token
   15 |       answer = (H * W) + ((H - 1) * W));
      |                                       ^
      |                                       ;
a.cc:21:14: error: 'H' cannot be used as a function
   21 |       a = (H (H * W) + ((H - 1) * W));
      |            ~~^~~~~~~
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C++


#include<bits/stdc++.h>
using namespace std;
int main(){
  long long double h , w , k = 2;
  cin >> h >> w;
  cout<< fixed <<(long long) ceil((h*w)/k);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'long long' specified with 'double'
    5 |   long long double h , w , k = 2;
      |        ^~~~
a.cc:5:8: error: 'long long' specified with 'double'
a.cc:5:8: error: 'long long' specified with 'double'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected primary-expression before '==' token
    9 |         if(a==1||==1)
      |                  ^~
Language: C++

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

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





Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C

#include<stdio.h>
int main (){
  long ans;
  long h,w;
  scanf("%ld%ld",&h,&w);
  if(h%2==1 && w%2==1){
    ans=(h/2*w+1;
  }else{
    ans=h/2*w;
  }
  if(h==1 || w==1){
    ans = 1;
  }
  printf("%ld\n",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected ')' before ';' token
    7 |     ans=(h/2*w+1;
      |         ~       ^
      |                 )
main.c:7:18: error: expected ';' before '}' token
    7 |     ans=(h/2*w+1;
      |                  ^
      |                  ;
    8 |   }else{
      |   ~
Language: Java

public class Main{

	public static void main(String[] args) {
		Scanner in =new Scanner(System.in);
		long  a = in.nextLong();
		long  b = in.nextLong();
		BigInteger a1 = BigInteger.valueOf(a);
		BigInteger b1 = BigInteger.valueOf(b);
		BigInteger c = a1.multiply(b1);
		BigInteger two = BigInteger.valueOf(2);
		if(c.mod(two).equals(BigInteger.ZERO)) {
			System.out.println(c.divide(two));
		}
		else {
			System.out.println(c.divide(two).add(BigInteger.ONE));
		}

	}

}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner in =new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner in =new Scanner(System.in);
		                ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		BigInteger a1 = BigInteger.valueOf(a);
		^
  symbol:   class BigInteger
  location: class Main
Main.java:7: error: cannot find symbol
		BigInteger a1 = BigInteger.valueOf(a);
		                ^
  symbol:   variable BigInteger
  location: class Main
Main.java:8: error: cannot find symbol
		BigInteger b1 = BigInteger.valueOf(b);
		^
  symbol:   class BigInteger
  location: class Main
Main.java:8: error: cannot find symbol
		BigInteger b1 = BigInteger.valueOf(b);
		                ^
  symbol:   variable BigInteger
  location: class Main
Main.java:9: error: cannot find symbol
		BigInteger c = a1.multiply(b1);
		^
  symbol:   class BigInteger
  location: class Main
Main.java:10: error: cannot find symbol
		BigInteger two = BigInteger.valueOf(2);
		^
  symbol:   class BigInteger
  location: class Main
Main.java:10: error: cannot find symbol
		BigInteger two = BigInteger.valueOf(2);
		                 ^
  symbol:   variable BigInteger
  location: class Main
Main.java:11: error: cannot find symbol
		if(c.mod(two).equals(BigInteger.ZERO)) {
		                     ^
  symbol:   variable BigInteger
  location: class Main
Main.java:15: error: cannot find symbol
			System.out.println(c.divide(two).add(BigInteger.ONE));
			                                     ^
  symbol:   variable BigInteger
  location: class Main
11 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: lvalue required as left operand of assignment
    8 |         ans = ((H*W)/2)=0.5;
      |               ~~~~~~^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  ll h,w;
  cin>>h>>w;
  ll a=h/2;
  if(w%2==0){
     cout<<h*w/2<<endl;
}
  if(w%2==1&&h%2==0){
     cout<<a*w<<endl;
}
  if(w%2==1&&h%2==1){
     cout<<a*w+w/2+1<<endl
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: expected ';' before '}' token
   16 |      cout<<a*w+w/2+1<<endl
      |                           ^
      |                           ;
   17 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  ll h,w;
  cin>>h>>w;
  ll a=h/2;
  if(w%2==0){
     cout<<h*w/2<<endl;
}
  if(w%2==1&&h%2==0){
     cout<<a*w<<endl;
}
  if(w%2==1&&h%2==1){
     cout<<a*w+w/2+1<<endl
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: expected ';' before '}' token
   16 |      cout<<a*w+w/2+1<<endl
      |                           ^
      |                           ;
   17 | }
      | ~                          
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

int main() {
  int H,W;
  cin >> H >> W;

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


Compiler output:
a.cc:15:3: error: expected unqualified-id before 'else'
   15 |   else {
      |   ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++


#include <bits/stdc++.h>

using namespace std;

int main() {
    LL ans=0, n, m;
    cin >> n >> m;
    if (n % 2 == 1 && m % 2 == 1) {
        ans = (n * m + 1) / 2;
    }else{
        ans = n * m / 2;
    }



    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'LL' was not declared in this scope
    7 |     LL ans=0, n, m;
      |     ^~
a.cc:8:12: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |     cin >> n >> m;
      |            ^
      |            yn
a.cc:8:17: error: 'm' was not declared in this scope; did you mean 'tm'?
    8 |     cin >> n >> m;
      |                 ^
      |                 tm
a.cc:10:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |         ans = (n * m + 1) / 2;
      |         ^~~
      |         abs
a.cc:12:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |         ans = n * m / 2;
      |         ^~~
      |         abs
a.cc:17:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    long h,w;
    cin>>h>>w;
    if(h!=1 && c!=1)
        cout<<ceil(float(h*w)/2);
    else
        cout<<"1";
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'c' was not declared in this scope
    9 |     if(h!=1 && c!=1)
      |                ^
Language: Java

public static void main(String[] args) {
    	Scanner itr = new Scanner(System.in);
      	int h = itr.nextInt();
      	int w = itr.nextInt();
      	
 		int res = 0;
      	if (h % 2 == 1) 
        	res = h * w / 2 + 1;
        else
        	res = h * w / 2;
  		
  		System.out.println(res);
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include<stdio.h>
#include<math.h>
using namespace std;
int main(){
	printf("%.8f",1+2*sprt(3)/(5-0.1));
	return 0; 
} 
 





Compiler output:
a.cc: In function 'int main()':
a.cc:5:27: error: 'sprt' was not declared in this scope; did you mean 'sqrt'?
    5 |         printf("%.8f",1+2*sprt(3)/(5-0.1));
      |                           ^~~~
      |                           sqrt
Language: C

#include <stdio.h>

int main (void)
{
  unsigned long h, w;
  
  scanf("%lu %lu", &h, &w);
  
  if (h==1 || w==1) {
    print("%d", 1);
  } else if (h%2==1 && w%2==1) {
    printf("%lu", h*w/2+1);
  } else {
    printf("%lu", h*w/2);
  }
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |     print("%d", 1);
      |     ^~~~~
      |     printf
Language: C++

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

int main() {
	long H, W;
	cin >> H >> W;
	if ((H - 1) * (W - 1) == 0) cout << 1 << ensl;
	else if ((H % 2) * (W % 2) == 0) cout << H * W / 2 << endl;
	else cout << (H * W + 1) / 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:50: error: 'ensl' was not declared in this scope
    7 |         if ((H - 1) * (W - 1) == 0) cout << 1 << ensl;
      |                                                  ^~~~
Language: C++

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

int main()
{
  int h,w,a;
  cin>>h>>w;
  a=h*w;
  a=(a%2==0?a/2:a/2+1);
  cout<<a;
  eeturn 0;
}


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

#include <iostream>
#include <algorithm>
#include <stack>
#include <queue>
#include <vector>
#include <utility>
#include <map>
#include <string>
#include <math.h>
using namespace std;


int main() {

    int i=0;
    long long int H,W;
    cin >> H >> W;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:22: error: expected ';' before '{' token
   19 |     if(H%2==1&&W%2==1{
      |                      ^
      |                      ;
a.cc:21:6: error: expected primary-expression before 'else'
   21 |     }else{
      |      ^~~~
a.cc:21:6: error: expected ')' before 'else'
   21 |     }else{
      |      ^~~~
      |      )
a.cc:19:7: note: to match this '('
   19 |     if(H%2==1&&W%2==1{
      |       ^
Language: C++


#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main()
{
    unsigned __int64 H, W;
    cin >> H >> W;
    unsigned __int64  num = 0;
    unsigned __int64 a = H / 2;
    if(H%2==1)
        a++;
    unsigned __int64 b = W / 2;
    if(W%2==1)
        b++;
    unsigned __int64 k = a * b;
    num += k;
    a = H / 2;
    b = W / 2;
    k = a * b;
    num += k;
    cout << num << endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected initializer before 'H'
    7 |     unsigned __int64 H, W;
      |                      ^
a.cc:8:12: error: 'H' was not declared in this scope
    8 |     cin >> H >> W;
      |            ^
a.cc:8:17: error: 'W' was not declared in this scope
    8 |     cin >> H >> W;
      |                 ^
a.cc:9:23: error: expected initializer before 'num'
    9 |     unsigned __int64  num = 0;
      |                       ^~~
a.cc:10:22: error: expected initializer before 'a'
   10 |     unsigned __int64 a = H / 2;
      |                      ^
a.cc:12:9: error: 'a' was not declared in this scope
   12 |         a++;
      |         ^
a.cc:13:22: error: expected initializer before 'b'
   13 |     unsigned __int64 b = W / 2;
      |                      ^
a.cc:15:9: error: 'b' was not declared in this scope
   15 |         b++;
      |         ^
a.cc:16:22: error: expected initializer before 'k'
   16 |     unsigned __int64 k = a * b;
      |                      ^
a.cc:17:5: error: 'num' was not declared in this scope; did you mean 'enum'?
   17 |     num += k;
      |     ^~~
      |     enum
a.cc:17:12: error: 'k' was not declared in this scope
   17 |     num += k;
      |            ^
a.cc:18:5: error: 'a' was not declared in this scope
   18 |     a = H / 2;
      |     ^
a.cc:19:5: error: 'b' was not declared in this scope
   19 |     b = W / 2;
      |     ^
Language: C++

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

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


Compiler output:
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: Java


import java.util.Scanner;

public class Main {
    public static void main(final String[] args) throws Exception {

        final Scanner scan = new Scanner(System.in);
        final String line = scan.nextLine();
        String[] cells = line.split(" ");

        long yoko = Long.parseLong(cells[0]);
        long tate = Long.parseLong(cells[1]);

        long ans1 = (tate / 2) * (yoko/2);
        long ans2 = (tate - (tate /2)) * (yoko - (yoko/2));
        
        long ans = ans1 + ans2;

        System.out.println(ans);
        scan.close();
    }

Compiler output:
Main.java:21: error: reached end of file while parsing
    }
     ^
1 error
Language: Java


import java.util.Scanner;

public class App2 {
    public static void main(final String[] args) throws Exception {

      final Scanner scan = new Scanner(System.in);
        final String line = scan.nextLine();
        String[] cells = line.split(" ");

        long yoko = Long.parseLong(cells[0]);
        long tate = Long.parseLong(cells[1]);


        long ans1 = (tate / 2) * (yoko/2);
        long ans2 = (tate - (tate /2)) * (yoko - (yoko/2));
        
        long ans = ans1 + ans2;

        System.out.println(ans);
        scan.close();
    }

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

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

int main() {
  int64_t H, W;
  cin >> H >> W;
  if (H == 1) or (W == 1) {
    cout << 1;
  } else {
    cout << (H * W + 1) / 2;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected primary-expression before 'or' token
    7 |   if (H == 1) or (W == 1) {
      |               ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i < (int)(n); i++)
typedef long long ll;
 
int main() {
    ll h,w; cin >> h >> w;
    if(h == 1 || w == 1)[
        cout << 1 << endl;
        return 0;
    ]
    ll sum = h*w;
    cout << (sum + 1) / 2 << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: warning: capture of variable 'std::cout' with non-automatic storage duration
   11 |         cout << 1 << endl;
      |         ^~~~
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:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:13: error: expected ',' before '<<' token
   11 |         cout << 1 << endl;
      |             ^~~
      |             ,
a.cc:11:14: error: expected identifier before '<<' token
   11 |         cout << 1 << endl;
      |              ^~
a.cc:11:26: error: expected ']' before ';' token
   11 |         cout << 1 << endl;
      |                          ^
      |                          ]
a.cc: In lambda function:
a.cc:11:26: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:13:5: error: expected primary-expression before ']' token
   13 |     ]
      |     ^
a.cc:15:14: error: 'sum' was not declared in this scope
   15 |     cout << (sum + 1) / 2 << endl;
      |              ^~~
Language: C++

 #include<bits/stdc++.h>

using namespace std;

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

  long double s = (long double)c - (long double)a  - (long double)b;
  long double t = sqrt(long double a) * sqrt(long double b);
  if(s > 0){ 
  if(s > t)  cout << "Yes"; }
  else cout << "No";
 
 return 0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected primary-expression before 'long'
   10 |   long double t = sqrt(long double a) * sqrt(long double b);
      |                        ^~~~
a.cc:10:46: error: expected primary-expression before 'long'
   10 |   long double t = sqrt(long double a) * sqrt(long double b);
      |                                              ^~~~
Language: Java

import java.util.*;

public class cool {
		  public static void main(String[] args){
		    Scanner sc = new Scanner(System.in);
		    long a = sc.nextInt();
		    long b = sc.nextInt();
		    long ans = ((a+1)/2)*((b+1)/2)+(a/2)*(b/2);  
		    System.out.println(ans);
		  }
		}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'ans' was not declared in this scope; did you mean 'anc'?
    8 |         ans = (H*W)/2;
      |         ^~~
      |         anc
a.cc:10:3: error: 'ans' was not declared in this scope; did you mean 'anc'?
   10 |   ans = ((H*W)/2)+0.5;
      |   ^~~
      |   anc
a.cc:12:9: error: 'ans' was not declared in this scope; did you mean 'anc'?
   12 | cout << ans << endl;
      |         ^~~
      |         anc
Language: C

#include <stdio.h>
#include <stdlib.h>

int main()
{
    double H,W,sum;
    scanf("%lld%lld",&H,&W);

    sum=H*W;
    if(sum%2==0)
    {
        printf("%lld",sum/2);

    }
    else
    {
        printf("%lld",sum/2+1);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:11: error: invalid operands to binary % (have 'double' and 'int')
   10 |     if(sum%2==0)
      |           ^
Language: C++

#include <stdio.h>

int main(){
    long long unsigned int h, w;
    scanf("%llu %llu", &h, &w);

    if(h == 1 || w == 1){
        print("%d\n", 1);
        return 0;
    }

    long long unsigned int ans = 0;
    for(long long unsigned int i=0; i<w; i++){
        if(i%2==0){
            ans+= (h+1)/2;
        }else{
            ans+= h/2;
        }
    }
    printf("%llu\n", ans);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'print' was not declared in this scope; did you mean 'printf'?
    8 |         print("%d\n", 1);
      |         ^~~~~
      |         printf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'long long long' is too long for GCC
    7 |   long long long long int k=a*b;
      |             ^~~~
a.cc:7:18: error: 'long long long' is too long for GCC
    7 |   long long long long int k=a*b;
      |                  ^~~~
Language: C++

int main(char **chr){
  int H = sizeof(chr[0]) / sizeof(char), w = sizeof(chr) / sizeof(chr[0]) / sizeof(char);
  return (H - H % 2) * int(W / 2) + int(H / 2) + H % 2;
}

Compiler output:
a.cc:1:5: warning: first argument of 'int main(char**)' should be 'int' [-Wmain]
    1 | int main(char **chr){
      |     ^~~~
a.cc:1:5: warning: 'int main(char**)' takes only zero or two arguments [-Wmain]
a.cc: In function 'int main(char**)':
a.cc:3:28: error: 'W' was not declared in this scope
    3 |   return (H - H % 2) * int(W / 2) + int(H / 2) + H % 2;
      |                            ^
Language: C++

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

typedef long long int ll;

int main()
{
    ll h, w;
    cin >> h >> w;

    if(h == 1 || w == 1)[
        cout << 1;
        return 0;
    ]

    if(w % 2 == 0){
        cout << w / 2 * h;
    }
    else if(h % 2 == 0){
        cout << h / 2 * w;
    }
    else{
        ll ans = (w + 1) / 2 * (h + 1) / 2;
        ans += (w / 2) * (h / 2);
        cout << ans;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: warning: capture of variable 'std::cout' with non-automatic storage duration
   12 |         cout << 1;
      |         ^~~~
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:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:13: error: expected ',' before '<<' token
   12 |         cout << 1;
      |             ^~~
      |             ,
a.cc:12:14: error: expected identifier before '<<' token
   12 |         cout << 1;
      |              ^~
a.cc:12:18: error: expected ']' before ';' token
   12 |         cout << 1;
      |                  ^
      |                  ]
a.cc: In lambda function:
a.cc:12:18: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:14:5: error: expected primary-expression before ']' token
   14 |     ]
      |     ^
a.cc:19:5: error: 'else' without a previous 'if'
   19 |     else if(h % 2 == 0){
      |     ^~~~
Language: C++

#include<stdio.h>
int main(){
    double a,b;
    scanf("%lf %lf", &a,&b);
  	if(a%2==1 && b%2==1){
  		printf("%lf",(a*b+1)/2);	
    }else{
      	printf("%lf",(a*b)/2);
    }
    return 0;
}

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

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

typedef long long int ll;

int main()
{
    ll h, w;
    cin >> h >> w;

    if(h == 1 || w == 1)[
        cout << 1;
      return 0;
    ]

    if(w % 2 == 0){
        cout << w / 2 * h;
    }
    else if(h % 2 == 0){
        cout << h / 2 * w;
    }
    else{
        ll ans = (w + 1) / 2 * (h + 1) / 2;
        ans += (w / 2) * (h / 2);
        cout << ans;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: warning: capture of variable 'std::cout' with non-automatic storage duration
   12 |         cout << 1;
      |         ^~~~
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:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:13: error: expected ',' before '<<' token
   12 |         cout << 1;
      |             ^~~
      |             ,
a.cc:12:14: error: expected identifier before '<<' token
   12 |         cout << 1;
      |              ^~
a.cc:12:18: error: expected ']' before ';' token
   12 |         cout << 1;
      |                  ^
      |                  ]
a.cc: In lambda function:
a.cc:12:18: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:14:5: error: expected primary-expression before ']' token
   14 |     ]
      |     ^
a.cc:19:5: error: 'else' without a previous 'if'
   19 |     else if(h % 2 == 0){
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'cou' was not declared in this scope; did you mean 'cos'?
    9 |   else cou<<1<<endl;
      |        ^~~
      |        cos
Language: C++

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

using namespace std;

#define INF 1e9
#define MAXN 100005
#define MAXM 100005
#define ll long long
#define vi vector<int>
#define vll vector<long long>
#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define pii pair<int, int>

unsigned long ans, H, W;

void solve(){
    if(H % 2 == 0){
        ans = (H/2) * W;
    else if (W % 2 == 0){
        ans = (W/2) * H;
    } else {
        ans = W * (H-1) / 2;
        ans += (W+1) / 2;
    }

    cout << ans << endl;
}

int main(){
    cin >> H >> W;

    solve();
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:23:5: error: expected '}' before 'else'
   23 |     else if (W % 2 == 0){
      |     ^~~~
a.cc:21:19: note: to match this '{'
   21 |     if(H % 2 == 0){
      |                   ^
Language: C++

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

int main() {
  
  int_64t H,W;
  cin >> H >> W;
  if (H % 2 ==0 || W % 2 == 0){
    cout << H * W / 2 <<endl;
  }
  else {
    cout << (H-1) * W / 2 + H / 2 +1 << endl;
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'int_64t' was not declared in this scope; did you mean 'int64_t'?
    6 |   int_64t H,W;
      |   ^~~~~~~
      |   int64_t
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;
      |               ^
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;
  }
  else
  {
    cout<<((h*w)+1)/2<<endl;
  }
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int h,w;
    cin >> h >> w;
    int product = h*w ;
    if(product%2==0) cout<< product/2 ;
    else if (h%2==1 && w%2==1) cout<< product/2 + 1 ;
    else cout<< product/2 - 1
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: expected ';' before 'return'
   12 |     else cout<< product/2 - 1
      |                              ^
      |                              ;
   13 |     return 0;
      |     ~~~~~~
Language: C++

#include <iostream>
using namespace std;

int H, W;
int answer;

int main() {
  cin >> H >> W;
  if(H % 2 == 0) answer = (H / 2) * W;
  if(H % 2 == 1) {
    --H;
    answer = (H/2) * W;
    cout << answer;
  }

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

#include<stdio.h>
int main(){
    int a,b;
    scanf("%d %d", &a,&b);
  	if(a%2==1 && b%2==1){
  		printf("%d",(a*b+1)/2;	
    }else if(a%2==0 && b%2==0){
      	printf("%d",(a*b)/2);
    }else{
      	printf("%d",(a*b)/2);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:38: error: expected ')' before ';' token
    6 |                 printf("%d",(a*b+1)/2;
      |                       ~              ^
      |                                      )
Language: C++

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

int main() {
  int a,b;
  if(a%2==0 && b%2==0){
    cout << a*b/2;
    }
  if (a%2==1 || b%2==0){
    cout << (a*b/2)+1
}


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

using namespace std;
using ll = long long;
using P = pair<int,int>;


int main() {
    unsigned long long	 h, w;
    cin >> h >> w;

    unsigned long long ans = 0;
    if (h%2 == 0) {
        rep(i,w) ans += h/2;
    } else {
        rep(i,w) {
            if (i%2 == 0) ans += (h+1)/2;
            else ans += h/2;
        }
    }

    // unsigned long long ans = (h*w+1) / 2;
    cout << ans << endl;



    return 0;
}



Compiler output:
a.cc:3:11: error: 'pair' does not name a type
    3 | using P = pair<int,int>;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> h >> w;
      |     ^~~
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:12:13: error: 'i' was not declared in this scope
   12 |         rep(i,w) ans += h/2;
      |             ^
a.cc:12:9: error: 'rep' was not declared in this scope
   12 |         rep(i,w) ans += h/2;
      |         ^~~
a.cc:14:13: error: 'i' was not declared in this scope
   14 |         rep(i,w) {
      |             ^
a.cc:14:9: error: 'rep' was not declared in this scope
   14 |         rep(i,w) {
      |         ^~~
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout << ans << endl;
      |     ^~~~
a.cc:21:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:20: error: 'endl' was not declared in this scope
   21 |     cout << ans << 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;
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main(){
    int a,b;
    int t;
    int u;
    int ans;
    cin >>a>>b;
    t=max(a,b);
    u=min(a,b);
    t/=2;
    if(t%2==1)t+=1;
    u/=2;
    if(u%2==1)u+=1;
    ans=t*u+(t-1)*(u-1);
    cout <<ans;
    

    }
}

Compiler output:
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'int128_t' was not declared in this scope; did you mean 'int8_t'?
    5 |   int128_t h,w;
      |   ^~~~~~~~
      |   int8_t
a.cc:6:8: error: 'h' was not declared in this scope
    6 |   cin>>h>>w;
      |        ^
a.cc:6:11: error: 'w' was not declared in this scope
    6 |   cin>>h>>w;
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
	long long int a,b;
    cin >> a >> b;
    long long int x = (a*b) >> 1;
    if(a%2 == 1 && b%2 == 1)
        cout << long long int(++x) << endl;
    else
        cout << long long int(x) << endl;

	return 0;
}


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

#include <bits/stdc++.h>

int main() {
  long long h, w;
  std::cin >> h >> w;
  long long cnt = 0;
  long long m = (h + 1) / 2;
  if (h > 1 && m > 1) {
    cnt += m * (w + 1) / 2;
    cnt += ((m-1) * w/2) 
  } else {
    cnt = 1;
  }
  std::cout << cnt << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: expected ';' before '}' token
   10 |     cnt += ((m-1) * w/2)
      |                         ^
      |                         ;
   11 |   } else {
      |   ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before '=' token
    7 |     if (H!==1&&W!==1)cout<<ans<<endl;
      |            ^
a.cc:7:19: error: expected primary-expression before '=' token
    7 |     if (H!==1&&W!==1)cout<<ans<<endl;
      |                   ^
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:7:21: error: expected statement before ')' token
    7 |     if(h!=1 && w!=1)) {
      |                     ^
Language: C++

#include <stdio.h>

int main(void){
  long long int H,W;

  scanf_s("%lld%lld",&H,&W);
  printf("%lld",((W+1)/2)*((H+1)/2)+(W/2)*(H/2));

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |   scanf_s("%lld%lld",&H,&W);
      |   ^~~~~~~
      |   scanf
Language: C

#include<stdio.h>
int main(void){
  long H,W;
  scanf("%ld%ld",&H,&W);
  long long a=H*W;
  if(a%2==0){
printf("%lld",a/2);
  }
  else {
    printf("%lld",a/2+1);
  }
  return 0;

Compiler output:
main.c: In function 'main':
main.c:12:3: error: expected declaration or statement at end of input
   12 |   return 0;
      |   ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using lint = long;
using ll = long long;
#define rep(i,n) for(lint (i) = 0;(i) < (lint)(n);(i)++)
#define repInRange(i,start,end) for(lint (i) = (start);(i) < (end);++(i))
using lpair = pair<lint,lint>;
using Vecint = vector<lint>;
using Llist = list<lint>;

ll pow(ll k,ll l) {
	ll ret = 1;
	rep(i,l) {
		ret *= k;
	}
	return ret;
}

template <typename T>
T sum(vector<T> vec) {
	ll ret = 0;
	rep(i,vec.size()) {
		ret += vec.at(i);
	}
	return ret;
}

void Main() {
	unsigned ll h,w;
	cin >> h >> w;
	cout << h*w/2 + h*w%2 << '\n';
}

signed main() {
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	Main();
	return 0;
}


Compiler output:
a.cc: In function 'void Main()':
a.cc:29:21: error: expected initializer before 'h'
   29 |         unsigned ll h,w;
      |                     ^
a.cc:30:16: error: 'h' was not declared in this scope
   30 |         cin >> h >> w;
      |                ^
a.cc:30:21: error: 'w' was not declared in this scope
   30 |         cin >> h >> w;
      |                     ^
Language: C++

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

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

#include<stdio.h>
int main(){
    double a,b;
    scanf("%lf %lf", &a,&b);
  	if(a%2==1 && b%2==1){
  		printf("%d",(((a*b)-1)/2)+1);	
    }else if(a%2==0 && b%2==0){
      	printf("%d",(a*b)/2);
    }else{
      	printf("%d",(a*b)/2);
    }
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  int h,w;
  cin>>h>>w;
  int a=h/2;
  if(h%2==0){
     cout<<a*k<<endl;
}
   if(h%2==1){
     cout<<a*k+k/2+1<<endl;
}
}


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

#include "stdafx.h"
#include <stdio.h>

int main(void){
  long long int H,W;

  scanf_s("%lld%lld",&H,&W);
  printf("%lld",((W+1)/2)*((H+1)/2)+(W/2)*(H/2));

  return 0;
}

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

#include<bits/stdc++.h>
#define HohleFeuerwerke using namespace std
HohleFeuerwerke;
unsigned long long a,b;
int main()
{
	ios::sync_with_stdio(false);
	cout.tie(0);cin.tie(0);
	cin>>a>>b;
	if(a==1) cout<<1<<endl;
	else if(h==1) cout<<1<<endl;
	else 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:11:17: error: 'h' was not declared in this scope
   11 |         else if(h==1) cout<<1<<endl;
      |                 ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> h >> w;
      |     ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << (h*w)/2;
      |         ^~~~
a.cc:10:13: error: 'cout' was not declared in this scope
   10 |             cout << 0;
      |             ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << ((h*w)/2)+1;
      |         ^~~~
Language: C++

char ** main(int H,int W){
   return (char** )((H - H % 2) * int(W / 2) + int(H / 2) + H % 2);
}

Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | char ** main(int H,int W){
      | ^~~~
a.cc:1:9: warning: second argument of 'int main(int, int)' should be 'char **' [-Wmain]
    1 | char ** main(int H,int W){
      |         ^~~~
a.cc: In function 'int main(int, int)':
a.cc:2:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2 |    return (char** )((H - H % 2) * int(W / 2) + int(H / 2) + H % 2);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:2:11: error: invalid conversion from 'char**' to 'int' [-fpermissive]
    2 |    return (char** )((H - H % 2) * int(W / 2) + int(H / 2) + H % 2);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |           |
      |           char**
Language: C++

#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#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 int INF = 1001001001;
const int mod = 1000000007;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:33: error: expected ')' before ';' token
   18 |         ans = (((w * h) / 2) + 1;
      |               ~                 ^
      |                                 )
Language: C++

#include<iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
   int h,w;
   cin >> h >> w ;
   int ans = 0;
   int loop
  if(h>=w)
    loop=h;
  else
    loop=w;
  
  while(loop>0){
     if(h%2==0)
     ans+=h/2;
   else
     ans+=h/2+1;
     
   if(w%2==0)
     ans+=w/2;
   else
     ans+=w/2+1;

    ans--;
    h--;
    w--;
    loop--;
  }
   
  cout << ans << endl;
     
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected initializer before 'if'
   10 |   if(h>=w)
      |   ^~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else
      |   ^~~~
a.cc:13:5: error: 'loop' was not declared in this scope
   13 |     loop=w;
      |     ^~~~
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(final String[] args) throws Exception {

        final Scanner scan = new Scanner(System.in);
        final String line = scan.nextLine();
        String[] cells = line.split(" ");

        long tate = Integer.parseLong(cells[0]);
        long yoko = Integer.parseLong(cells[1]);

        long ans1 = (tate / 2) * (yoko/2);
        long ans2 = (tate - (tate /2)) * (yoko/2 + 1);
        
        long ans = ans1 + ans2;

        System.out.println(ans);
        scan.close();
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
        long tate = Integer.parseLong(cells[0]);
                           ^
  symbol:   method parseLong(String)
  location: class Integer
Main.java:11: error: cannot find symbol
        long yoko = Integer.parseLong(cells[1]);
                           ^
  symbol:   method parseLong(String)
  location: class Integer
2 errors
Language: C++

#include<stdio.h>
int main(){
    int a,b;
    scanf("%d %d", &a,&b);
  	if(a%2==1 && b%2==1){
  		printf("%d",((a*b)/2)+1);	
    }else(a%2==0 && b%2==0){
      	printf("%d",(a*b)/2);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ';' before '{' token
    7 |     }else(a%2==0 && b%2==0){
      |                            ^
      |                            ;
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int h=sc.nextInt();
        int w=sc.nextInt();
        long res1=0,res2=0;
        res1=(long)(((w+1)/2)*((h+1)/2));
        res2=(long)((w/2)*(h/2));
        System.out.println(res1+res2);
    }


Compiler output:
Main.java:12: error: reached end of file while parsing
    }
     ^
1 error