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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'int64_t' was not declared in this scope
    2 |   int64_t h,w;
      |   ^~~~~~~
a.cc:1:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | int main() {
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> h >> w;
      |   ^~~
a.cc:3:10: error: 'h' was not declared in this scope
    3 |   cin >> h >> w;
      |          ^
a.cc:3:15: error: 'w' was not declared in this scope
    3 |   cin >> h >> w;
      |               ^
a.cc:4:6: error: 'min' was not declared in this scope; did you mean 'main'?
    4 |   if(min(h,w) == 1) {
      |      ^~~
      |      main
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout << 1 << endl;
      |     ^~~~
a.cc:5:18: error: 'endl' was not declared in this scope
    5 |     cout << 1 << endl;
      |                  ^~~~
a.cc:8:28: error: 'cout' was not declared in this scope
    8 |   if(h%2 != 0 || w%2 != 0) cout << w*h/2+1 << endl;
      |                            ^~~~
a.cc:8:47: error: 'endl' was not declared in this scope
    8 |   if(h%2 != 0 || w%2 != 0) cout << w*h/2+1 << endl;
      |                                               ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout << w*h/2 << endl;
      |        ^~~~
a.cc:9:25: error: 'endl' was not declared in this scope
    9 |   else cout << w*h/2 << endl;
      |                         ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: break statement not within loop or switch
    9 |     break;
      |     ^~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: expected ';' before '}' token
   14 |       ans += (r/2)
      |                   ^
      |                   ;
   15 |     }
      |     ~
Language: C++

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


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

#include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <string>
#include <deque>
using namespace std;
using P = pair<int,int>;
typedef long long int ll;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)

