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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: lvalue required as left operand of assignment
    7 |   if (H ==1||W=1 ){
      |       ~~~~~^~~
Language: C

#include <stdio.h>

int main()
{
	long H, W;
	scanf("%ld %ld", &H, &W);
	
	longlong X = H * W;
	printf("%d\n", (X + 1) / 2);
	fflush(stdout);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: unknown type name 'longlong'
    8 |         longlong X = H * W;
      |         ^~~~~~~~
Language: C++

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

int main(void)
{
    ll h, w;
    cin >> h >> w;
    ll area = h * w;
    // as bishop can not move at all
    if (h == 1 || w == 1) cout << 1 << endl;
    else cout << (h * w + 1) / 2 << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:13:42: error: expected '}' at end of input
   13 |     else cout << (h * w + 1) / 2 << endl;
      |                                          ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(i=0;i<=n;i++);
using p = pair<int,int>;
using 11 = long long;
int mian(){
  int h,w;
  11 h,w;
  cin>>h>>w>>endl;
  if(h==1 || w==1){
    cout<<1<<endl;
  }
 if(h%2==1 && w%2==1){
   cout<< w*h/2+1<<endl;
 }
  else{
    cout<< w*h/2<<endl;
  }
}

Compiler output:
a.cc:3:11: error: 'pair' does not name a type
    3 | using p = pair<int,int>;
      |           ^~~~
a.cc:4:7: error: expected nested-name-specifier before numeric constant
    4 | using 11 = long long;
      |       ^~
a.cc: In function 'int mian()':
a.cc:7:5: error: expected ';' before 'h'
    7 |   11 h,w;
      |     ^~
      |     ;
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin>>h>>w>>endl;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cin>>h>>w>>endl;
      |              ^~~~
      |              std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<1<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |    cout<< w*h/2+1<<endl;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |     cout<< w*h/2<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
   18 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int h,w,x;
void search(int x){
  if(x==diag1[x+2])||(x==diag2[x+2]){
    count++;
    return;
  }
  for(i=0;i<=h;i++){
    cin>>h;
    h= diag1;
    cout<<h<<endl;
  }
  for(i=0;i<=w;i++){
    cin>>w;
    w= diag2;
    cout<<w<<endl;
  }
}
  

Compiler output:
a.cc: In function 'void search(int)':
a.cc:5:9: error: 'diag1' was not declared in this scope
    5 |   if(x==diag1[x+2])||(x==diag2[x+2]){
      |         ^~~~~
a.cc:5:20: error: expected primary-expression before '||' token
    5 |   if(x==diag1[x+2])||(x==diag2[x+2]){
      |                    ^~
a.cc:5:26: error: 'diag2' was not declared in this scope
    5 |   if(x==diag1[x+2])||(x==diag2[x+2]){
      |                          ^~~~~
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i=0;i<=h;i++){
      |       ^
a.cc:11:8: error: 'diag1' was not declared in this scope
   11 |     h= diag1;
      |        ^~~~~
a.cc:14:7: error: 'i' was not declared in this scope
   14 |   for(i=0;i<=w;i++){
      |       ^
a.cc:16:8: error: 'diag2' was not declared in this scope
   16 |     w= diag2;
      |        ^~~~~
Language: C++

include<bits/stdc++.h>
using namespace std;
int main(){
  long long h,w,p;
  cin>>h>>w;
  p=((h*w)/2);
  cout<<p;
  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: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<<p;
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected ';' before 'else'
    8 |         if(w==1||h==1) ans = 1
      |                               ^
      |                               ;
    9 |         else ans = (h*w + 1)/2;
      |         ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
#define All(a) a.begin(),a.end()
#define INF 1000000007
const int MOD = 1000000007;
//accumulate(vec.begin(), vec.end(), 0)

int gcd(int x,int y){
  if(x%y==0) return y;
  else return gcd(y,x%y);
}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:6: error: 'n' was not declared in this scope
   18 |   if(n==1 || w==1) cout<< 1 <<endl;
      |      ^
Language: C++

#include <iostream>
 
int main() {
  long long H, W;
  std::cin >> H >> W;
  if(H == 1 || W == 1) {
    std::cout << "1";
    return 0;
  }
  long long prod = H * W;
  if(prod%2)
    std::cout << prod/2+1;
  else 
    std::cout << prod/2;
  return 0;

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

import java.util.*;
 
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	long h,w;
    h=sc.nextInt();
    w=sc.nextInt();
    long sum=0;
    if((h%2)==0){
      sum=(h/2)*w;
    }else{
      if((w%2)==0){
        sum=(w/2)*h;
      }else{
        sum=((w-1)/2)*h+(w+1)/2;
    System.out.print(sum);
  }
}

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

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt(), num2 = scan.nextInt();

        int multi = num1 * num2;
        if(multi % 2 == 0){
            System.out.println(multi / 2);
        }else{
            System.out.println(multi + 1 / 2)
        }
    }
}


Compiler output:
Main.java:12: error: ';' expected
            System.out.println(multi + 1 / 2)
                                             ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main(){
	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    ll h, w;
    cin >> h >> w;
    if( h == 1 || w == 1){
        cout << "1\n";
        exit(0);
    }
    e = (w/2);
    if(w & 1) o = e+1 ;
    else o = e;

    o *= (h/2);
    if(h & 1){
        e *= (h/2 + 1);
    }
    else{
        e *=  h/2;
    }
    cout << ( h * w) - (o + e) << "\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'e' was not declared in this scope
   13 |     e = (w/2);
      |     ^
a.cc:14:15: error: 'o' was not declared in this scope
   14 |     if(w & 1) o = e+1 ;
      |               ^
a.cc:15:10: error: 'o' was not declared in this scope
   15 |     else o = e;
      |          ^
a.cc:17:5: error: 'o' was not declared in this scope
   17 |     o *= (h/2);
      |     ^
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            var HW = Console.ReadLine().Split().Select(s => long.Parse(s)).ToArray();
            Console.WriteLine((HW[0]*HW[1]+1)/2);
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Numerics;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Text;
      |       ^~~~~~
a.cc:6:7: error: expected nested-name-specifier before 'System'
    6 | using System.Threading;
      |       ^~~~~~
a.cc:7:7: error: expected nested-name-specifier before 'System'
    7 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:13:26: error: 'string' has not been declared
   13 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:13:35: error: expected ',' or '...' before 'args'
   13 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:18:6: error: expected ';' after class definition
   18 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApp2::Program::Main(int*)':
a.cc:15:13: error: 'var' was not declared in this scope
   15 |             var HW = Console.ReadLine().Split().Select(s => long.Parse(s)).ToArray();
      |             ^~~
a.cc:16:13: error: 'Console' was not declared in this scope
   16 |             Console.WriteLine((HW[0]*HW[1]+1)/2);
      |             ^~~~~~~
a.cc:16:32: error: 'HW' was not declared in this scope
   16 |             Console.WriteLine((HW[0]*HW[1]+1)/2);
      |                                ^~
Language: C++

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

int main(){
  int h,w
  cin >> h,w;
  cout << ceil(h*w/2.0) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> h,w;
      |   ^~~
a.cc:7:18: error: 'w' was not declared in this scope
    7 |   cout << ceil(h*w/2.0) << endl;
      |                  ^
Language: C++

include <iostream>

using namespace std;
typedef long long ll;

int main(void){
ll H,W;
cin >> H >> W;
cout << (H * W + 1) / 2 << endl;
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:8:1: error: 'cin' was not declared in this scope
    8 | cin >> H >> W;
      | ^~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout << (H * W + 1) / 2 << endl;
      | ^~~~
a.cc:9:28: error: 'endl' was not declared in this scope
    9 | cout << (H * W + 1) / 2 << endl;
      |                            ^~~~
Language: C++

#incluce<iostream>
using namespace std;
int main(){
   int h,w,ans;
  cin>>h>>w;
  if(h==1||w==1){
    cout<<h<<endl;
    return 0;
  }
  ans=h*w;
  if(ans%2==1) cout<<ans+1<<endl;
  else cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluce; did you mean #include?
    1 | #incluce<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #incluce<iostream>
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout<<h<<endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:14: error: 'endl' was not declared in this scope
    7 |     cout<<h<<endl;
      |              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incluce<iostream>
a.cc:11:16: error: 'cout' was not declared in this scope
   11 |   if(ans%2==1) cout<<ans+1<<endl;
      |                ^~~~
a.cc:11:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:29: error: 'endl' was not declared in this scope
   11 |   if(ans%2==1) cout<<ans+1<<endl;
      |                             ^~~~
a.cc:11:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:12:8: error: 'cout' was not declared in this scope
   12 |   else cout<<ans<<endl;
      |        ^~~~
a.cc:12:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:19: error: 'endl' was not declared in this scope
   12 |   else cout<<ans<<endl;
      |                   ^~~~
a.cc:12:19: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#incluce<iostream>
using namespace std;
int main(){
   int h,w;
  cin>>h>>w;
  if(h==1||w==1){
    cout<<h<<endl;
    return 0;
  }
  ans=h*w;
  if(ans%2==1) cout<<ans+1<<endl;
  else cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluce; did you mean #include?
    1 | #incluce<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #incluce<iostream>
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout<<h<<endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:14: error: 'endl' was not declared in this scope
    7 |     cout<<h<<endl;
      |              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incluce<iostream>
a.cc:10:3: error: 'ans' was not declared in this scope
   10 |   ans=h*w;
      |   ^~~
a.cc:11:16: error: 'cout' was not declared in this scope
   11 |   if(ans%2==1) cout<<ans+1<<endl;
      |                ^~~~
a.cc:11:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:29: error: 'endl' was not declared in this scope
   11 |   if(ans%2==1) cout<<ans+1<<endl;
      |                             ^~~~
a.cc:11:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:12:8: error: 'cout' was not declared in this scope
   12 |   else cout<<ans<<endl;
      |        ^~~~
a.cc:12:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:19: error: 'endl' was not declared in this scope
   12 |   else cout<<ans<<endl;
      |                   ^~~~
a.cc:12:19: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main()
{ int r,c;
 cin>>r>>c;
 int c1=(r*c)/4;
 c1=c1*2;
 int c2=(r*c)%4;
 if(c2==3)
   c2=2;
 else if(c2==2)
   c2=1;
 else if(r%2==0||c%2==0)
   c2=0;
 else
   c2=1;

cout<<c1+c2;}
 
 

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespcae'
    2 | using namespcae std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |  cin>>r>>c;
      |  ^~~
      |  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:19:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 | cout<<c1+c2;}
      | ^~~~
      | 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 namespcae std;

int main()
{ int r,c;
 cin>>r>>c;
 int c1=(r*c)/4;
 c1=c1*2;
 int c2=(r*c)%4;
 if(c2==3)
   c2=2;
 else if(c2==2)
   c2=1;
 else if(c2==1)
   c2=1;

cout<<c1+c2;}
 
 

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespcae'
    2 | using namespcae std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |  cin>>r>>c;
      |  ^~~
      |  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:17:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 | cout<<c1+c2;}
      | ^~~~
      | 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(){
    int A,B;
	cin>>A>>B;
  int sum=A*B;
  if(sum%2=0){cout<<sum/2<<endl;}
else{cout<<(sum+1)/2<<endl;}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: lvalue required as left operand of assignment
    7 |   if(sum%2=0){cout<<sum/2<<endl;}
      |      ~~~^~
Language: C++

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

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

Compiler output:
a.cc:3:10: error: 'Long' does not name a type; did you mean 'long'?
    3 | using ll=Long Long;
      |          ^~~~
      |          long
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll h,w;
      |   ^~
a.cc:7:10: error: 'h' was not declared in this scope
    7 |   cin >> h >> w;
      |          ^
a.cc:7:15: error: 'w' was not declared in this scope
    7 |   cin >> h >> w;
      |               ^
a.cc:12:5: error: expected ';' before 'n'
   12 |   ll n=h*w;
      |     ^~
      |     ;
a.cc:13:5: error: expected ';' before 'ans'
   13 |   ll ans = (n+1)/2;
      |     ^~~~
      |     ;
a.cc:14:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include <iostream>
#include <cstring>
#include <algorithm>
#include <functional>
#include <bits/stdc++.h>
#include <cmath>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:16: error: 'a' was not declared in this scope
   19 |       ans = (h-a) * w / 2 + (w / 2);
      |                ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before 'cout'
    7 |   if(h<2||w<29
      |               ^
      |               ;
    8 |      cout << 0 << endl;
      |      ~~~~      
a.cc:9:3: error: expected primary-expression before 'else'
    9 |   else (h*w%2==0)
      |   ^~~~
a.cc:8:24: error: expected ')' before 'else'
    8 |      cout << 0 << endl;
      |                        ^
      |                        )
    9 |   else (h*w%2==0)
      |   ~~~~                  
a.cc:7:5: note: to match this '('
    7 |   if(h<2||w<29
      |     ^
Language: C++

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

int main(){
  int n,m;
  cin >> h >> w;
  cout << (h*w+1)/2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
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;
      |               ^
Language: C++

#include <iostream>

int main()
{
  int H,W;
  int one,two;
  std::cin >> H >> W;
  
  one = (W / 2 + 1) * (H / 2 + 1);
  tow = (W / 2) * (H / 2);
  
  std:: cout << one + tow;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'tow' was not declared in this scope; did you mean 'two'?
   10 |   tow = (W / 2) * (H / 2);
      |   ^~~
      |   two
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt(), W = scan.nextInt();
		if(H == 1 || W == 1) {
			System.out.println(0);
		}else{
			System.out.println(Math.round(H  * W) / 2.0));
		
		}
	}
	
}

Compiler output:
Main.java:10: error: ';' expected
			System.out.println(Math.round(H  * W) / 2.0));
			                                            ^
1 error
Language: C

#include <stdio.h>
int main(void){
    int h;
    int w;
    scanf("%ld %ld", &h,&w);

    int ans=h*w;

    if(1==ans%2){
      printf("%d",2/(h/w));
    }
    else(0==ans%2){
      printf("%d",(2/(h/w))+1);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:19: error: expected ';' before '{' token
   12 |     else(0==ans%2){
      |                   ^
      |                   ;
Language: C

#include <stdio.h>

int main(){
 int H,W,A;
  A = H*W/2
   if(H%2==1 && W%2==1){
     A = A+1;
   }
  printf("%d",A);
  
  
  
  
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:12: error: expected ';' before 'if'
    5 |   A = H*W/2
      |            ^
      |            ;
    6 |    if(H%2==1 && W%2==1){
      |    ~~
Language: Java

import static java.lang.Math.min;

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


Compiler output:
Main.java:5: error: cannot find symbol
        Scanner in = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner in = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args){
      Scanner scn = new Scanner(System.in);
      int h = scn.nextInt();
      int w = scn.nextInt();
      int H -= 1;
      int W -= 1;
      int ans;
      if(H%2 == 0){
      	ans = W*(H/2);
      } else {
      	ans = W*((int)Math.floor(H/2));
        ans += (int)Math.ceil(W/2);
      }
      System.out.println(ans);
    }
}


Compiler output:
Main.java:7: error: ';' expected
      int H -= 1;
           ^
Main.java:8: error: ';' expected
      int W -= 1;
           ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args){
      Scanner scn = new Scanner(System.in);
      int H = scn.nextInt();
      int W = scn.nextInt();
      int ans;
      if(H%2 == 0){
      	ans = W*(H/2);
      } else {
      	ans = W*(Math.floor(H/2)) + Math.ceil(W/2);
      }
      System.out.println(ans);
    }
}


Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from double to int
      	ans = W*(Math.floor(H/2)) + Math.ceil(W/2);
      	                          ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args){
      Scanner scn = new Scanner(System.in);
      int H = scn.nextInt();
      int W = scn.nextInt();
      int ans;
      if(H%2 = 0){
      	ans = W*(H/2);
      } else {
      	ans = W*(Math.floor(H/2))+Math.ceil(W/2);
      }
      System.out.println(ans);
    }
}


Compiler output:
Main.java:8: error: unexpected type
      if(H%2 = 0){
          ^
  required: variable
  found:    value
Main.java:11: error: incompatible types: possible lossy conversion from double to int
      	ans = W*(Math.floor(H/2))+Math.ceil(W/2);
      	                         ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args){
      Scanner scn = new Scanner(System.in);
      int H = scn.nextInt();
      int W = scn.nextInt();
      int ans = switch(H){
        case H%2 = 0 -> W*(H/2);
      	default -> W*(Math.floor(H/2))+Math.ceil(W/2);
      };
      System.out.println(ans);
    }
}


Compiler output:
Main.java:8: error: unexpected type
        case H%2 = 0 -> W*(H/2);
              ^
  required: variable
  found:    value
Main.java:9: error: incompatible types: bad type in switch expression
      	default -> W*(Math.floor(H/2))+Math.ceil(W/2);
      	                              ^
    possible lossy conversion from double to int
2 errors
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args){
      Scanner scn = new Scanner(System.in);
      int H = scn.nextInt();
      int W = scn.nextInt();
      int ans = switch(H)
        case H%2 = 0 -> ans = W*(H/2);
      	default -> ans = W*(Math.floor(H/2))+Math.ceil(W/2);
      System.out.println(ans);
    }
}


Compiler output:
Main.java:7: error: '{' expected
      int ans = switch(H)
                         ^
Main.java:10: error: case, default, or '}' expected
      System.out.println(ans);
      ^
Main.java:10: error: case, default, or '}' expected
      System.out.println(ans);
            ^
Main.java:10: error: case, default, or '}' expected
      System.out.println(ans);
             ^
Main.java:10: error: case, default, or '}' expected
      System.out.println(ans);
                ^
Main.java:10: error: case, default, or '}' expected
      System.out.println(ans);
                 ^
Main.java:10: error: case, default, or '}' expected
      System.out.println(ans);
                        ^
Main.java:10: error: case, default, or '}' expected
      System.out.println(ans);
                         ^
Main.java:10: error: case, default, or '}' expected
      System.out.println(ans);
                            ^
Main.java:10: error: case, default, or '}' expected
      System.out.println(ans);
                             ^
Main.java:11: error: ';' expected
    }
     ^
Main.java:12: error: reached end of file while parsing
}
 ^
12 errors
Language: C++

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

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


Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | int64_t main()
      | ^~~~~~~
Language: C++

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

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


Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | int64_t main(void)
      | ^~~~~~~
Language: C++

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

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


Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | int64_t main()
      | ^~~~~~~
Language: C++

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

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

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | int64_t main(void)
      | ^~~~~~~
Language: C

#include <stdio.h>

int main(){
	long long int h,w; //linha x coluna
	long long int res;
	scanf("%lli %lli",&h,&w);

	if((h==1 && w==10)|| (h==10 && w==1){
		printf("1\n");

	}else if(h%2==0 && w%2==0){
		res = (h*w)/2;
		printf("%lli\n",res);

	}else if(h%2==0 && w%2!=0){
		res =(h*w)/2;
		printf("%lli\n",res);

	}else if(h%2!=0 && w%2==0){
		res=(h*w)/2;
		printf("%lli\n",res);
	}if(h%2!=0 && w%2!=0){
		res = (h*w)/2 + 1;
		printf("%lli\n",res);
	}









	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:45: error: expected ')' before '{' token
    8 |         if((h==1 && w==10)|| (h==10 && w==1){
      |           ~                                 ^
      |                                             )
main.c:36:1: error: expected expression before '}' token
   36 | }
      | ^
Language: C

#include <stdio.h>

int main(){
	long long int h,w; //linha x coluna
	long long int res;
	scanf("%lli %lli",&h,&w);

	if(h=1 && w=10){
		printf("1\n");
	}else if(h=10 && w=1){
		printf("1\n");
	}else if(h%2==0 && w%2==0){
		res = (h*w)/2;
		printf("%lli\n",res);

	}else if(h%2==0 && w%2!=0){
		res =(h*w)/2;
		printf("%lli\n",res);

	}else if(h%2!=0 && w%2==0){
		res=(h*w)/2;
		printf("%lli\n",res);
	}if(h%2!=0 && w%2!=0){
		res = (h*w)/2 + 1;
		printf("%lli\n",res);
	}









	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:20: error: lvalue required as left operand of assignment
    8 |         if(h=1 && w=10){
      |                    ^
main.c:10:27: error: lvalue required as left operand of assignment
   10 |         }else if(h=10 && w=1){
      |                           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL)
typedef long long int lli;
#define tc int t;cin>>t;while(t--)
#define f first
#define s second
#define pb push_back
#define vi vector<int>
#define vll vector<lli>
#define mx 1000000


int main() {
    fastio;
    lli h,w;
    cin>>h>>w;
    lli ans=h*w;
    lli ans=((ans/2)+(ans%2));
    cout<<ans<<"\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: redeclaration of 'lli ans'
   19 |     lli ans=((ans/2)+(ans%2));
      |         ^~~
a.cc:18:9: note: 'lli ans' previously declared here
   18 |     lli ans=h*w;
      |         ^~~
Language: C++

#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define ll long long
using namespace std;
int main(){ 
  double h,w;
  cin >>h>>w;
  if((h*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:19:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   19 |   if((h*w)%2==0){
      |      ~~~~~^~
      |        |   |
      |        |   int
      |        double
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define REP(i, N) for (int i = 0; i < (int)N; i++)
#define RREP(i, N) for (int i =(int)N-1; i >= 0; i--)
#define FOR(i, a, b) for (int i = a; i < (int)b; i++)
#define ALL(x) (x).begin(), (x).end()
#define INF (1 << 30)
#define LLINF (1LL << 62)
#define DEBUG(...) debug(__LINE__, ":" __VA_ARGS__)

typedef long long ll;
typedef pair<int, int> Pii;
typedef pair<ll, ll> Pll;

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

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

#include <bits/stdc++.h>
#define pi acos(-1)
using namespace std;
typedef long long ll;
const int mx=10000;
int a[mx];
int tree[mx*4];
//void init(int node, int b, int e)
//{
//    if (b == e) {
//        tree[node] = a[b];
//        return;
//    }
//    int Left = node * 2;
//    int Right = node * 2 + 1;
//    int mid = (b + e) / 2;
//    init(Left, b, mid);
//    init(Right, mid + 1, e);
//    tree[node] = __gcd(tree[Left],tree[Right]);
//}
//int query(int node, int b, int e, int i, int j)
//{
//    if (i > e || j < b)
//        return 0;
//    if (b >= i && e <= j)
//        return tree[node];
//    int Left = node * 2;
//    int Right = node * 2 + 1;
//    int mid = (b + e) / 2;
//    int p1 = query(Left, b, mid, i, j);
//    int p2 = query(Right, mid + 1, e, i, j);
//    return __gcd(p1,p2);
//}
//void update(int node, int b, int e, int i, int newvalue)
//{
//    if (i > e || i < b)
//        return;
//    if (b >= i && e <= i) {
//        tree[node] = newvalue;
//        return;
//    }
//    int Left = node * 2;
//    int Right = node * 2 + 1;
//    int mid = (b + e) / 2;
//    update(Left, b, mid, i, newvalue);
//    update(Right, mid + 1, e, i, newvalue);
//    tree[node] = __gcd(tree[Left] , tree[Right]);
//}
int main()
{
    ll a,b,c;
    cin>>a>>b;
    if(a%2==0 || b%2==0){
      cout<<(a*b)/2<<endl;}
  else{
    cout<<(a*b+1)/2<<endl;
}


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

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

int main() {
  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: In function 'int main()':
a.cc:7:14: error: 'W' was not declared in this scope
    7 |   if( h==1 ||W==1){
      |              ^
Language: C++

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

int main() {
  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: In function 'int main()':
a.cc:7:14: error: 'W' was not declared in this scope
    7 |   if( h==1 ||W==1)
      |              ^
Language: C++

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

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


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

#include<bits/stdc++.h>

using namespace std;

typedef long long ll;

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    ll n, m;
    cin >> n >> m;
    if(w==1 || h==1) cout << 1;
    else cout << n*m/2+n*m%2;
    return 0;
}


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

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
 
#define int long long
#define ull unsigned long long
#define ld long double
#define rep(a) rep1(i,a)
#define rep1(i,a) rep2(i,0,a)
#define rep2(i,b,a) for(int i=(b); i<((int)(a)); i++)
#define rep3(i,b,a) for(int i=(b); i>=((int)(a)); i--)
#define all(a) a.begin(),a.end()
#define pii pair<int,int>
#define pb push_back
#define mp make_pair
#define sz(a) ((int)a.size())
#define pow2(x) (1ll<<(x))
#define print0(a) cout << (a) << ' '
#define print1(a) cout << (a) << '\n'
#define print2(a,b) cout << (a) << ' ',print1(b)
#define print3(a,b,c) cout << (a) << ' ',print2(b,c)
#define print4(a,b,c,d) cout << (a) << ' ',print3(b,c,d)
#ifdef i_am_noob
#define debug(a) print2(#a,a)
#else
#define debug(a) 
#endif
#define ordered_set tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update>
 
using namespace std;
using namespace __gnu_pbds;
 
const int Mod=1000000007,Mod2=998244353;
const int MOD=Mod2;
 
inline int add(int a, int b){return (a+b>=MOD?a+b-MOD:a+b);}
inline int sub(int a, int b){return (a+MOD-b>=MOD?a-b:a+MOD-b);}
int Pow(int a, int b){
	if(!b) return 1;
	int tmp=Pow(a*a%MOD,b>>1);
	return (b&1?tmp*a%MOD:tmp);
}
inline int inverse(int n){return Pow(n,MOD-2);}
 
const int maxn=200005;
//i_am_noob
 
 
signed main(){
	ios_base::sync_with_stdio(0),cin.tie(0);
	int a,b;
  	cin >> a >> b;
  	if(a>1&&b>1) print1(a*b/2+a*b%2);
  ` else print1(1);
	return 0;
}

Compiler output:
a.cc:54:3: error: stray '`' in program
   54 |   ` else print1(1);
      |   ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cstring>
using namespace std;
 
using Graph = vector<vector<int> >;
bool seen[510][510];
int cnt = 0;
int H, W;
vector<vector<int> > last_order; 
 
void dfs(int h, int w){
  const int dx[4]={1, -1, 1, -1};
  const int dy[4]={1, 1, -1, -1};
  seen[h][w] = true;
  
  for(int dir=0; dir<4; dir++){
    int nh = h + dx[dir];
    int nw = w + dy[dir];
    if(nh<0 || nw<0 || nh >= H || nw >=W) continue;
    if(seen[nh][nw])continue;
    
    dfs(nh, nw);
    
  }
  last_order[nh][nw]++;
}
 
int main(){
  cin >> H >> W;
  memset(seen, 0, sizeof(seen));
  dfs(0, 0);
  cout << last_order[0][0] <<endl;
}

Compiler output:
a.cc: In function 'void dfs(int, int)':
a.cc:27:14: error: 'nh' was not declared in this scope; did you mean 'h'?
   27 |   last_order[nh][nw]++;
      |              ^~
      |              h
a.cc:27:18: error: 'nw' was not declared in this scope; did you mean 'w'?
   27 |   last_order[nh][nw]++;
      |                  ^~
      |                  w
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cstring>
using namespace std;
 
using Graph = vector<vector<int> >;
bool seen[510][510];
int cnt = 0;
int H, W;
vector<vector<int> > last_order; 
 
void dfs(int h, int w){
  const int dx[4]={1, -1, 1, -1};
  const int dy[4]={1, 1, -1, -1};
  seen[h][w] = true;
  
  for(int dir=0; dir<4; dir++){
    int nh = h + dx[dir];
    int nw = w + dy[dir];
    if(nh<0 || nw<0 || nh >= H || nw >=W) continue;
    if(seen[nh][nw])continue;
    
    dfs(nh, nw);
    
  }
  last_order[nh][nw]++;
}
 
int main(){
  cin >> H >> W;
  memset(seen, 0, sizeof(seen));
  dfs(0, 0)
  cout << last_order[0][0] <<endl;
}

Compiler output:
a.cc: In function 'void dfs(int, int)':
a.cc:27:14: error: 'nh' was not declared in this scope; did you mean 'h'?
   27 |   last_order[nh][nw]++;
      |              ^~
      |              h
a.cc:27:18: error: 'nw' was not declared in this scope; did you mean 'w'?
   27 |   last_order[nh][nw]++;
      |                  ^~
      |                  w
a.cc: In function 'int main()':
a.cc:33:12: error: expected ';' before 'cout'
   33 |   dfs(0, 0)
      |            ^
      |            ;
   34 |   cout << last_order[0][0] <<endl;
      |   ~~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cstring>
using namespace std;

using Graph = vector<vector<int> >;
bool seen[510][510];
int cnt = 0;
int H, W; cin >> H >> W;

int dfs(int h, int w){
  const int dx[4]={1, -1, 1, -1};
  const int dy[4]={1, 1, -1, -1};
  seen[h][w] = true;
  
  for(int dir=0; dir<4; dir++){
    int nh = h + dx[dir];
    int nw = w + dy[dir];
    if(nh<0 || nw<0 || nh >= H || nw >=W) continue;
    if(seen[nh][nw])continue;
    
    dfs(nh, nw);
    cnt++;
  }
  return cnt;
}
 
int main(){
 
  memset(seen, 0, sizeof(seen));
  
  cout << dfs(0,0) <<endl;
}

Compiler output:
a.cc:10:11: error: 'cin' does not name a type
   10 | int H, W; cin >> H >> W;
      |           ^~~
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i = 0; i < n; i++)
#define REPR(i,n) for(int i = n; i >= 0; i--)
#define FOR(i,m, n) for(int i = m-1; i < n; i++)
#define INF 2000000000
#define ALL(v) v.begin(), v.end()
#define chmax(x,y) (x = max(x,y))
#define chmin(x,y) (x = min(x,y))
#define FILL2D(A,c) fill(A[0], A[0] +sizeof(A)/sizeof(**A),c)
#define FILL3D(A,c) fill(A[0][0], A[0][0] +sizeof(A)/sizeof(***A),c)
//vector<vector<要素の型>> 変数名(要素数1, vector<要素の型>(要素数2, 初期値))
//vector<intなど> 変数名(要素数,初期値)
using namespace std;
typedef long long ll;
//gcd,lcmセット
ll gcd(ll a, ll b){
   if (a%b == 0) return b;
   else return gcd(b, a%b);
}
ll lcm(ll a, ll b){	
   return a*b/gcd(a, b);
}
bool isPrime(ll x){
    int i;
    if(x < 2)return false;
    else if(x == 2) return true;
    if(x%2 == 0) return false;
    for(i = 3; i*i <= x; i += 2) if(x%i == 0) return false;
    return true;
}
//dfsではvector<vector<int>> g(n);で◎
int main(){
    ll h,w;
    cin>>h>>w;
    if(h%2==0||w%2==0)cout<<h*w/2;
    else cout h*w/2+1;
    cout<<endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:14: error: expected ';' before 'h'
   36 |     else cout h*w/2+1;
      |              ^~
      |              ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |         print("%d",z/2);
      |         ^~~~~
      |         printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:16: error: expected ')' before 'h'
    5 |     printf("%d"h*w/2+1);
      |           ~    ^
      |                )
Language: Java

import java.io.*;
import java.util.*;

public class panasonic2020 {
    public static void main(String[] args) {
        MyScanner sc = new MyScanner();

        long h = sc.nextLong();
        long w = sc.nextLong();

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

        System.out.println(ans);
    }

    static class MyScanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
        StringTokenizer tokenizer;

        String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }
}

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

#include <bits/stdc++.h>

using namespace std;

#define int long long



main(){


	int h, w; cin >> h >> w;


	if(h == 1 or w == 1){
		cout << 1 << endl; return;
	}

	if((h * w) & 1LL){
		cout << (h * w + 1) / 2 << endl;
	}else{
		cout << h * w / 2 << endl;
	}

	


	return 0;
}

Compiler output:
a.cc:9:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    9 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:16:36: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |                 cout << 1 << endl; return;
      |                                    ^~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected primary-expression before 'long'
    7 |   c=long long int(a*b);
      |     ^~~~
Language: C++

#include <iostream>
2
3 using namespace std;
4 typedef long long ll;
5
6 int main(void){
7 ll H,W;
8 cin >> H >> W;
9
10 if(H == 1 || W == 1){
11 cout << 1 << endl;
12 } else {
13 cout << (H * W + 1) / 2 << endl;
14 }
15
16 return 0;
17 }

Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2
      | ^
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 4 typedef long long ll;
      | ^
a.cc:5:1: error: expected unqualified-id before numeric constant
    5 | 5
      | ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <string>
#include <cstring>
#include <queue>
#include <vector>
#define mem(i,a) memset(i,a,sizeof(i))
#define PI acos(-1.0)
#define DMAX 100000+5
#define MOD 20190823
#define eps 1e-8
#define mp make_pair
#define INF 1000000000+9
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef double db;
inline void read(ull &f){
    f=0;
    ll x=1;
    char ch=getchar();
    while(ch<48 || ch>57) {
        if(ch=='-') {
            x=-1;
        }
        ch=getchar();
    }
    while(ch<=57 && ch>=48) {
        f=f*10+ch-'0';
        ch=getchar();
    }
    f*=x;
}
ull n,m;
ull p,q;
int main(){
    read(n),read(m);
    if(n%2==0){
        p=n/2;
        cout<<p*m<<endl;
    }
    else{
        p=n/2;
        cout<<p*m+(m+1)/2<<endl;n 
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:34: error: expected ';' before '}' token
   46 |         cout<<p*m+(m+1)/2<<endl;n
      |                                  ^
      |                                  ;
   47 |     }
      |     ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'W' was not declared in this scope
    8 |         if(W==1 || H==1){
      |            ^
a.cc:8:20: error: 'H' was not declared in this scope
    8 |         if(W==1 || H==1){
      |                    ^
Language: C++

1 #include <iostream>
2
3 using namespace std;
4 typedef long long ll;
5
6 int main(void){
7 ll H,W;
8 cin >> H >> W;
9
10 if(H==1 || W==1){cout << 1;}
  else{cout << (H * W + 1) / 2 << endl;}
11
12 return 0;
13 }

Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | 1 #include <iostream>
      |   ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1 #include <iostream>
      | ^
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 4 typedef long long ll;
      | ^
a.cc:5:1: error: expected unqualified-id before numeric constant
    5 | 5
      | ^