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

#include<bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;
int main()
{
ll w,h,x,y;
cin>>h>>w>>x>>y;
ll a=(h-x)*w,b=x*w,c=(w-y)*h,d=y*h;
ll ans=min(a,b);
ans=max(ans,min((c,d));
cout<<ans<<" ";
if(x==(long double)h/2 && y==(long double)w/2 && min(a,b)==min(c,d))
{
cout<<1<<endl;
}
else
{
cout<<0<<endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: no matching function for call to 'min(long long int&)'
   11 | ans=max(ans,min((c,d));
      |             ~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   template argument deduction/substitution failed:
a.cc:11:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   11 | ans=max(ans,min((c,d));
      |             ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <iostream>
#include <iomanip>
using namespace std;
using ll = long long int;
int main() {
    double W, H, x, y;
    cin >> W >> H >> x >> y;


    cout << fixed << setpreceision(10) << (W * H)/2.0 << " " << (x == (W / 2.0) || y == (H / 2.0)? 1 : 0) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'setpreceision' was not declared in this scope
   10 |     cout << fixed << setpreceision(10) << (W * H)/2.0 << " " << (x == (W / 2.0) || y == (H / 2.0)? 1 : 0) << endl;
      |                      ^~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
typedef long long ll;
using namespace std;
#define Q int tt,qq; cin>>tt ;for(qq=1;qq<=tt;qq++)
#define FAST ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);

int main()
{
    int w,h,x,y,a,b;
    cin>>w>>h>>x>>y;
    double area1;
    area1=(w*h)/2;
   // area2=(float)(h-x)*w;
   // area3=(float)h*(w-x);
   // int c=0;
   // if(area1==area2)
   //     c++;
   // if(area1==area3)
   //     c++;
   // if((float)w/2==(float)x && (float)h/2==(float)y)
   //     c++;
   bool ans=false;
   if(w/2==x &&h/2==y)
      ans=true;

    cout<<area1<<" "<<
    if(ans)cout<<1;
    else cout<<
    //cout<<area1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:5: error: expected primary-expression before 'if'
   27 |     if(ans)cout<<1;
      |     ^~
a.cc:28:5: error: 'else' without a previous 'if'
   28 |     else cout<<
      |     ^~~~
a.cc:30:1: error: expected primary-expression before '}' token
   30 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#define ll long long int
#define ff first
#define ss second
#define eps 1e-10

using namespace std;


int main()
{

    ll t,n,m,f,l,r,q,k,x,y,z,mn,mx,sum=0;
    ll a,b,c,d,ar,ans1,ans2;
    cin>>a>>b>>c>>d;

    count<<(a*b)<<" ";

if((c+c) == a && (d+d)==b)
{
count<<1<<endl;
}
else
{
cout<<0<<endl;
}




}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: invalid operands of types '<unresolved overloaded function type>' and 'long long int' to binary 'operator<<'
   17 |     count<<(a*b)<<" ";
      |     ~~~~~^~~~~~~
a.cc:21:6: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   21 | count<<1<<endl;
      | ~~~~~^~~
Language: Java

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int x = sc.nextInt();
        int y = sc.nextInt();
 
        double res = (double)a * b / 2;
        BigDecimal bd = new BigDecimal(res);
        System.out.print(bd.setScale(6, RoundingMode.HALF_UP) + " ");
 
 
        if(2*x == a && 2*y == b) {
            System.out.print("1");
        } else {
            System.out.print("0");
        }
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
        BigDecimal bd = new BigDecimal(res);
        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:12: error: cannot find symbol
        BigDecimal bd = new BigDecimal(res);
                            ^
  symbol:   class BigDecimal
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.print(bd.setScale(6, RoundingMode.HALF_UP) + " ");
                                        ^
  symbol:   variable RoundingMode
  location: class Main
3 errors
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(x) (x).begin(),(x).end()
const ll INF = 1LL << 60;

//与えられた(x,y)から中心を通るように直線を引けば半分ずつに分割出来る
//(x,y)自体が中心の場合はそこからどのように直線を引いてもOK
int main(){
    ll w, h, x, y;
    cin >> w >> h >> x >> y;
    double ans=(double)w*h/2;
    if(w==x*2 && h==y*2){
        int num = 1;
    }
    else{
        int num=0;
    }

    cout << setprecision(10) << ans << ' ' << num << endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:47: error: 'num' was not declared in this scope; did you mean 'enum'?
   22 |     cout << setprecision(10) << ans << ' ' << num << endl;
      |                                               ^~~
      |                                               enum
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(x) (x).begin(),(x).end()
const ll INF = 1LL << 60;

//与えられた(x,y)から中心を通るように直線を引けば半分ずつに分割出来る
//(x,y)自体が中心の場合はそこからどのように直線を引いてもOK
int main(){
    ll w, h, x, y;
    cin >> w >> h >> x >> y;
    double ans=(double)w*h/2;
    if(w==x*2 && h==y*2){
        int num = 1;
    }
    else int num=0;

    cout << setprecision(10) << ans << ' ' << num << endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:47: error: 'num' was not declared in this scope; did you mean 'enum'?
   20 |     cout << setprecision(10) << ans << ' ' << num << endl;
      |                                               ^~~
      |                                               enum
Language: C++

#pragma GCC optimize("Ofast")
#include "bits/stdc++.h"
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define PI 3.141592
#define MOD7 1000000007
#define LL_INF 9000000000000000000
#define LL_MINF -9000000000000000000
#define INT_INF 2000000000
#define INT_MINF -2000000000
#define all(a) (a).begin(), (a).end()
#define fi first
#define se second
const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
template<typename T>

int main(){
    double W, H, x, y;
    cin >> W >> H >> x >> y;
    double S = W * H / 2;
    if(W / 2.0 == x and H / 2.0 == y){
        cout << setprecision(10) << S << endl << '1' << endl;
    }else{
        cout << setprecision << S << endl;
    }
}

Compiler output:
a.cc:19:5: error: cannot declare '::main' to be a template
   19 | int main(){
      |     ^~~~
Language: C

1. #include <stdio.h>
2. #include <stdlib.h>
3. int main()
4. {
5.   long long w,h,x,y;
6.   scanf("%lli%lli%lli%lli",&w,&h,&x,&y);
7.   if (w == 2*x && h == 2*y) {
8.     printf("%f %d", (double)(w*h)/2, 1);
9.   } else {
10.     printf("%f %d", (double)(w*h)/2, 0);
11.   }
12.   return 0;
13. }

Compiler output:
main.c:1:1: error: expected identifier or '(' before numeric constant
    1 | 1. #include <stdio.h>
      | ^~
main.c:1:4: error: stray '#' in program
    1 | 1. #include <stdio.h>
      |    ^
main.c:2:4: error: stray '#' in program
    2 | 2. #include <stdlib.h>
      |    ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:12: error: invalid suffix "x" on integer constant
    8 |   if (w == 2x && h == 2y) {
      |            ^~
main.c:8:23: error: invalid suffix "y" on integer constant
    8 |   if (w == 2x && h == 2y) {
      |                       ^~
Language: C++

#include <bits/stdc++.h> 
using namespace std;
 
int main(){
  
  double w,h,x,y;
  cin>>w>>h>>x>>y;
  long double ans =long double(w*h/2);
  
  int judge = 0;
  
  if (w%2==0 && w/2==x && h%2==0 && h/2==y){
    judge = 1;
  }
  
  cout<<ans<<" "<<judge<<endl;
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected primary-expression before 'long'
    8 |   long double ans =long double(w*h/2);
      |                    ^~~~
a.cc:12:8: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   12 |   if (w%2==0 && w/2==x && h%2==0 && h/2==y){
      |       ~^~
      |       | |
      |       | int
      |       double
a.cc:12:28: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   12 |   if (w%2==0 && w/2==x && h%2==0 && h/2==y){
      |                           ~^~
      |                           | |
      |                           | int
      |                           double
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: 'H' was not declared in this scope
   13 |     if(w%2==0||H%2==0){
      |                ^
Language: C++

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

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

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

int main(){
	double w, h, x, y;
	cin >> w >> h >> x >> y;

	double ans = w*h/2;
	int res = 0;
	if(w%2 != 0 || h%2 != 0) res = 0;
	else if(x == w/2 && y == h/2) res = 1;

	if(res) cout << fixed << setprecision(10) << ans << " " << res << endl;
	else cout << fixed << setprecision(10) << ans << " " << res << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   12 |         if(w%2 != 0 || h%2 != 0) res = 0;
      |            ~^~
      |            | |
      |            | int
      |            double
a.cc:12:25: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   12 |         if(w%2 != 0 || h%2 != 0) res = 0;
      |                        ~^~
      |                        | |
      |                        | int
      |                        double
Language: C++

#include<cstdio>
#include<vector>
using namespace std;
typedef long long ll;
int main(){
int a,b,x,y;
  cin>>a>>b>>x>>y;
  printf("%if %d\n",double(a)*double(b)/2,x+x==a&&y+y==b);
}

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

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

int main(){
  ll w,h,x,y;
  cin>>w>>h>>x>>y;
  long double kotae=w*h/2;
  if(w%2==0&&h%2==0){
    if(x==w/2&&y==h/2){
    cout<<fixed<<setprecision(10)<<kotae<<" "<<"1";
    }
    else{
    cout<<fixed<<setprecision(10)<<koate<<" "<<"0";
    }
  }
  else{
    cout<<fixed<<setprecision(10)<<kotae<<" "<<"0";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:36: error: 'koate' was not declared in this scope; did you mean 'kotae'?
   15 |     cout<<fixed<<setprecision(10)<<koate<<" "<<"0";
      |                                    ^~~~~
      |                                    kotae
Language: C++

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


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

  if(x * 2 == w && y * 2 == h){
    cout << double(w) * double(h) / 2 << "1" << endl;
  }

  if(x * 2 != w || y * 2 != h){
    cout << double(w) * double(h) / 2 << "0" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'w' was not declared in this scope
   11 |   if(x * 2 == w && y * 2 == h){
      |               ^
a.cc:11:29: error: 'h' was not declared in this scope
   11 |   if(x * 2 == w && y * 2 == h){
      |                             ^
a.cc:15:15: error: 'w' was not declared in this scope
   15 |   if(x * 2 != w || y * 2 != h){
      |               ^
a.cc:15:29: error: 'h' was not declared in this scope
   15 |   if(x * 2 != w || y * 2 != h){
      |                             ^
Language: C++

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


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

  if(x * 2 == w && y * 2 == h){
    cout << double(w) * double(h) / 2 << '1' << endl;
  }

  if(x * 2 != w || y * 2 != h){
    cout << double(w) * double(h) / 2 << '0' << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'w' was not declared in this scope
   11 |   if(x * 2 == w && y * 2 == h){
      |               ^
a.cc:11:29: error: 'h' was not declared in this scope
   11 |   if(x * 2 == w && y * 2 == h){
      |                             ^
a.cc:15:15: error: 'w' was not declared in this scope
   15 |   if(x * 2 != w || y * 2 != h){
      |               ^
a.cc:15:29: error: 'h' was not declared in this scope
   15 |   if(x * 2 != w || y * 2 != h){
      |                             ^
Language: C++

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


int main() {
  double w,h,x,y;
  cin >> w >> h >> x >> y;

  double ans = w * h / 2;

  printf(%f %d\n, ans, x * 2 == w && y * 2 == h);
}

Compiler output:
a.cc:13:15: error: stray '\' in program
   13 |   printf(%f %d\n, ans, x * 2 == w && y * 2 == h);
      |               ^
a.cc: In function 'int main()':
a.cc:13:10: error: expected primary-expression before '%' token
   13 |   printf(%f %d\n, ans, x * 2 == w && y * 2 == h);
      |          ^
a.cc:13:11: error: 'f' was not declared in this scope
   13 |   printf(%f %d\n, ans, x * 2 == w && y * 2 == h);
      |           ^
a.cc:13:14: error: 'd' was not declared in this scope
   13 |   printf(%f %d\n, ans, x * 2 == w && y * 2 == h);
      |              ^
Language: C++

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


int main() {
  double w,h,x,y;
  cin >> w >> h >> x >> y;

  double ans = w * h / 2;

  printf(%lf %d\n, ans, x * 2 == w && y * 2 == h);
}

Compiler output:
a.cc:13:16: error: stray '\' in program
   13 |   printf(%lf %d\n, ans, x * 2 == w && y * 2 == h);
      |                ^
a.cc: In function 'int main()':
a.cc:13:10: error: expected primary-expression before '%' token
   13 |   printf(%lf %d\n, ans, x * 2 == w && y * 2 == h);
      |          ^
a.cc:13:11: error: 'lf' was not declared in this scope; did you mean 'll'?
   13 |   printf(%lf %d\n, ans, x * 2 == w && y * 2 == h);
      |           ^~
      |           ll
a.cc:13:15: error: 'd' was not declared in this scope
   13 |   printf(%lf %d\n, ans, x * 2 == w && y * 2 == h);
      |               ^
Language: C++

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


int main() {
  int w,h,x,y;
  cin >> w >> h >> x >> y;
  double ans = double(w) * double(h) / 2;
  if(x + x == w && y + y == h)
  cout << ans << '1' << endl;

  if(x + x != w || y + y != h)
    cout << ans << '0' << endl;
  }
}

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

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


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

  if(x == w / 2 && y == h / 2){
    cout << ()double)w * (double)h / 2 << "1" << endl;
  }

  else{
    cout << (double)w * (double)h / 2 << "0" << endl;
  }
}

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

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
int main(void){
  ll w,h,x,y;
  cin>>w>>h>>x>>y;
  int num=(x==w/2 && y==h/2)?1:0;
  cout<<double(w*h/2)<<" "<<num<<endl;
  return 0;


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



public class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] temp = sc.nextLine().split(" ");
		int w = Integer.parseInt(temp[0]);
		int h = Integer.parseInt(temp[1]);
		int x = Integer.parseInt(temp[2]);
		int y = Integer.parseInt(temp[3]);

		double ans   = w * h /2;
		int count = 0;
		if(x * 2 == w && y * 2 == h) {
			count = 1;
		}

		System.out.println(ans + " " + count);

	}

}


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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:29:16: error: expected primary-expression before '<' token
   29 |   cout<<a*b/2<<<" ";
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char> cvec;
typedef vector<double> dvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
#define fs first
#define sc second
int main()	{
  ll w,h,x,y; //w*hはオーバーフローするので
  cin>>w>>h>>x>>y;
  double ans=w*h/2;
  int num=(w==2*x && h==2*y);
  cout<<ans<<num<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:23:24: error: expected '}' at end of input
   23 |   cout<<ans<<num<<endl;
      |                        ^
a.cc:18:17: note: to match this '{'
   18 | int main()      {
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using pint = pair<int,int>;


const long long INFLL = 1LL << 60;
const int INFI = 1000000000;

int main(){
    long long  W,H,x,y; cin >> W >> H >> x >> y;
    long long ans1 = min(x*H, (W-x)*H);
    long long ans2 = min(y*W, (H-y)*W);
    if(ans1== ans2) cout << ans1 << ' ' << 1 << endl;
    else if(ans1>ans2) cout << ans1<< ' ' << 0 << endl;
    else cout << ans<< ' ' << 0 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: 'ans' was not declared in this scope; did you mean 'ans2'?
   15 |     else cout << ans<< ' ' << 0 << endl;
      |                  ^~~
      |                  ans2
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define ok() puts(ok?"Yes":"No");
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<vi> vvi;
typedef vector<ii> vii;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef set<int> si;
typedef map<string, int> msi;
typedef greater<int> gt;
typedef priority_queue<int, vector<int>, gt> minq;
typedef long long ll;
typedef pair<ll,ll> pll;
const ll LINF = 1e18L + 1;
const int INF = 1e9 + 1;
//clang++ -std=c++11 -stdlib=libc++ 

int main() {
  nt W,H,X,Y; cin >>W>>H>>X>>Y;
  double s = (double) W*H/2LL;
  bool ok = X==W/2LL&&Y==H/2LL;
  printf("%.10f %d\n", s, ok);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:3: error: 'nt' was not declared in this scope; did you mean 'int'?
   23 |   nt W,H,X,Y; cin >>W>>H>>X>>Y;
      |   ^~
      |   int
a.cc:23:21: error: 'W' was not declared in this scope
   23 |   nt W,H,X,Y; cin >>W>>H>>X>>Y;
      |                     ^
a.cc:23:24: error: 'H' was not declared in this scope
   23 |   nt W,H,X,Y; cin >>W>>H>>X>>Y;
      |                        ^
a.cc:23:27: error: 'X' was not declared in this scope
   23 |   nt W,H,X,Y; cin >>W>>H>>X>>Y;
      |                           ^
a.cc:23:30: error: 'Y' was not declared in this scope
   23 |   nt W,H,X,Y; cin >>W>>H>>X>>Y;
      |                              ^
Language: C++

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

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

lint lcm(lint x, lint y) { return abs(x-y)/gcd(x,y); }


int main() {
  double w,h,x,y; cin >> w >> h >> x >> y;

  printf("%.10lf ",w*h/2);
  if(w%2==0 && h%2==0 && x==w/2 && y==h/2) { printf("1\n"); }
  else { printf("0\n"); }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   17 |   if(w%2==0 && h%2==0 && x==w/2 && y==h/2) { printf("1\n"); }
      |      ~^~
      |      | |
      |      | int
      |      double
a.cc:17:17: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   17 |   if(w%2==0 && h%2==0 && x==w/2 && y==h/2) { printf("1\n"); }
      |                ~^~
      |                | |
      |                | int
      |                double
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  ll W,H,x,y;
  cin >> W>>H>>x>>y;
  double s=1.0;
  
  if(W*s/2!=x || H*s/2!=y){
    cout << W*H*s/2 << " " << 0 <<endl;
  }
  
  else{
    cout << W*H*s/2 << " " << 1 <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'll' was not declared in this scope
    5 |   ll W,H,x,y;
      |   ^~
a.cc:6:10: error: 'W' was not declared in this scope
    6 |   cin >> W>>H>>x>>y;
      |          ^
a.cc:6:13: error: 'H' was not declared in this scope
    6 |   cin >> W>>H>>x>>y;
      |             ^
a.cc:6:16: error: 'x' was not declared in this scope
    6 |   cin >> W>>H>>x>>y;
      |                ^
a.cc:6:19: error: 'y' was not declared in this scope; did you mean 'yn'?
    6 |   cin >> W>>H>>x>>y;
      |                   ^
      |                   yn
Language: C++

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

int main(){
    int w, h, x, y;
    cin >> w >> h >> x >> y;
    double ans = w*h/2.0;
    int num;
    if (w == x ** 2 && h == y ** 2) num = 1;
    else num = 0;
    cout << area << setprecision(10) << " " << num << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: invalid type argument of unary '*' (have 'int')
   11 |     if (w == x ** 2 && h == y ** 2) num = 1;
      |                 ^~~
a.cc:11:32: error: invalid type argument of unary '*' (have 'int')
   11 |     if (w == x ** 2 && h == y ** 2) num = 1;
      |                                ^~~
a.cc:13:13: error: 'area' was not declared in this scope
   13 |     cout << area << setprecision(10) << " " << num << endl;
      |             ^~~~
Language: C++

//Jai Bhole Ki
#include <bits/stdc++.h>
using namespace std;
#define fast static int fastline = []() { std::ios::sync_with_stdio(false); cin.tie(NULL); return 0; }();
#define ll long long
#define LL unsigned ll
#define pb push_back
#define pi pair<ll,ll>
#define debug(x) cout<<x<<"\n";
#define debug cout<<"debugged\n";
#define minval -2e9
#define maxval 2e9
long double PI =3.14159265358979323846;
 
const ll M=1e9+7;
const ll inf=1e18;
const ll ms=2e5+5;
fast;
double w,h,l,r;
void solve()
{
    cin>>w>>h>>l>>r;
    //if(w/2==l&&h/2==r)
    cout<<fixed<<setprecision(12)<<h*w/2<<" "<<((l+l)==w)&&((r+r)==h)<<endl;
}
int main()
{
 // freopen("input.txt","r",stdin);
//  freopen("output.txt","w",stdout);
    //int t;cin>>t;while(t--)
    {
        solve();
    }
    return 0;
}

Compiler output:
a.cc:10:9: warning: "debug" redefined
   10 | #define debug cout<<"debugged\n";
      |         ^~~~~
a.cc:9:9: note: this is the location of the previous definition
    9 | #define debug(x) cout<<x<<"\n";
      |         ^~~~~
a.cc: In function 'void solve()':
a.cc:24:70: error: invalid operands of types 'bool' and '<unresolved overloaded function type>' to binary 'operator<<'
   24 |     cout<<fixed<<setprecision(12)<<h*w/2<<" "<<((l+l)==w)&&((r+r)==h)<<endl;
      |                                                            ~~~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char> cvec;
typedef vector<double> dvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
#define fs first
#define sc second
int main()	{
  int w,h,x,y;
  cin>>w>>h>>x>>y;
  cout<<fixed<<setprecision(9)<<(double)w*(double)h/2.0);
  if(x+x==w && y+y==h)
    cout<<1<<endl;
  else
    cout<<0<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:56: error: expected ';' before ')' token
   21 |   cout<<fixed<<setprecision(9)<<(double)w*(double)h/2.0);
      |                                                        ^
      |                                                        ;
Language: Java

import java.util.Scanner;

/**
 * Main
 */
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        double W = sc.nextDouble();
        double H = sc.nextDouble();
        double x = sc.nextDouble();
        double y = sc.nextDouble();
        double ans;
        int flag=0;
        sc.close();

        ans == W*H/2;

        if(x == W/2 && y == H/2){
            flag = 1;
        }

        System.out.println(ans + " " + flag);

    }
}

Compiler output:
Main.java:19: error: not a statement
        ans == W*H/2;
            ^
1 error
Language: C++

#include <bits/stdc++.h>
#include <numeric>
using namespace std;
#define ll long long
#define mod 100000007
#define rep(i, n) for (int i = 0; i < n; ++i)
using Graph = vector<vector<int>>;
#define grepq  priority_queue<double, std::vector<double>, std::greater<double>>

int lcm(ll a, ll b)
{
    return a * b / __gcd(a, b);
}

const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};



//20:10
//20:13
//
int main(){
    cout << fixed << setprecision(16) << endl;
    int W, H, X, Y;
    cin >> W >> H >> X >> Y;
    double ans = 0;
    double preX = 0.0;
    double preY = 0.0;
    bool eq = false;
    preX = min((X * H), (W - X) * H);
    preY = min(Y * W, (H - Y) * W);
    ans = max(pre, preY);
    cout << ans << " ";
    if(X+X ==W&& Y+Y == H){
        cout << 0 << endl;
    }
    else{
        cout << 1 << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:15: error: 'pre' was not declared in this scope; did you mean 'preY'?
   33 |     ans = max(pre, preY);
      |               ^~~
      |               preY
Language: C++

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

int main(){
  int A,B,C,D;
  cin >> A >> B >> C >> D;
  cout << (double)(A * B) / 2 << (A / 2 == C && B / 2 == D ? 1 : 0) << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Winclude; did you mean #include?
    1 | #Winclude<bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> B >> C >> D;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Winclude<bits/stdc++.h>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << (double)(A * B) / 2 << (A / 2 == C && B / 2 == D ? 1 : 0) << endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:72: error: 'endl' was not declared in this scope
    7 |   cout << (double)(A * B) / 2 << (A / 2 == C && B / 2 == D ? 1 : 0) << endl;
      |                                                                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #Winclude<bits/stdc++.h>
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int W = sc.nextInt(); 
    int H = sc.nextInt();
    int x = sc.nextInt();
    int y = sc.nextInt();
    int b = 0;
    if((Double)W/2==(Double)x&&H/2==y){
      b = 1;
    }
    Double ans = (Double)W*H/2;

    System.out.println(ans+" "+1);
  
  }
}



Compiler output:
Main.java:10: error: incompatible types: int cannot be converted to Double
    if((Double)W/2==(Double)x&&H/2==y){
               ^
Main.java:10: error: incompatible types: int cannot be converted to Double
    if((Double)W/2==(Double)x&&H/2==y){
                            ^
Main.java:13: error: incompatible types: int cannot be converted to Double
    Double ans = (Double)W*H/2;
                         ^
3 errors
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    Long W = sc.nextLong(); 
    Long H = sc.nextLong(); 
    Long x = sc.nextLong(); 
    Long y = sc.nextLong(); 
    int b = 0;
    if((Double)W/2==(Double)x&&H/2==y){
      b = 1;
    }
    Double ans = (Double)W*H/2;

    System.out.println(ans+" "+1);
  
  }
}



Compiler output:
Main.java:10: error: incompatible types: Long cannot be converted to Double
    if((Double)W/2==(Double)x&&H/2==y){
               ^
Main.java:10: error: incompatible types: Long cannot be converted to Double
    if((Double)W/2==(Double)x&&H/2==y){
                            ^
Main.java:13: error: incompatible types: Long cannot be converted to Double
    Double ans = (Double)W*H/2;
                         ^
3 errors
Language: C++

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

int main(){
  double W,H,x,y,s1,s2,ans;
  int b=0;
  cin>>W>>H>>x>>y;
  
  if(x<=W/2&&y<=H/2){
    s1=W*y;	s2=H*x;
    if(s1<s2){ans=s2;}
    else{ans=s1;}
    if(s1==s2){b=1;}
  }else if(x>W/2&&y<=H/2){
    s1=W*y;	s2=H*(W-x);
    if(s1<s2){ans=s2;}
    else{ans=s1;}
    if(s1==s2){b=1;}
  }else if(x<=W/2&&y>H/2){
    s1=W*(H-y);	s2=H*x;
    if(s1<s2){ans=s2;}
    else{ans=s1;}
    if(s1==s2){b=1;}
  }else{
    s1=W*(H-y);	s2=H*(W-x);
    if(s1<s2){ans=s2;}
    else{ans=s1;}
    if(s1==s2){b=1;}
  }
  
  if(x==W||y==H||x==0||y==0){
    ans=W*H/2; b=0;
  }
  if(H*x/W==y||y=-H*x/W+H){
    ans=W*H/2; b=0;
  }
  
  cout<<fixed<<setprecision(9)<<ans<<" "<<b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:14: error: lvalue required as left operand of assignment
   35 |   if(H*x/W==y||y=-H*x/W+H){
      |      ~~~~~~~~^~~
Language: C++

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

int main(){
  double W,H,x,y,s1,s2,ans;
  int b=0;
  cin>>W>>H>>x>>y;
  
  if(x<=W/2&&y<=H/2){
    s1=W*y;	s2=H*x;
    if(s1<s2){ans=s2;}
    else{ans=s1;}
    if(s1==s2){b=1;}
  }else if(x>W/2&&y<=H/2){
    s1=W*y;	s2=H*(W-x);
    if(s1<s2){ans=s2;}
    else{ans=s1;}
    if(s1==s2){b=1;}
  }else if(x<=W/2&&y>H/2){
    s1=W*(H-y);	s2=H*x;
    if(s1<s2){ans=s2;}
    else{ans=s1;}
    if(s1==s2){b=1;}
  }else{
    s1=W*(H-y);	s2=H*(W-x);
    if(s1<s2){ans=s2;}
    else{ans=s1;}
    if(s1==s2){b=1;}
  }
  
  if(x==W||y==H||x==0||y==0){
    ans=W*H/2; b=0;
  }
  
  if(x==W
  
  cout<<fixed<<setprecision(9)<<ans<<" "<<b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:10: error: expected ';' before 'cout'
   36 |   if(x==W
      |          ^
      |          ;
   37 | 
   38 |   cout<<fixed<<setprecision(9)<<ans<<" "<<b;
      |   ~~~~    
a.cc:39:1: error: expected primary-expression before '}' token
   39 | }
      | ^
a.cc:38:45: error: expected ')' before '}' token
   38 |   cout<<fixed<<setprecision(9)<<ans<<" "<<b;
      |                                             ^
      |                                             )
   39 | }
      | ~                                            
a.cc:36:5: note: to match this '('
   36 |   if(x==W
      |     ^
a.cc:39:1: error: expected primary-expression before '}' token
   39 | }
      | ^
Language: C++

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

int main(){
  double W,H,x,y,s1,s2,ans;
  int b=0;
  cin>>W>>H>>x>>y;
  
  if(x<=W/2&&y<=H/2){
    s1=W*y;	s2=H*x;
    if(s1<s2){ans=s2;}
    else{ans=s1;}
    if(s1==s2){b=1;}
  }else if(x>W/2&&y<=H/2){
    s1=W*y;	s2=H*(W-x);
    if(s1<s2){ans=s2;}
    else{ans=s1;}
    if(s1==s2){b=1;}
  }else if(x<=W/2&&y>H/2){
    s1=W*(H-y);	s2=H*x;
    if(s1<s2){ans=s2;}
    else{ans=s1;}
    if(s1==s2){b=1;}
  }else{
    s1=W*(H-y);	s2=H*(W-x);
    if(s1<s2){ans=s2;}
    else{ans=s1;}
    if(s1==s2){b=1;}
  }
  
  if(x==W||y==H)||x==0||y==0){
    ans=W*H/2; b=0;
  }
  
  if(x==W
  
  cout<<fixed<<setprecision(9)<<ans<<" "<<b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:17: error: expected primary-expression before '||' token
   32 |   if(x==W||y==H)||x==0||y==0){
      |                 ^~
a.cc:36:10: error: expected ';' before 'cout'
   36 |   if(x==W
      |          ^
      |          ;
   37 | 
   38 |   cout<<fixed<<setprecision(9)<<ans<<" "<<b;
      |   ~~~~    
a.cc:39:1: error: expected primary-expression before '}' token
   39 | }
      | ^
a.cc:38:45: error: expected ')' before '}' token
   38 |   cout<<fixed<<setprecision(9)<<ans<<" "<<b;
      |                                             ^
      |                                             )
   39 | }
      | ~                                            
a.cc:36:5: note: to match this '('
   36 |   if(x==W
      |     ^
a.cc:39:1: error: expected primary-expression before '}' token
   39 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define ll long long
#define fi first
#define se second
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rep1(i, n) for (int i = 1; i <= (int)(n); ++i)
#define rep11(i, n) for (int i = 1; i < (int)(n); ++i)
#define repo(i, o, n) for (int i = o; i < (int)(n); ++i)
#define repm(i, n) for (int i = (int)(n)-1; i >= 0; --i)
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define pb(n) push_back(n)
#define mp make_pair
#define MOD 1002000007
#define INF LONG_LONG_MAX
typedef pair<int, int> P;
int main(){
    long long w,h,x,y;
    cin>>w>>h>>x>>y;
    if(w==h){
    cout<<(double)w*h/2<<1<<endl;
    }
    else(w==h){
    cout<<(double)w*h/2<<0<<endl;
    }
    
  
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:15: error: expected ';' before '{' token
   25 |     else(w==h){
      |               ^
      |               ;
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int w = sc.nextInt();		
        int h = sc.nextInt();
		int x = sc.nextInt();
        int y = sc.nextInt();
        double ans1 = w*h/2.0;
        int ans2 = 0;
        if(x*2==w && y*2==h){ans++;}
		System.out.println(ans1 + " " + ans2);
	}
}


Compiler output:
Main.java:11: error: cannot find symbol
        if(x*2==w && y*2==h){ans++;}
                             ^
  symbol:   variable ans
  location: class Main
1 error
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<tuple>
#include<map>
#include<queue>
#include<set>
#include<stack>
#include<deque>
#include<cmath>
#include<stack>
#include<string.h>
#include <iomanip>
#define rep(i,n) for(int i = 0;i<n;i++)
#define _GLIBCXX_DEBUG
using ll = long long; 
using namespace std;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

int main() {
    int w,h,x,y;
    cin >> w >> h >> x >> y;
    ll square = 0;
    bool ans = false;
    if(w%2==0 && h%2==0) {
        square = w/2*h;
        ans = true;
    }
    else if(w%2==0&&h%2==1) {
        square = w/2*h;
        ans = false;
    }
    else if(w%2==1&&h%2==0) {
        square = h/2*w;
        ans = false;
    }
    else if(w%2==1&&h%2==1) {
        (double)square = (double)w/2*h;
        ans = false;
    }
    cout << square << endl;
    if(ans) cout << "1" << endl;
    else cout << "0" << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:9: error: lvalue required as left operand of assignment
   40 |         (double)square = (double)w/2*h;
      |         ^~~~~~~~~~~~~~
Language: C++

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

#define ll long long
#define vecll vector<long long>
#define vec2ll vector<vector<long long>>
#define vecbool vector<bool>
#define vecpairll vector<pair<long long,long long>>
#define forll(s,a,b) for(long long s = a;s < b;s++)
#define forllde(s,a) for(long long s = a;s > 0;s--)


int main()
{
  ll w, h, x, y;
  double 
  cin >> w >> h >> x >> y;
  cout << setprecision(15) << double(h * w) / 2.0 << " ";
  if (x == (w/2 + w%2) && y == (h/2 + h%2))
	cout << 1 << endl;
  else
	cout << 0 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: expected initializer before '>>' token
   18 |   cin >> w >> h >> x >> y;
      |       ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
double W,H,x,y;
  xin>>W>>H>>x>>y;
  double ans=(W*H)/2;
  if(x==W/2 && y==H/2)
  cout<<ans<<" "<<1<<endl;
  else
    cout<<ans<<" "<<0<<endl;
  
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'xin' was not declared in this scope; did you mean 'sin'?
    5 |   xin>>W>>H>>x>>y;
      |   ^~~
      |   sin
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
double W,H,x,y;
  double ans=(W*H)/2;
  if(x==W/2 && u==H/2)
  cout<<ans<<" "<<1<<endl;
  else
    cout<<ans<<" "<<0<<endl;
  
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'u' was not declared in this scope
    6 |   if(x==W/2 && u==H/2)
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define all(t) t.begin(), t.end()
#define inrange(i, a, b) (((i)>= min((a), (b))) && ((i) <= max((a), (b))))
typedef vector<ll> vi;
#define fi first
#define se second
const ll inf = 9e18;
const ll mod = 1e9 + 7;

void print(ll a[], ll n){for(ll i=0;i<n;i++){cout<<a[i]<<" ";}cout<<"\n";}
ll power(ll x, ll y, ll M = inf){
    ll ans = 1;
    x %= M;
    while(y){
        if(y&1)
            ans = (x * ans) % M;

        x = (x * x) % M;
        y >>= 1;
    }
    return ans;
}
ll modInverse(ll n) {return power(n, mod-2, mod);}
inline ll mul(ll a, ll b){ return (a * b) % mod; }
inline ll sub(ll a, ll b){ ll c = a - b; if(c < 0) c += mod; return c; }
inline ll add(ll a, ll b){ ll c = a + b; if(c > mod) c -= mod; return c; }
inline ll divi(ll a, ll b){ return mul(a, modInverse(b)); }

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);

	ll w, h, x, y;
	cin>>w>>h>>x>>y;
	long double ans =0;
	ll op = min(w*y, w*(h-y));
	ll oi = min(h*x, h*(w-x));
	ans = max(op, oi);
	if(h == 2*y && w== 2*x){
		doublr ui = h*w;
		cout<<(ui/2.0)<<" 1";
		return 0;
	}
	if(h*x == w*y || h*w - x*h - y*w == 0){
		doublr ui = h*w;
		cout<<ui/2.0<<" 0";
		return 0;
	}
	cout<<ans<<" ";

	if(oi == op) cout<<1;
	else cout<<0;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:43:17: error: 'doublr' was not declared in this scope; did you mean 'double'?
   43 |                 doublr ui = h*w;
      |                 ^~~~~~
      |                 double
a.cc:44:24: error: 'ui' was not declared in this scope; did you mean 'oi'?
   44 |                 cout<<(ui/2.0)<<" 1";
      |                        ^~
      |                        oi
a.cc:48:17: error: 'doublr' was not declared in this scope; did you mean 'double'?
   48 |                 doublr ui = h*w;
      |                 ^~~~~~
      |                 double
a.cc:49:23: error: 'ui' was not declared in this scope; did you mean 'oi'?
   49 |                 cout<<ui/2.0<<" 0";
      |                       ^~
      |                       oi
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define all(t) t.begin(), t.end()
#define inrange(i, a, b) (((i)>= min((a), (b))) && ((i) <= max((a), (b))))
typedef vector<ll> vi;
#define fi first
#define se second
const ll inf = 9e18;
const ll mod = 1e9 + 7;

void print(ll a[], ll n){for(ll i=0;i<n;i++){cout<<a[i]<<" ";}cout<<"\n";}
ll power(ll x, ll y, ll M = inf){
    ll ans = 1;
    x %= M;
    while(y){
        if(y&1)
            ans = (x * ans) % M;

        x = (x * x) % M;
        y >>= 1;
    }
    return ans;
}
ll modInverse(ll n) {return power(n, mod-2, mod);}
inline ll mul(ll a, ll b){ return (a * b) % mod; }
inline ll sub(ll a, ll b){ ll c = a - b; if(c < 0) c += mod; return c; }
inline ll add(ll a, ll b){ ll c = a + b; if(c > mod) c -= mod; return c; }
inline ll divi(ll a, ll b){ return mul(a, modInverse(b)); }

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);

	ll w, h, x, y;
	cin>>w>>h>>x>>y;
	long double ans =0;
	ll op = min(w*y, w*(h-y));
	ll oi = min(h*x, h*(w-x));
	ans = max(op, oi);
	if(h == 2*x && w== 2*y){
		cout<<(double)(h*w/2)<<" 1";
		continue;
	}
	if(h*x == w*y){
		cout<<(double)(h*w/2)<<" 0";
		continue;
	}
	cout<<ans<<" ";

	if(oi == op) cout<<1;
	else cout<<0;
	return 0;
}


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

#include <cmath>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <string>
#include <cstdio>
#include <cstring>
using namespace std;

int main() {
	int a, b, x, y; //定义，但是为什么
	cin >> a >> b >> x >> y; //看起来好像都是整形的吧...
	double /* 因为题说了要用小数 */ m = double(a * b) / 2;
	cout << fixed << setprecision(6) << m << ' ';
	if (a == x / 2 && b == y / 2）cout << 1 << endl;
	else cout << 0 << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:36: error: unable to find numeric literal operator 'operator""\U0000ff09cout'
   15 |         if (a == x / 2 && b == y / 2）cout << 1 << endl;
      |                                    ^~~~~~~
a.cc:16:9: error: expected primary-expression before 'else'
   16 |         else cout << 0 << endl;
      |         ^~~~
a.cc:15:57: error: expected ')' before 'else'
   15 |         if (a == x / 2 && b == y / 2）cout << 1 << endl;
      |            ~                                            ^
      |                                                         )
   16 |         else cout << 0 << endl;
      |         ~~~~
Language: C++

#include <cmath>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <string>
#include <cstdio>
#include <cstring>
using namespace std;

int main() {
	int a, b, x, y; //定义，但是为什么
	cin >> a >> b >> x >> y; //看起来好像都是整形的吧...
	double /* 因为题说了要用小数 */ m = double(a * b) / 2;
	cout << fixed << setprecision(6) << m << ' ';
	if（a == x / 2 && b == y / 2）cout << 1 << endl;
	else cout << 0 << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'if\U0000ff08a' was not declared in this scope
   15 |         if（a == x / 2 && b == y / 2）cout << 1 << endl;
      |         ^~~~~
a.cc:15:36: error: unable to find numeric literal operator 'operator""\U0000ff09cout'
   15 |         if（a == x / 2 && b == y / 2）cout << 1 << endl;
      |                                    ^~~~~~~
a.cc:16:9: error: 'else' without a previous 'if'
   16 |         else cout << 0 << endl;
      |         ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define REPEAT(i, N) for (int i = 0; i < (N); i++)

int main() {
  int W, H, x, y;
  
  cin >> W >> H >> x >> y;
  
  cout << setsuspision(9) << W * H / 2.0 << " ";
  
  if (2 * x == W && 2 * y == H) {
    cout << 1;
  } else {
    cout << 0;
  }
  
  cout << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'setsuspision' was not declared in this scope
   12 |   cout << setsuspision(9) << W * H / 2.0 << " ";
      |           ^~~~~~~~~~~~
Language: C++

# include <bits/stdc++.h>
# define rep(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
# define reps(i, n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
# define rrep(i, n) for(int i=((int)(n)-1); i>=0; --i)
# define rreps(i, n) for(int i=((int)(n)); i>0; --i)
# define ALL(x) (x).begin(), (x).end()
# define SZ(x) ((int)(x).size())
# define pb push_back
# define optimize_cin() cin.tie(0); ios::sync_with_stdio(false)
using namespace std;
using ll = long long;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
const long long INF = 1LL << 60;

int main()
{
    double w,h,x,y;
    cin >> w >> h >> x >> y;

    bool a = true;

    if(x == w/2 && y == h/2)  a = false;

    double ans = w * h / 2

    if(a) cout << ans << " " << 0 << endl;

    else cout << ans << " " << 1 << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:5: error: expected ',' or ';' before 'if'
   27 |     if(a) cout << ans << " " << 0 << endl;
      |     ^~
a.cc:29:5: error: 'else' without a previous 'if'
   29 |     else cout << ans << " " << 1 << endl;
      |     ^~~~