int main(){ 
    long double h,w;cin >> h >> w;
    if(w==1 || h==1){
        if(h%2==0){
            cout<<1<<endl;
            return 0; 
        }


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




Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: invalid operands of types 'long double' and 'int' to binary 'operator%'
   19 |         if(h%2==0){
      |            ~^~
      |            | |
      |            | int
      |            long double
a.cc:25:9: error: invalid operands of types 'long double' and 'int' to binary 'operator%'
   25 |     if(w%2==0){
      |        ~^~
      |        | |
      |        | int
      |        long double
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:16:11: note: to match this '{'
   16 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <string>
#include <deque>
using namespace std;
using P = pair<int,int>;
typedef long long int ll;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)

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


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




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

#include <stdio.h>
#include <stdlib.h>
int main(int a, char **b) {
  	int H,W; scanf("%d %d", &H, &W);
	printf("%d", int((H * W + H * W % 2) / 2));
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:22: error: expected expression before 'int'
    5 |         printf("%d", int((H * W + H * W % 2) / 2));
      |                      ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int h,w;cin>>h>>w;
  cout<<(h%2==1&&w%2==1?h*w2/2+1:h*w/2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:27: error: 'w2' was not declared in this scope; did you mean 'w'?
    5 |   cout<<(h%2==1&&w%2==1?h*w2/2+1:h*w/2);
      |                           ^~
      |                           w
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |   int h,w;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
      |                  ^~~
a.cc:4:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |   cout<<(h*w+1)/2;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
int main(){
  int h,w;cin>>h>>w;
  cout<<(h*w+1)/2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |   int h,w;cin>>h>>w;
      |           ^~~
      |           std::cin
In file included 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:4:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |   cout<<(h*w+1)/2;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: expected primary-expression before 'long'
   14 |         cout<<long long int(H*W/2)+1;
      |               ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(void) {
  long result;
  int x, y;
  
  cin >> x >> y;
  if(x==1 || y==1){
    result = 1;
  }
  else{
    result = (x * y)+1 / 2;
  }
  cout << result << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:15:26: error: expected '}' at end of input
   15 |   cout << result << endl;
      |                          ^
a.cc:4:16: note: to match this '{'
    4 | int main(void) {
      |                ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected primary-expression before ';' token
    8 |       cout<<1<<;
      |                ^
Language: C++

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

int main() {
  if (H > 1 && W > 1) {cout << (H*W+1)/2 << endl;}
  else {cout << 1 << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'H' was not declared in this scope
    6 |   if (H > 1 && W > 1) {cout << (H*W+1)/2 << endl;}
      |       ^
a.cc:6:16: error: 'W' was not declared in this scope
    6 |   if (H > 1 && W > 1) {cout << (H*W+1)/2 << endl;}
      |                ^
Language: C++

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


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

   long h,w,ans; cin >> h >> w;
   if(h==1 or w==1) cout << 1 << endl;
   else cout << (h*w+1)/2; << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: expected primary-expression before '<<' token
   12 |    else cout << (h*w+1)/2; << endl;
      |                            ^~
Language: C++

#include <iostream>
using namespace std;

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

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

include <bits/stdc++.h>
using namespace std; 
int main() {
  long int 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:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> H >> W;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << 1 << endl;
      |   ^~~~
a.cc:7:16: error: 'endl' was not declared in this scope
    7 |   cout << 1 << endl;
      |                ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |   else {cout << (h*w+1)/2 << endl;
      |         ^~~~
a.cc:9:18: error: 'h' was not declared in this scope
    9 |   else {cout << (h*w+1)/2 << endl;
      |                  ^
a.cc:9:20: error: 'w' was not declared in this scope
    9 |   else {cout << (h*w+1)/2 << endl;
      |                    ^
a.cc:9:30: error: 'endl' was not declared in this scope
    9 |   else {cout << (h*w+1)/2 << endl;
      |                              ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    9 |     printf(1);
      |            ^
      |            |
      |            int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

int main(){
  long long double H,W;
  scanf("%llf%llf",&H,&W);
  if (H ==1 ||W == 1){
    printf(1);
  }else{
    printf("%lld",(H*W+1)/2);
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'long long' specified with 'double'
    6 |   long long double H,W;
      |        ^~~~
a.cc:6:8: error: 'long long' specified with 'double'
a.cc:9:12: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    9 |     printf(1);
      |            ^
      |            |
      |            int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

int main(){
  long long double H,W;
  scanf("%llf%llf",&H,&W);
  if (H ==1 ||W == 1){
    printf("%d",1);
  }else{
    printf("%lld",(H*W+1.000000000000000)/2.0000000000000000000);
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'long long' specified with 'double'
    6 |   long long double H,W;
      |        ^~~~
a.cc:6:8: error: 'long long' specified with 'double'
Language: C++

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

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

    ll a, b;

    if (h == 1 || w == 1) {
        cout << 1 << endl;
        return 0;
    }
    
    if (h%2) {
        a = h/2 + 1;
        b = h/2;
    }
    else {
        a = h/2;
        b = h/2;
    }

    if (w%2) {
        if (w == 1) {
            cout << a << endl;
        }
        else {
            cout << (ll)(((a+b) * (w/2)) + a) << endl;
        }
    }
    else {
        cout << (ll)(((a+b) * (w/2)) << endl;
    }
            
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:35:38: error: invalid operands of types 'll' {aka 'long long int'} and '<unresolved overloaded function type>' to binary 'operator<<'
   35 |         cout << (ll)(((a+b) * (w/2)) << endl;
      |                      ~~~~~~~~~~~~~~~~^~~~~~~
a.cc:35:45: error: expected ')' before ';' token
   35 |         cout << (ll)(((a+b) * (w/2)) << endl;
      |                     ~                       ^
      |                                             )
Language: C++

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

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

B
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();
        long S = H * W;
       if(H==1||W==1){
		System.out.println(1);
	}else{
		 if(S%2==1){
		System.out.println((S-1)/2+1);
	        }else{
	        System.out.println(S/2);
	        }
	}
    }
}



Compiler output:
Main.java:1: error: class, interface, enum, or record expected
B
^
1 error
Language: C++

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

int main(){
    ll n,m;
    cin>>n>>m;
    if(n==1||m==1){
        cout<<'1'
    }else
    printf("%lld",n*m/2+(n*m%2!=0));

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before '}' token
    9 |         cout<<'1'
      |                  ^
      |                  ;
   10 |     }else
      |     ~
Language: C++

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

int main(void){
  long long int a, b, result=0;
  cin >> a >> b;
  if(a % 2 == 1 && b % 2 == 1){
    result += (long long int)((a+1) / 2)
  }
  for(int i = 0; i < (long long int)(b/2); ++i){
    result += a;
  }
  cout << result << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:41: error: expected ';' before '}' token
    9 |     result += (long long int)((a+1) / 2)
      |                                         ^
      |                                         ;
   10 |   }
      |   ~
Language: C++

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

int main(void){
  long long int a, b, result=0;
  cin >> a >> b;
  if(a % 2 == 1 && b % 2 == 1){
    result += (long long int)((a+1) / 2)
  }
  for(int i = 0; i < (long long int)(b/2); ++i){
    result += a
  }
  cout << result << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:41: error: expected ';' before '}' token
    9 |     result += (long long int)((a+1) / 2)
      |                                         ^
      |                                         ;
   10 |   }
      |   ~                                      
a.cc:12:16: error: expected ';' before '}' token
   12 |     result += a
      |                ^
      |                ;
   13 |   }
      |   ~
Language: C++

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

int main(){
  long long double H,W;
  scanf("%llf%llf",&H,&W);
  printf("%lld",(H*W+1.000000000000000)/2.0000000000000000000);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'long long' specified with 'double'
    6 |   long long double H,W;
      |        ^~~~
a.cc:6:8: error: 'long long' specified with 'double'
Language: C++

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




int main() {
int h,w,k,l,v,w,ans=0;
cin>>h>>w;

 rep(i,h){
	 rep(j,w) string m[i][j];
 }
 rep(i,h){
	 rep(j,w)
	if((w[i]+h[j])==(w[v]+h[w])
			||(w[i]-h[j])==(w[v]-h[w])){
		ans++;
		
	}
	else {
 }
cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: redeclaration of 'int w'
   13 | int h,w,k,l,v,w,ans=0;
      |               ^
a.cc:13:7: note: 'int w' previously declared here
   13 | int h,w,k,l,v,w,ans=0;
      |       ^
a.cc:21:14: error: invalid types 'int[int]' for array subscript
   21 |         if((w[i]+h[j])==(w[v]+h[w])
      |              ^
a.cc:21:19: error: invalid types 'int[int]' for array subscript
   21 |         if((w[i]+h[j])==(w[v]+h[w])
      |                   ^
a.cc:21:27: error: invalid types 'int[int]' for array subscript
   21 |         if((w[i]+h[j])==(w[v]+h[w])
      |                           ^
a.cc:21:32: error: invalid types 'int[int]' for array subscript
   21 |         if((w[i]+h[j])==(w[v]+h[w])
      |                                ^
a.cc:22:29: error: invalid types 'int[int]' for array subscript
   22 |                         ||(w[i]-h[j])==(w[v]-h[w])){
      |                             ^
a.cc:22:34: error: invalid types 'int[int]' for array subscript
   22 |                         ||(w[i]-h[j])==(w[v]-h[w])){
      |                                  ^
a.cc:22:42: error: invalid types 'int[int]' for array subscript
   22 |                         ||(w[i]-h[j])==(w[v]-h[w])){
      |                                          ^
a.cc:22:47: error: invalid types 'int[int]' for array subscript
   22 |                         ||(w[i]-h[j])==(w[v]-h[w])){
      |                                               ^
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
a.cc:12:12: note: to match this '{'
   12 | int main() {
      |            ^
Language: C++

#include <stdio.h>
#include <stdlib.h>
int main(int a, char **b) {
	char * c; scanf("%s", c);
	int H = atoi(c); int W = atoi(strchr(c,' '));
	a = H * ((W + W % 2) / 2) + (W % 2 == 1 ? ((H + H % 2) / 2) : 0);
	printf("%d", a);
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:5:39: error: 'strchr' was not declared in this scope
    5 |         int H = atoi(c); int W = atoi(strchr(c,' '));
      |                                       ^~~~~~
a.cc:3:1: note: 'strchr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <stdlib.h>
  +++ |+#include <cstring>
    3 | int main(int a, char **b) {
Language: C

#include <stdio.h>
int main (){
	long H,W,Ans,WQ,HQ,WH,HH; 
	scanf("%ld%ld",&H,&W);
	if(H == 1 || W == 1){
		Ans = 1;
	}else if(W%2==1 && H%2==1){
		WQ =W/2+0.5;
		HQ =H/2+0.5;
		WH =W/2-0.5;
		HH =H/2-0.5;
		Ans =WQ*HQ+WH*HH;
	}else if(W%2==0 && H&2==0)
		WQ =W/2;
		WH =H/2;
		Ans =HQ*WQ;
	}else if(W%2==1 && H&2==0){
		WQ =W/2+0.5;
		HQ =H/2;
		Ans =(WQ+HQ)*HQ;
	}else if(W%2==0 && H&2==1){
		HQ =H/2+0.5;
		WQ =W/2;
		Ans =(WQ+HQ)*WQ;
	}
  printf("%ld\n",Ans);
}

Compiler output:
main.c:17:10: error: expected identifier or '(' before 'else'
   17 |         }else if(W%2==1 && H&2==0){
      |          ^~~~
main.c:21:10: error: expected identifier or '(' before 'else'
   21 |         }else if(W%2==0 && H&2==1){
      |          ^~~~
main.c:26:10: error: expected declaration specifiers or '...' before string constant
   26 |   printf("%ld\n",Ans);
      |          ^~~~~~~
main.c:26:18: error: unknown type name 'Ans'
   26 |   printf("%ld\n",Ans);
      |                  ^~~
main.c:27:1: error: expected identifier or '(' before '}' token
   27 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    unsigned long long  H,W;
    cin>>H>>W;
    if(H==1){
        cout <<(W+1)/2;
      return;
    } 
    if(W==1){
        cout <<(H+1)/2;
      return;
    }
    unsigned long long  hb=H%2;
    unsigned long long wb=W%2;
    unsigned long long  h=H-H%2;
    unsigned long long  w=W-W%2;
    unsigned long long r;
    if(h>w){
        r=(h/2)*w;
    }else{
        r=(w/2)*h;
    }
    cout << r+hb*W/2+wb*H/2+wb*hb*1;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
    9 |       return;
      |       ^~~~~~
a.cc:13:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |       return;
      |       ^~~~~~
Language: C++

#include <stdio.h>
#include <stdlib.h>
int main(int a, char **b) {
	scanf("%s", b);
	int H = atoi(b[0]); int W = atoi(strchr(b[0],' '));
	a = H * ((W + W % 2) / 2) + (W % 2 == 1 ? ((H + H % 2) / 2) : 0);
	printf("%d", a);
	return 1;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:5:42: error: 'strchr' was not declared in this scope
    5 |         int H = atoi(b[0]); int W = atoi(strchr(b[0],' '));
      |                                          ^~~~~~
a.cc:3:1: note: 'strchr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <stdlib.h>
  +++ |+#include <cstring>
    3 | int main(int a, char **b) {
Language: C

#include <stdio.h>
int main (){
	long H,W,Ans,WQ,HQ,WH,HH; 
	scanf("%ld%ld",&H,&W);
	if(H == 1 || W == 1){
		Ans = 1;
	}else if(W%2==1 && H%2==1){
		WQ =W/2+0.5;
		HQ =H/2+0.5;
		WH =W/2-0.5;
		HH =H/2-0.5;
		Ans =WQ*HQ+WH*HH;
	}else if(W%2==0 && H&2==0)
		WQ =W/2;
		WH =H/2;
		Ans =HQ*WQ;
	}else if(W%2==1 && H&2==0){
		WQ =W/2+0.5;
		HQ =H/2;
		Ans =(WQ+HQ)*HQ;
	}else if(W%2==0 && H&2==1){
		HQ =H/2+0.5;
		WQ =W/2;
		Ans =(WQ+HQ)*WQ;
	};
  printf("%ld\n",Ans);
};

Compiler output:
main.c:17:10: error: expected identifier or '(' before 'else'
   17 |         }else if(W%2==1 && H&2==0){
      |          ^~~~
main.c:21:10: error: expected identifier or '(' before 'else'
   21 |         }else if(W%2==0 && H&2==1){
      |          ^~~~
main.c:26:10: error: expected declaration specifiers or '...' before string constant
   26 |   printf("%ld\n",Ans);
      |          ^~~~~~~
main.c:26:18: error: unknown type name 'Ans'
   26 |   printf("%ld\n",Ans);
      |                  ^~~
main.c:27:1: error: expected identifier or '(' before '}' token
   27 | };
      | ^
Language: C++

h,w=input().split()
h=int(h)
w=int(w)
ans=0
if (h%2==0):
    for i in range(w):
        ans+=h//2;
else:
    for i in range(w):
        if (i%2):
            ans+=h//2
        else:
            ans+=h//2+1
print(ans)



Compiler output:
a.cc:1:1: error: 'h' does not name a type
    1 | h,w=input().split()
      | ^
Language: C++

#include<bits/stdc++.h>
 
using namespace std;
 
int main(){
  int h,w;
  cin>>h>>w;
  h1=ceil(h/2);
  w1=ceil(w/2);
  int a=(h1*w1)+((h-h1)*(w-w1));
  cout<<a;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'h1' was not declared in this scope; did you mean 'h'?
    8 |   h1=ceil(h/2);
      |   ^~
      |   h
a.cc:9:3: error: 'w1' was not declared in this scope; did you mean 'w'?
    9 |   w1=ceil(w/2);
      |   ^~
      |   w
Language: Java

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

#define vi vector<int>
#define vl vector<ll>
#define vvi vector<vector<int>>
#define vvl vector<vector<ll>>
// constexpr ll mod = 1e9 + 7;

int main(){
    ll H, W;
    cin >> H >> W;
    ll ans = H*(W/2) + (W%2)*((H+1)/2);

    if(H==1 || W==1) {
        cout << 1 << endl;
        return 0;
    }

    cout << ans << endl;


    return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:2: error: illegal character: '#'
#define rep(i,n) for (int i = 0; i < (n); ++i)
^
Main.java:2: error: class, interface, enum, or record expected
#define rep(i,n) for (int i = 0; i < (n); ++i)
                                 ^
Main.java:2: error: class, interface, enum, or record expected
#define rep(i,n) for (int i = 0; i < (n); ++i)
                                          ^
Main.java:4: error: class, interface, enum, or record expected
typedef long long  ll;
^
Main.java:6: error: illegal character: '#'
#define vi vector<int>
^
Main.java:6: error: class, interface, enum, or record expected
#define vi vector<int>
        ^
Main.java:7: error: illegal character: '#'
#define vl vector<ll>
^
Main.java:8: error: illegal character: '#'
#define vvi vector<vector<int>>
^
Main.java:9: error: illegal character: '#'
#define vvl vector<vector<ll>>
^
Main.java:14: error: class, interface, enum, or record expected
    cin >> H >> W;
    ^
Main.java:15: error: unnamed classes are a preview feature and are disabled by default.
    ll ans = H*(W/2) + (W%2)*((H+1)/2);
    ^
  (use --enable-preview to enable unnamed classes)
Main.java:17: error: class, interface, enum, or record expected
    if(H==1 || W==1) {
    ^
Main.java:19: error: class, interface, enum, or record expected
        return 0;
        ^
Main.java:20: error: class, interface, enum, or record expected
    }
    ^
Main.java:25: error: class, interface, enum, or record expected
    return 0;
    ^
Main.java:26: error: class, interface, enum, or record expected
}
^
18 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: 'long long long' is too long for GCC
    5 |     unsigned long long long r,c;
      |                        ^~~~
a.cc:6:24: error: 'long long long' is too long for GCC
    6 |     unsigned long long long k;
      |                        ^~~~
Language: C++

#include <string>
#include <stdio.h>  
#include <iostream>
using namespace std;
int main(){
	unsigned __int64 a,b;
	cin >>a >>b;
	if (a == 1 || b == 1) {
		cout << 1;
		return 0;
	}
	if(a*b%2==0){
      cout<<a*b/2;
    }
  	else{
		cout << (a * b - 1) / 2;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: expected initializer before 'a'
    6 |         unsigned __int64 a,b;
      |                          ^
a.cc:7:15: error: 'a' was not declared in this scope
    7 |         cin >>a >>b;
      |               ^
a.cc:7:19: error: 'b' was not declared in this scope
    7 |         cin >>a >>b;
      |                   ^
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  unsigned long double A,B,C;
  unsigned long double a,b,c;
  scanf("%lf %lf %lf",&A,&B,&C);
  a=sqrt(A);
  b=sqrt(B);
  c=sqrt(C);
  if(a+b<c){
    printf("Yes");
  }
  else{
    printf("No");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:17: error: both 'unsigned' and 'double' in declaration specifiers
    5 |   unsigned long double A,B,C;
      |                 ^~~~~~
main.c:6:17: error: both 'unsigned' and 'double' in declaration specifiers
    6 |   unsigned long double a,b,c;
      |                 ^~~~~~
Language: C++

#include <vector>
#include <math.h>
#include <iostream>
#include <string>
#include <algorithm>
#include <queue>
#include <iomanip>
#include <deque>
#include <map>

typedef long long ll;
#define rep(i, a, n) for(int i = a; i<n; i++)
#define ALL(a) begin(a), end(a)
#define mii map<int, int>
#define msi map<string, int>
#define vi vector<int>
#define vl vector<ll>
#define MOD 1000000007
#define INF 1e9
#define showVector(v) rep(i,0,v.size()){p(v[i]);p(" ")} pl("")
#define p(s) std::cout << s ;
#define pl(s)  std::cout << s << endl;
using namespace std;

int vec[1000000000][1000000000];
struct Node {
    int y;
    int x;
};
queue<Node> que;
int R, C;
int sy, sx, gy, gx;
int y, x, depth;
vector<int> y_vec = {-1 ,1, -1, 1};
vector<int> x_vec = {-1, 1, 1, -1};

int bfs() {
    int count = 0;
    while (!que.empty()) {
        Node node = que.front(); que.pop();
        y = node.y;
        x = node.x;

        for (int i = 0; i < 4; ++i) {
            Node next = {y + y_vec[i], x + x_vec[i]};

            if (0 <= next.y && next.y <= R-1 && 0 <= next.x && next.x <= C - 1 && vec[next.y][next.x] != 'x') {
                vec[next.y][next.x] = 'x';
                que.push(next);
            }
            ++count;
        }
    }
    return 0;
}
 
int main() {
    cin >> R >> C;
    Node start = {0, 0};
    que.push(start);
    cout << bfs() << endl;
    return 0;
}


Compiler output:
/tmp/cc6r7fZ9.o: in function `bfs()':
a.cc:(.text+0x17): relocation truncated to fit: R_X86_64_PC32 against symbol `que' defined in .bss section in /tmp/cc6r7fZ9.o
a.cc:(.text+0x2d): relocation truncated to fit: R_X86_64_PC32 against symbol `que' defined in .bss section in /tmp/cc6r7fZ9.o
a.cc:(.text+0x3e): relocation truncated to fit: R_X86_64_PC32 against symbol `y' defined in .bss section in /tmp/cc6r7fZ9.o
a.cc:(.text+0x47): relocation truncated to fit: R_X86_64_PC32 against symbol `x' defined in .bss section in /tmp/cc6r7fZ9.o
a.cc:(.text+0x62): relocation truncated to fit: R_X86_64_PC32 against symbol `y_vec' defined in .bss section in /tmp/cc6r7fZ9.o
a.cc:(.text+0x72): relocation truncated to fit: R_X86_64_PC32 against symbol `y' defined in .bss section in /tmp/cc6r7fZ9.o
a.cc:(.text+0x86): relocation truncated to fit: R_X86_64_PC32 against symbol `x_vec' defined in .bss section in /tmp/cc6r7fZ9.o
a.cc:(.text+0x96): relocation truncated to fit: R_X86_64_PC32 against symbol `x' defined in .bss section in /tmp/cc6r7fZ9.o
a.cc:(.text+0xaf): relocation truncated to fit: R_X86_64_PC32 against symbol `R' defined in .bss section in /tmp/cc6r7fZ9.o
a.cc:(.text+0xc7): relocation truncated to fit: R_X86_64_PC32 against symbol `C' defined in .bss section in /tmp/cc6r7fZ9.o
a.cc:(.text+0x130): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
Language: C++

#include <algorithm>
#include <string>
#include <vector>
#include <queue>
using namespace std;
int vec[1000000000][1000000000];
struct Node {
    int y;
    int x;
};
queue<Node> que;
int R, C;
int sy, sx, gy, gx;
int y, x, depth;
vector<int> y_vec = {-1 ,1, -1, 1};
vector<int> x_vec = {-1, 1, 1, -1};

int bfs() {
    int count = 0;
    while (!que.empty()) {
        Node node = que.front(); que.pop();
        y = node.y;
        x = node.x;

        for (int i = 0; i < 4; ++i) {
            Node next = {y + y_vec[i], x + x_vec[i]};

            if (0 <= next.y && next.y <= R-1 && 0 <= next.x && next.x <= C - 1 && vec[next.y][next.x] != 'x') {
                vec[next.y][next.x] = 'x';
                que.push(next);
            }
            ++count;
        }
    }
    return 0;
}
 
int main() {
    cin >> R >> C;
    Node start = {0, 0};
    que.push(start);
    cout << bfs() << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:5: error: 'cin' was not declared in this scope
   39 |     cin >> R >> C;
      |     ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include <queue>
  +++ |+#include <iostream>
    5 | using namespace std;
a.cc:42:5: error: 'cout' was not declared in this scope
   42 |     cout << bfs() << endl;
      |     ^~~~
a.cc:42:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:42:22: error: 'endl' was not declared in this scope
   42 |     cout << bfs() << endl;
      |                      ^~~~
a.cc:5:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    4 | #include <queue>
  +++ |+#include <ostream>
    5 | using namespace std;
Language: C++

    include<iostream>
    using namespace std;
    int main()
    {
    long r,c;
    unsigned long long k;
      cin>>r;
      cin>>c;
      k=r*c;
      if(k%2!=0)
      {
      cout<<(k/2)+1;
      }
      else
      {
      cout<<k/2;
      }
    return 0;
    }

Compiler output:
a.cc:1:5: error: 'include' does not name a type
    1 |     include<iostream>
      |     ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:7: error: 'cin' was not declared in this scope
    7 |       cin>>r;
      |       ^~~
a.cc:12:7: error: 'cout' was not declared in this scope
   12 |       cout<<(k/2)+1;
      |       ^~~~
a.cc:16:7: error: 'cout' was not declared in this scope
   16 |       cout<<k/2;
      |       ^~~~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  long long double A,B,C;
  long long double a,b,c;
  scanf("%llf %llf %llf",&A,&B,&C);
  a=sqrt(A);
  b=sqrt(B);
  c=sqrt(C);
  if(a+b<c){
    printf("Yes");
  }
  else{
    printf("No");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:13: error: both 'long long' and 'double' in declaration specifiers
    5 |   long long double A,B,C;
      |             ^~~~~~
main.c:6:13: error: both 'long long' and 'double' in declaration specifiers
    6 |   long long double a,b,c;
      |             ^~~~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:28:24: error: 'b' was not declared in this scope
   28 |   cout << x*y + (h-x)*(b-y) << endl;
      |                        ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 |         if ((h * w) % 2 == 0)cout << (h * w) / 2;
      |             ~~~~~~~ ^ ~
      |                |      |
      |                double int
a.cc:9:26: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |         else if ((h * w) % 2 != 0 )cout << (h * w) / 2 + 1;
      |                  ~~~~~~~ ^ ~
      |                     |      |
      |                     double int
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>r;
      |   ^~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout<<(k/2)+1;
      |   ^~~~
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout<<k/2;
      |   ^~~~
Language: C

#include <stdio.h>

int main(){    
    int n, b;
    
    scanf("%d %d", &n, &b);
    
    casas = a*b;
    
    if(casas%2 == 0)
        printf("%d", casas/2);
    else
        printf("%d", (casas\2) + 1);
    

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'casas' undeclared (first use in this function)
    8 |     casas = a*b;
      |     ^~~~~
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:13: error: 'a' undeclared (first use in this function)
    8 |     casas = a*b;
      |             ^
main.c:13:28: error: stray '\' in program
   13 |         printf("%d", (casas\2) + 1);
      |                            ^
main.c:13:28: error: expected ')' before numeric constant
   13 |         printf("%d", (casas\2) + 1);
      |                      ~     ^~
      |                            )
Language: C++

include<bits/stdc++.h>
using namespace std;
int main()
{
int r,c;
cin>>r;
cin>>c;
long long k=r*c;
if(k%2!=0)
{
cout<<(k/2)+1;
}
  else
  {
  cout<<k/2;
  }
  return 0;
}

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:1: error: 'cin' was not declared in this scope
    6 | cin>>r;
      | ^~~
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout<<(k/2)+1;
      | ^~~~
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout<<k/2;
      |   ^~~~
Language: C++

#include "algorithm"
#include "iomanip"
#include "iostream"
#include "string"
#include "vector"
#define rep(i, to) for (ll i = 0; i < (to); ++i)
#define rep1(i, to) for (ll i = 1; i <= (to); ++i)
#define all(vec) vec.begin(), vec.end()
using namespace std;
typedef long long ll;
template <typename T>
using V = vector<T>;

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

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

#include <iostream>
using namespace std;

typedef long long ll;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |         return;
      |         ^~~~~~
Language: C++

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

int main()
{
    unsigned long  h ,w;
    cin>>h>>w;
    unsigned long ans;
    if(h%2==0)
    {
        ans=unsigned long(h/2)*w;
    }
    else
    {
        if(w%2==0)
        {
            unsigned long a=(h/2)+1;
            unsigned long b=(h/2);
            ans=(a+b)*w/2;
        }
        else
        {
            unsigned long a=(h/2)+1;
            unsigned long b=(w/2)+1;
            ans=a*b+(h/2)*(w/2);
        }
    }
    if( h == 1 || w == 1)
    {
        ans=1;
    }
    cout<<ans<<"\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected primary-expression before 'unsigned'
   12 |         ans=unsigned long(h/2)*w;
      |             ^~~~~~~~
Language: C++

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

#define ll long long
#define mod 1000000007
#define pll pair<long long,long long>
#define pdd pair<long double,long double>
#define vll vector<ll>
#define rep(i,j,n) for(int i=j;i<n;i++)
#define mp make_pair
#define pb push_back
#define pf push_front
#define inf 1e17
priority_queue<pll,vector<pll>,greater<pll> >pq;
priority_queue<ll,vector<ll>,greater<ll> >pq1;

ll dp[2010][2010];
ll a[2010];
ll H;
ll n,l,r;



int main(){
    if(fopen("input.txt", "r"))
    freopen("input.txt", "r", stdin),
    freopen("output.txt", "w", stdout);
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    ll h,w;
    if(h==1 || w==1){
        cout<<1<<"\n";
        continue;
    }
    cin >> h >> w;
    ll p=(h+1)/2;
    ll q=h/2;
    ll ans=(p+q)*(w/2);
    if(w%2){
        ans+=p;
    }
    cout <<ans;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:9: error: continue statement not within a loop
   34 |         continue;
      |         ^~~~~~~~
Language: C

#include<stdio.h>
int main(){
  int unused __attribute__((unused));
  long int MOD = 1000000007;
  unsignrdlong int H, W, result, height, width;

  unused = scanf("%ld %ld", &H, &W);

  if(H%2 == 1 && W%2 == 1){
    height = (H+2)%MOD /2;
    width = (W+2)%MOD /2;
    result = (height*width%MOD + (H%MOD - height%MOD)*(W%MOD - width%MOD )%MOD)%MOD;
  }else{
    result = W*H%MOD /2;
  }
  printf("%ld", result);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: 'unsignrdlong' undeclared (first use in this function); did you mean 'unsigned int'?
    5 |   unsignrdlong int H, W, result, height, width;
      |   ^~~~~~~~~~~~
      |   unsigned int
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:15: error: expected ';' before 'int'
    5 |   unsignrdlong int H, W, result, height, width;
      |               ^~~~
      |               ;
main.c:7:30: error: 'H' undeclared (first use in this function)
    7 |   unused = scanf("%ld %ld", &H, &W);
      |                              ^
main.c:7:34: error: 'W' undeclared (first use in this function)
    7 |   unused = scanf("%ld %ld", &H, &W);
      |                                  ^
main.c:10:5: error: 'height' undeclared (first use in this function)
   10 |     height = (H+2)%MOD /2;
      |     ^~~~~~
main.c:11:5: error: 'width' undeclared (first use in this function)
   11 |     width = (W+2)%MOD /2;
      |     ^~~~~
main.c:12:5: error: 'result' undeclared (first use in this function)
   12 |     result = (height*width%MOD + (H%MOD - height%MOD)*(W%MOD - width%MOD )%MOD)%MOD;
      |     ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: expected '(' before 'else'
   11 |   if else((H * W)%2 == 1){
      |      ^~~~
      |      (
Language: C++

H, W = map(int, input().split())

output = H * W


if output % 2 != 0:
    output += 1
output /= 2

if H == 1 or W == 1:
    output = 1
    
print(int(output))

Compiler output:
a.cc:1:1: error: 'H' does not name a type
    1 | H, W = map(int, input().split())
      | ^
Language: C++

#include <bits/stdc++.h>
 
#define rep(i,n) for(int i=0;i<(n);i++)
#define reps(i,n) for(int i=1;i<=(n);i++)
#define lol long long
#define SUM(n) ((n)+1)*(n)/2　//1〜nまでの総和を求める式
#define mp make_pair
#define fi first
#define se second
#define pu push_back
#define SYOU(x) setprecision(x+1) //小数点桁数を指定する
#define abs(x,y) (max(x,y)-min(x,y))
#define all(v) v.begin(),v.end()
#define UPDight(a,b) (a+b-1)/b //小数点切り上げ 
const int INF = 0x3f3f3f3f;
const long long LINF = 0x3f3f3f3f3f3f3f3fLL;
const int MOD=int(1e9)+7; 
using namespace std;
using pii = pair<int,int>;
typedef vector<int> vit;

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

  double h, w;
  cin >> h >> w;
  if(h % 2 == 1 && w % 2 == 1){
    cout << h * w / 2 + 1 << '\n';
  } else {
    cout << h * w / 2 << '\n';
  }
  return 0;
}


Compiler output:
a.cc:6:28: error: extended character 　 is not valid in an identifier
    6 | #define SUM(n) ((n)+1)*(n)/2　//1〜nまでの総和を求める式
      |                            ^
a.cc: In function 'int main()':
a.cc:28:8: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   28 |   if(h % 2 == 1 && w % 2 == 1){
      |      ~ ^ ~
      |      |   |
      |      |   int
      |      double
a.cc:28:22: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   28 |   if(h % 2 == 1 && w % 2 == 1){
      |                    ~ ^ ~
      |                    |   |
      |                    |   int
      |                    double
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int a; char b[1][450];
int main() {
	strcpy_s(b[0], "1234 456");

	int H = atoi(b[0]); int W = atoi(strchr(b[0],' '));
	a = (H - H % 2) * int(W / 2) + int(H / 2) + H % 2;
	printf("%d", a);
	getchar();
	return 1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'strcpy_s' was not declared in this scope; did you mean 'strcpy'?
    6 |         strcpy_s(b[0], "1234 456");
      |         ^~~~~~~~
      |         strcpy
Language: C

#include <stdio.h>
int main(){
  double k、tate,yoko;
  scanf("%lf %lf",&tate,&yoko);
  for(int i=0;i<yoko;i++){
    if(i%2==0){
      k=k+(tate+1)/2;
    }else{
      k=k+(tate)/2;
    }
  }
  printf("%.0lf",k);
}

Compiler output:
main.c: In function 'main':
main.c:3:11: error: stray '\343' in program
    3 |   double k<U+3001>tate,yoko;
      |           ^~~~~~~~
main.c:3:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tate'
    3 |   double k、tate,yoko;
      |             ^~~~
main.c:3:13: error: 'tate' undeclared (first use in this function)
main.c:3:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:18: error: 'yoko' undeclared (first use in this function)
    3 |   double k、tate,yoko;
      |                  ^~~~
main.c:7:7: error: 'k' undeclared (first use in this function)
    7 |       k=k+(tate+1)/2;
      |       ^
Language: C++

{
	long long int H;
	long long int W;
	long long int s;
	long long int count = 0;
 
	cin >> H;
	cin >> W;
 
	s = H * W;
	if (s % 2 == 1) {
		s = s + 1;
	}
 	if(W == 1||H == 1){
      	count = 1;
    }else{
		count = s / 2;
    }
 
	cout << count;
 
	return 0;
}

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