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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected primary-expression before 'double'
    7 |     double (double)m=a/2*b;
      |     ^~~~~~
a.cc:8:35: error: 'm' was not declared in this scope
    8 |     cout<<fixed<<setprecision(6)<<m;
      |                                   ^
Language: C++

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

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

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

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

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

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

#include<bits/stdc++.h>
#include<math.h>
using namespace std;
int main()
{
 ios_base::sync_with_stdio(false);
 cin.tie(NULL);cout.tie(NULL);
 long long double w,h,x,y;
 cin>>w>>h>>x>>y;
 cout<<((w*h)/2)<<" ";
 if(x==(w/2) && y==(h/2))
 cout<<1;
 else
 cout<<0;
 return 0;
}

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

#include <bits/stdc++.h>

using namespace std;

#define ll long long int
#define vi vector<int>
#define prec fixed<<precision(10)
#define mod 1000000007
#define set(x) __builtin_popcount(x)
#define ffs(x) __builtin_ffs(x)

int main(){
	int w,h,x,y;
	cin >> w >> h >> x >> y;
	cout << prec << w*h/2;
	if(w==2*x && h==2*y)cout << ' ' << 1;
	else cout << ' ' <<0;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'precision' was not declared in this scope
    7 | #define prec fixed<<precision(10)
      |                     ^~~~~~~~~
a.cc:15:17: note: in expansion of macro 'prec'
   15 |         cout << prec << w*h/2;
      |                 ^~~~
Language: C++

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


int main()
{
   int w, h, x, y ;
   cin >> w >> h >> x >> y ;
   double ans = (double)w*h/2 ;
   int num (w==x*2 && h==y*2) ? 1 : 0 ;
   printf("%.10f %d\n",ans, num) ;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: error: expected ',' or ';' before '?' token
   12 |    int num (w==x*2 && h==y*2) ? 1 : 0 ;
      |                               ^
Language: C++

#include <bits/stdc++>
using namespace std;
int main(){
	long long w,h,x,y;
	cin>>w>>h>>x>>y;
	cout<<fixed<<setprecision(12)<<w*h/2.0<<" "<<(w==x*2&&h==y*2?1:0)<<endl;
	return 0;
}

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

#include <iostream>
#include <vector>
using namespace std;
int main(){
	double w,h,x,y;
	cin>>w>>h>>x>>y;
	cout<<fixed<<setprecision(12)<<w*h/2<<" "<<(w==x*2&&h==y*2?1:0)<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'setprecision' was not declared in this scope
    7 |         cout<<fixed<<setprecision(12)<<w*h/2<<" "<<(w==x*2&&h==y*2?1:0)<<endl;
      |                      ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <vector>
  +++ |+#include <iomanip>
    3 | using namespace std;
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main()
{
    double x,y,w,h;
    long long c=0;

    cin>>w>>h>>x>>y;

    d=w/2;

    if(x==w/2 && y==h/2)
    {

        c++;
        //printf("%.6f %d",a,c);

    }
     double a=(h/2)*1.0*w;
    printf("%.6lf %lld",a,c);
   /* else
    {
        float a=y*x*1.0;

        c=abs(d-x);
         printf("%.6f %d",a,c);

    }*/
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'd' was not declared in this scope
   12 |     d=w/2;
      |     ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main()
{
    double x,y,w,h;
    long long c=0;

    cin>>w>>h>>x>>y;

    d=w/2;

    if(x==w/2 && y==h/2)
    {

        c++;
        //printf("%.6f %d",a,c);

    }
     double a=(h/2)*1.0*w;
    printf("%.6f %d",a,c);
   /* else
    {
        float a=y*x*1.0;

        c=abs(d-x);
         printf("%.6f %d",a,c);

    }*/
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'd' was not declared in this scope
   12 |     d=w/2;
      |     ^
Language: C++

#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
 
 
int main(){
    ios_base::sync_with_stdio(false);cin.tie(0);
    double a,b,x,y;
    cin>>a>>b>>x>>y;
    double sum=a*b/2;
    cout<<fixed;
    cout<<sum<<setprecision(9)<<" ";
    if(x==b/2 && y==a/2 && a%2==0 && b%2==0)cout<<1;
    else cout<<0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:29: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   14 |     if(x==b/2 && y==a/2 && a%2==0 && b%2==0)cout<<1;
      |                            ~^~
      |                            | |
      |                            | int
      |                            double
a.cc:14:39: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   14 |     if(x==b/2 && y==a/2 && a%2==0 && b%2==0)cout<<1;
      |                                      ~^~
      |                                      | |
      |                                      | int
      |                                      double
Language: C++

#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
 
 
int main(){
    ios_base::sync_with_stdio(false);cin.tie(0);
    double a,b,x,y;
    cin>>a>>b>>x>>y;
    double sum=a*b/2;
    cout<<fixed;
    cout<<sum<<setprecision(9)<<" ";
    if(x==b/2 && y==a/2 && a&0 && b&0 )cout<<1;
    else cout<<0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:29: error: invalid operands of types 'double' and 'int' to binary 'operator&'
   14 |     if(x==b/2 && y==a/2 && a&0 && b&0 )cout<<1;
      |                            ~^~
      |                            | |
      |                            | int
      |                            double
a.cc:14:36: error: invalid operands of types 'double' and 'int' to binary 'operator&'
   14 |     if(x==b/2 && y==a/2 && a&0 && b&0 )cout<<1;
      |                                   ~^~
      |                                   | |
      |                                   | int
      |                                   double
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n)        for(int i=0; i<(int)(n); ++i)
int main() {
  double a,b,c,d;
  cin>>a>>b>>c>>d;
  if(a/2==c&&b/2==d)cout<<fixed<<setpricision(6)<<a*b/2<<" "<<1;
  else cout<<fixed<<setpricision(6)<<a*b/2<<" "<<0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:34: error: 'setpricision' was not declared in this scope
    7 |   if(a/2==c&&b/2==d)cout<<fixed<<setpricision(6)<<a*b/2<<" "<<1;
      |                                  ^~~~~~~~~~~~
a.cc:8:21: error: 'setpricision' was not declared in this scope
    8 |   else cout<<fixed<<setpricision(6)<<a*b/2<<" "<<0;
      |                     ^~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n)        for(int i=0; i<(int)(n); ++i)
int main() {
  double a,b,c,d;
  cin>>a>>b>>c>>d;
  if(a/2==c&&b/2==d)cout<<fixed<<setpricision(6)<<" "<<1;
  else cout<<fixed<<setpricision(6)<<" "<<0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:34: error: 'setpricision' was not declared in this scope
    7 |   if(a/2==c&&b/2==d)cout<<fixed<<setpricision(6)<<" "<<1;
      |                                  ^~~~~~~~~~~~
a.cc:8:21: error: 'setpricision' was not declared in this scope
    8 |   else cout<<fixed<<setpricision(6)<<" "<<0;
      |                     ^~~~~~~~~~~~
Language: C++

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

int main(){
    int W,H,x,y,S;
    int ans = 0;
    cin >> W >> H >> x >> y;
    double S = (W*H)/2;
    if(2*x == W && 2*y == H){
        ans++;
    }
    cout << W <<" " << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: conflicting declaration 'double S'
    8 |     double S = (W*H)/2;
      |            ^
a.cc:5:17: note: previous declaration as 'int S'
    5 |     int W,H,x,y,S;
      |                 ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'c' was not declared in this scope
    9 |         cin>>a>>c>>x>>y;
      |                 ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'B' was not declared in this scope
    9 |         cin>>a>>B>>x>>y;
      |                 ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:42: error: expected primary-expression before 'long'
    9 |     cout << fixed << setprecision(15) << long double(w*h/2) << " " << "1";
      |                                          ^~~~
a.cc:12:42: error: expected primary-expression before 'long'
   12 |     cout << fixed << setprecision(15) << long double(w*h/2) << " " << "0";
      |                                          ^~~~
a.cc:14:43: error: expected primary-expression before 'long'
   14 | else cout << fixed << setprecision(15) << long double(w*h/2) << " " << "0";
      |                                           ^~~~
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected primary-expression before 'long'
    7 | if(x==long double(w/2)&&y==long double(h/2)){
      |       ^~~~
a.cc:7:7: error: expected ')' before 'long'
    7 | if(x==long double(w/2)&&y==long double(h/2)){
      |   ~   ^~~~
      |       )
Language: C++

#include <iostream>
using namespace std;
#define int long long
int32_t main()
{
  int a,b; cin>>a>>b;
  int x,y; cin>>x>>y;
  cout<<fixed;
  cout<<setprecision(12);
  double p = a;
  double q = b;
  cout<<(p*q)/2.0<<" ";
  if(a == b and a % 2 == 0)
  {
    cout<<1;
  }
  else
  {
    cout<<0;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:9:9: error: 'setprecision' was not declared in this scope
    9 |   cout<<setprecision(12);
      |         ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include <iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <math.h>
#include <cstdint>
#include <map>
#include<iomanip>

using namespace std;
typedef long long ll; 


ll ans,mx,sum,mn=1e18,flag;


int main(){
	ll w,h,x,y;
	cin>>w>>h>>x>>y;
	if(w==h && x!=w && y!=h){
		double ans = max(w,h);
		cout<<fixed<<setprecision(6)<<ans<<" "<<1;
	}
	else {
		double ans = max(w,h);
		cout<<fixed<<setprecision(6)<<ans<<" "<<0;
	}
}.

Compiler output:
a.cc:27:2: error: expected unqualified-id before '.' token
   27 | }.
      |  ^
Language: C++

//#define _GLIBCXX_DEBUG

#include<bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
const int INF= 1e9+5;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll> >vvl;
typedef pair<ll,ll> P;
typedef tuple<ll,ll,ll> T;
const ll MOD=1000000007LL;
string abc="abcdefghijklmnopqrstuvwxyz";
string ABC="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int main(){
  ll w,h,x,y;cin>>w>>h>>x>>y;
  sa=min(x*h,(w-x)*h);
  sb=min(y*w,(h-y)*w);
  if(sa==sb){
    cout<<sa<<" "<<1<<endl;
  }
  else {
    cout<<max(sa,sb)<<" "<<0<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: 'sa' was not declared in this scope
   18 |   sa=min(x*h,(w-x)*h);
      |   ^~
a.cc:19:3: error: 'sb' was not declared in this scope
   19 |   sb=min(y*w,(h-y)*w);
      |   ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
struct edge {
    int to;     // 辺の行き先
    int weight; // 辺の重み
    edge(int t, int w) : to(t), weight(w) { }
};
using Graph = vector<vector<int>>;
using dou =long double;
string Yes="Yes";
string YES="YES";
string NO="NO";
string No="No";
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
#define rep(i, n)         for(int i = 0; i < (int)(n); i++)
#define brep(n)           for(int bit=0;bit<(1<<n);bit++)
#define erep(i,container) for (auto i : container)
#define irep(i, n)        for(int i = n-1; i >= (int)0; i--)
#define rrep(i,m,n) for(int i = m; i < (int)(n); i++)
#define reprep(i,j,h,w) rep(i,h)rep(j,w)
#define all(x) (x).begin(),(x).end()
#define aall(x,n) (x).begin(),(x).begin()+(n)
#define VEC(type,name,n) std::vector<type> name(n);rep(i,n)std::cin >> name[i];
#define pb push_back
#define pf push_front
#define lb lower_bound
#define ub upper_bound
#define res resize
#define as assign
#define fi first
#define se second
#define itn int
#define mp make_pair
#define sum(a) accumulate(all(a),0)
#define keta fixed<<setprecision
#define vvector(name,typ,m,n,a)vector<vector<typ> > name(m,vector<typ> (n,a))
#define vvvector(name,t,l,m,n,a) vector<vector<vector<t> > > name(l, vector<vector<t> >(m, vector<t>(n,a)));
#define vvvvector(name,t,k,l,m,n,a) vector<vector<vector<vector<t> > > > name(k,vector<vector<vector<t> > >(l, vector<vector<t> >(m, vector<t>(n,a)) ));
 
typedef long long ll;
const int INF = 2000000000;
const ll INF64 = 922337203685477580ll;
const int mod = 1000000007ll;
const ll  MOD = 1000000007LL;
const double pi=3.1415926535897932384626;
int main(){
    ll w,h,x,y;
    std::cin >> w>>h>>x>>y;
    std::cout <<keta(10)<< double(w*h)/2 << " ";
    if(w%2==0&&h%2==0){
        if((h/2==y&&w/2==x))std::cout << 1 << std::endl;
        else std::cout << 0 << std::endl;
    }
    else {
        else std::cout << 0 << std::endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:56:9: error: 'else' without a previous 'if'
   56 |         else std::cout << 0 << std::endl;
      |         ^~~~
Language: C++

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

int main(){
  float x,y,a,b;
  cin>>x>>y>>a>>b;
  float k = x*y;
  float ans = k/2;
  int z;
  if(2a == x && 2b == y)
    	z=1;
  else
    	z=0;
  cout<<ans<<" "<<z;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: unable to find numeric literal operator 'operator""a'
   10 |   if(2a == x && 2b == y)
      |      ^~
a.cc:10:17: error: unable to find numeric literal operator 'operator""b'
   10 |   if(2a == x && 2b == y)
      |                 ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double lb;
#define REP(i,j,n) for (int i=j;i<(n);i++)
#define RREP(i,n) for (int i = n; 0<i;i--)
#define print(out) cout<< out  << "\n";
#define mod 1000000007
const int INF = 1e9;

int main(){
  ll H,W,x,y;cin>>H>>W>>x>>y;
  cout<<(double)H*W/2<<endl;
  if ((x == (double)(W/2)) && (y==(doublse)(H/2))) {
        cout << '1';
    }
    else {
        cout << '0';
    }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:36: error: 'doublse' was not declared in this scope; did you mean 'double'?
   14 |   if ((x == (double)(W/2)) && (y==(doublse)(H/2))) {
      |                                    ^~~~~~~
      |                                    double
Language: Java

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] data = br.readLine().split(" ");
    int w = Integer.parseInt(data[0]);
    int h = Integer.parseInt(data[1]);
    double x = Integer.parseInt(data[2]);
    double y = Integer.parseInt(data[3]);
    int multipleAns = (x==w/2.0 && y==h/2.0 ? 1 : 0);
    
    System.out.println(w*h/2.0 + " " + multipleAns);
  }
}


Compiler output:
Main.java:2: error: cannot find symbol
  public static void main(String[] args) throws IOException {
                                                ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                               ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: redeclaration of 'int x'
    8 |   int x=0;
      |       ^
a.cc:5:11: note: 'int x' previously declared here
    5 |   int w,h,x,y;
      |           ^
Language: C++

#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <fstream>
#include <cassert>
#include <cstring>
#include <unordered_set>
#include <unordered_map>
#include <numeric>
#include <ctime>
#include <bitset>
#include <complex>

using namespace std;

#define int long long

signed main() {
	ios_base::sync_with_stdio(false);
	cin.tie(0);

	int h, w, x, y;
	cin >> w >> h >> x >> y;
	cout << (w * h) / 2 << endl;
	if (2 * x == w ||| 2 * y == h) {
		cout << 1 << endl;
	} else {
		cout << 0 << endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:26: error: expected primary-expression before '|' token
   32 |         if (2 * x == w ||| 2 * y == h) {
      |                          ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
    long long double W,H,x,y;
    cin >> W >> H >> x >> y;

    int cnt = 0;
    if(x == W / 2.0 && y == H / 2.0){ cnt = 1; }
    cout << (W * H) / 2.0 << " " << cnt;

    return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected ';' before numeric constant
   10 |   if(x == w/2 && y == h/2) cout 1 << endl;
      |                                ^~
      |                                ;
Language: C++

#include <cstdio>
using namespace std;

typedef long long ll;

int main()
{
	ll w, h, x, y;
	scanf("%lld %lld %lld %lld", &w, &h, &x, &y);

	ll res = w * min(y, h - y);
	res = max(res, h * min(x, w - x));
	printf("%lld", res);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'min' was not declared in this scope; did you mean 'main'?
   11 |         ll res = w * min(y, h - y);
      |                      ^~~
      |                      main
a.cc:12:15: error: 'max' was not declared in this scope
   12 |         res = max(res, h * min(x, w - x));
      |               ^~~
Language: C++

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

int main(){
    int W,H,x,y;
    cin>>W>>H>>x>>y;
    cout << fixed <<　setprecision(12) <<　double(W*H/2) << endl;
    if(x==double(W/2)&&y==double(H/2))
        cout << 1 << endl;
    else
        cout << 0 << endl;
}

Compiler output:
a.cc:7:21: error: extended character 　 is not valid in an identifier
    7 |     cout << fixed <<　setprecision(12) <<　double(W*H/2) << endl;
      |                     ^
a.cc:7:42: error: extended character 　 is not valid in an identifier
    7 |     cout << fixed <<　setprecision(12) <<　double(W*H/2) << endl;
      |                                          ^
a.cc: In function 'int main()':
a.cc:7:21: error: '\U00003000setprecision' was not declared in this scope
    7 |     cout << fixed <<　setprecision(12) <<　double(W*H/2) << endl;
      |                     ^~~~~~~~~~~~~~
a.cc:7:42: error: '\U00003000double' was not declared in this scope; did you mean 'double'?
    7 |     cout << fixed <<　setprecision(12) <<　double(W*H/2) << endl;
      |                                          ^~~~~~~~
      |                                          double
Language: C++

#include <iostream>
using namespace std;

#include <string>
#include <vector>
#include <algorithm>
#include <math.h>

const double PI = 3.14;


int main()
{

	double a, b, c, d;
	cin >> a >> b >> c >> d;

	double s1 = ( a - c ) * b;
	double s2 = c * b;
	double big1 = s1 < s2 ? s2 : s1;


	s1 = a * d;
	s2 = a * ( b - d );
	double big2 = s1 < s2 ? s2 : s1;

	int dob = 0;
	double ans = 0;

	if( big1 == big2 )
	{
		dob = 1;
		ans = big1;
	}
	else
	{
		ans = big1 > big2 ? big2 : big1;
	}

	
	printf_s( "%.6f %d", ans, dob );

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:9: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
   41 |         printf_s( "%.6f %d", ans, dob );
      |         ^~~~~~~~
      |         printf
Language: C++

#include "iostream"
#include "iomanip"
using namespace std;
int w,h,x,y;
cin >> w >> h >> x >> y;
if ((x == 0 && (y == 0 || y == h)) || (x == w && (y == 0 || y == h))){
    count << "0 " << "0" << endl;
}
else if ((x == 0 && ((0 < y) && (y < h))) ||  (x == W && ((0 < y) && (y < h)))){
    double f = w * (h - y);
    cout << setprecision(f) << " 0" << endl;
}else if ((y == 0 && ((0 < x) && (x < w))) ||  (y == h && ((0 < x) && (x < w)))){
    double f = h * (w - x);
    cout << setprecision(f) << " 0" << endl;
}else if (((0 < x) && (x < w)) && ((0 < y) && (y < h))) {
    double f = (w - x) * (h - y);
    cout << setprecision(f) << " 0" << endl;
}

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> w >> h >> x >> y;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if ((x == 0 && (y == 0 || y == h)) || (x == w && (y == 0 || y == h))){
      | ^~
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else if ((x == 0 && ((0 < y) && (y < h))) ||  (x == W && ((0 < y) && (y < h)))){
      | ^~~~
a.cc:12:2: error: expected unqualified-id before 'else'
   12 | }else if ((y == 0 && ((0 < x) && (x < w))) ||  (y == h && ((0 < x) && (x < w)))){
      |  ^~~~
a.cc:15:2: error: expected unqualified-id before 'else'
   15 | }else if (((0 < x) && (x < w)) && ((0 < y) && (y < h))) {
      |  ^~~~
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() {
  ll w,h,x,y;
  ll s1,s2;
  double ans1;
  int ans2;

  cin >> w >> h >> x >> y;

  ans1 = (double)w*h/2

  ans2 = (2*x == w) && (2*y == h) ? 1 : 0;
  cout << ans1 << " " << ans2;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: expected ';' before 'ans2'
   14 |   ans1 = (double)w*h/2
      |                       ^
      |                       ;
   15 | 
   16 |   ans2 = (2*x == w) && (2*y == h) ? 1 : 0;
      |   ~~~~
Language: C++

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

Compiler output:
a.cc:8:10: error: extended character 　 is not valid in an identifier
    8 |   cout <<　(double)W * H / 2.0 << " ";
      |          ^
a.cc: In function 'int main()':
a.cc:8:13: error: expected primary-expression before 'double'
    8 |   cout <<　(double)W * H / 2.0 << " ";
      |             ^~~~~~
a.cc:8:10: error: '\U00003000' was not declared in this scope
    8 |   cout <<　(double)W * H / 2.0 << " ";
      |          ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int w,h,x,y;
  cin>>w>>h>>x>>y;
  int a=w*h/2;
  cout<<a;
  if(x==0)
    int p=0;
  else if(y==h)
    p=0;
  else
    p=1;
  cout<<" "<<p;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'p' was not declared in this scope
   12 |     p=0;
      |     ^
a.cc:14:5: error: 'p' was not declared in this scope
   14 |     p=1;
      |     ^
a.cc:15:14: error: 'p' was not declared in this scope
   15 |   cout<<" "<<p;
      |              ^
Language: C++

/*
このコード、と～おれ!
Be accepted!
∧＿∧　
（｡･ω･｡)つ━☆・*。
⊂　　 ノ 　　　・゜+.
　しーＪ　　　°。+ *´¨)
 　　　　　　　　　.· ´¸.·*´¨) ¸.·*¨)
		  　　　　　　　　　　(¸.·´ (¸.·'* ☆
					*/

#include <stdio.h>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstring>
#include <vector>
#include <numeric>
#include <iostream>
#include <random>
#include <map>
#include <unordered_map>
#include <queue>
#include <regex>
#include <functional>
#include <complex>
#include <list>
#include <cstdint>
/*多倍長整数/cpp_intで宣言
#include <boost/multiprecision/cpp_int.hpp>

using namespace boost::multiprecision;
*/

#pragma GCC target ("avx2")
#pragma GCC optimization ("O3")
#pragma GCC optimization ("unroll-loops")
#define rep(i, n) for(int i = 0; i < (n); ++i)
#define rep1(i, n) for(int i = 1; i <= (n); ++i)
#define rep2(i, n) for(int i = 2; i < (n); ++i)
#define repr(i, n) for(int i = n; i >= 0; --i)
#define reprm(i, n) for(int i = n - 1; i >= 0; --i)
#define printynl(a) printf(a ? "yes\n" : "no\n")
#define printyn(a) printf(a ? "Yes\n" : "No\n")
#define printYN(a) printf(a ? "YES\n" : "NO\n")
#define printin(a) printf(a ? "possible\n" : "inposible\n")
#define printdb(a) printf("%.50lf\n", a)//少数出力
#define printdbd(a) printf("%.16lf\n", a)//少数出力(桁少なめ)
#define prints(s) printf("%s\n", s.c_str())//string出力
#define all(x) (x).begin(), (x).end()
#define allsum(a, b, c) ((a + b) * c / 2)//等差数列の和、初項,末項,項数
#define pb push_back
#define priq priority_queue
#define rpriq priq<int, vector<int>, greater<int>>
#define deg_to_rad(deg) (((deg)/360.0)*2.0*PI)
#define rad_to_deg(rad) (((rad)/2.0/PI)*360.0)
#define Please return
#define AC 0
#define addf(T) [](T a, T b){return (a + b);}
#define minf(T) [](T a, T b){return min(a, b);}
#define maxf(T) [](T a, T b){return max(a, b);}

using ll = long long;

constexpr int INF = 1073741823;
constexpr int MINF = -1073741823;
constexpr ll LINF = ll(4661686018427387903);
constexpr ll MOD = 1000000007;
const long double PI = acos(-1.0L);

using namespace std;

void scans(string& str) {
	char c;
	str = "";
	scanf("%c", &c);
	if (c == '\n')scanf("%c", &c);//最初の改行対策
	while (c != '\n' && c != -1) {
		str += c;
		scanf("%c", &c);
	}
}

void scanc(char& str) {
	char c;
	scanf("%c", &c);
	if (c == -1)return;
	while (c == '\n') {
		scanf("%c", &c);
	}
	str = c;
}

double acot(double x) {
	return PI / 2 - atan(x);
}

ll gcd(ll a, ll b) {
	if (b == 0) return a;
	return gcd(b, a % b);
}

ll lcm(ll number1, ll number2) {//lcmを求める
	return number1 / gcd(number1, number2) * number2;
}

ll LSB(ll n) { return (n & (-n)); }

/*-----------------------------------------ここからコード-----------------------------------------*/

int main() {

	int h, w, x, y;
	scanf("%d%d%d%d", &h, &w, &x, &y);
	printdb( h * w / (double)2);
	printf("%d\n", (double)x == (double)w / 2 && (double)y == (double)h / 2));

	Please AC;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:116:81: error: expected ';' before ')' token
  116 |         printf("%d\n", (double)x == (double)w / 2 && (double)y == (double)h / 2));
      |                                                                                 ^
      |                                                                                 ;
Language: C++

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

int main(){
  int W, H, x, y;
  cin >> W >> H >> x >> y;
  malt = 0;
  if (W==2*x && H==2*y) malt = 1;
  double area = (W * H) / 2;
  cout << area << malt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'malt' was not declared in this scope
    7 |   malt = 0;
      |   ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int a,b,c,d;
  scanf("%d%d%d%d", &a, &b, &x, &y);
  printf("%lf %d\n", double(a)*double(b) / 2, x + x == a&&y + y == b);
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: 'x' was not declared in this scope
    7 |   scanf("%d%d%d%d", &a, &b, &x, &y);
      |                              ^
a.cc:7:34: error: 'y' was not declared in this scope
    7 |   scanf("%d%d%d%d", &a, &b, &x, &y);
      |                                  ^
Language: C++

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





int main(){
    cout << fixed << setprecision(10);

    int w,h,x,y;

    double ans;

    cin >> w >> h >> x >> y;

    int c=0;

    if(x*2==w&y*2==h){
        c=1;
    }

    double ans =(double)(w*h)/2;

    cout << ans <<" "<< c << endl;
    




    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:12: error: redeclaration of 'double ans'
   26 |     double ans =(double)(w*h)/2;
      |            ^~~
a.cc:16:12: note: 'double ans' previously declared here
   16 |     double ans;
      |            ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	float w,h,x,y;
	int count=0;
	cin>>w>>h>>x>>y;
	double a=w*h/(double)(2);
	if(w/2==x && h/2==y)
	    cout << fixed << setprecision(6)<<a<<' '<<"1";
	    else
		cout << fixed << setprecision(6)<<a<<' '<<"1"

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:62: error: expected ';' before '}' token
   12 |                 cout << fixed << setprecision(6)<<a<<' '<<"1"
      |                                                              ^
      |                                                              ;
   13 | 
   14 | }
      | ~
Language: C

#include<stdio.h>
 int main()
 {
 int a, b, x, y;
 scanf("%d%d%d%d", &a, &b, &x, &y);
 printf("%lf %d\n", double(a)*double(b) / 2, x + x == a &&y + y == b);
}

Compiler output:
main.c: In function 'main':
main.c:6:21: error: expected expression before 'double'
    6 |  printf("%lf %d\n", double(a)*double(b) / 2, x + x == a &&y + y == b);
      |                     ^~~~~~
Language: C

#include<stdio.h>
typedef long long ll;
 int main()
 {
 int a, b, x, y;
 scanf("%d%d%d%d", &a, &b, &x, &y);
 printf("%lf %d\n", double(a)*double(b) / 2, x + x == a &&y + y == b);
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: expected expression before 'double'
    7 |  printf("%lf %d\n", double(a)*double(b) / 2, x + x == a &&y + y == b);
      |                     ^~~~~~
Language: C

 #include<stdio.h>
typedef long long lf;
 int main()
 {
 int a, b, x, y;
 scanf("%d%d%d%d", &a, &b, &x, &y);
 printf("%lf %d\n", double(a)*double(b) / 2, x + x == a &&y + y == b);
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: expected expression before 'double'
    7 |  printf("%lf %d\n", double(a)*double(b) / 2, x + x == a &&y + y == b);
      |                     ^~~~~~
Language: C

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

Compiler output:
main.c:2:10: fatal error: vector: No such file or directory
    2 |  #include<vector>
      |          ^~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;
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 ans =0.0;
	int ans2 = 0;
   ans = (double)W*(double)H/2;
   if(2*x = W && 2*y == H) ans2 =1;
     System.out.println(ans+ " " + ans2);
 }
}

Compiler output:
Main.java:12: error: unexpected type
   if(2*x = W && 2*y == H) ans2 =1;
       ^
  required: variable
  found:    value
Main.java:12: error: bad operand types for binary operator '&&'
   if(2*x = W && 2*y == H) ans2 =1;
              ^
  first type:  int
  second type: boolean
2 errors
Language: C++

#include<iostream>
using namespace std;
#define lli long long int
#include<math.h>
#include<iomanip>
int main(){
  lli  w,h,x,y;
  cin>>w>>h>>x>>y;
  lli k=x*h,l=y*w;
  lli m=w*h-k,n=w*h-l;
  lli a=min(k,m),b=min(l,n);
  if(a==b)
    cout<<fixed<<setprecision(9)<<)(double) min(k,m)<<" "<<"1";
  else{
    if(a>b){
      cout<<fixed<<setprecision(9)<<(double) min(k,m);
      if(a==max(k,m)||a==l||a==n)
        cout<<" "<<"1";
      else
        cout<<" "<<"0";
    }
    else{
      cout<<fixed<<setprecision(9)<<(double)min(l,n);
      if(b==max(l,n)||b==a||b==k)
        cout<<" "<<"1";
      else
        cout<<" "<<"0";
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:35: error: expected primary-expression before ')' token
   13 |     cout<<fixed<<setprecision(9)<<)(double) min(k,m)<<" "<<"1";
      |                                   ^
Language: C++

w, h, x, y = map(int, (input().split()))

s = w * h * 0.5
flg = 1 if x == w * 0.5 and y == h * 0.5 else 0

print(s, flg)


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

#include <bits/stdc++.h>

using namespace std;

int main(){


    double a, b, x, y;
    cin >> a >> b >> x >> y;
    double c = (a*b)/2;
    double d = a/2, e = b/2;
    if( x == d && y == e )
        cout << fixed << setprecision(10) << c << " "  << 1 << endl;
    else
        cout fixed << setprecision(10) << c << " " << 0 << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: expected ';' before 'fixed'
   15 |         cout fixed << setprecision(10) << c << " " << 0 << endl;
      |             ^~~~~~
      |             ;
Language: C++

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

int main(){
  int64_t W,H,x,y;
  cin>>W>>H>>x>>y;
  double ans;
  ans=W*H/2;

  if(2*x==W && 2*y==H){
    printf("%lf %d\n",ans,1);
  }
  else{
    printf("%lf %d\n",ans,0);
  }

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: lvalue required as left operand of assignment
    9 |   if(x=w/2 && y=h/2 && w%2=0 && h%2=0){
      |                            ~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define repr(i,a,b) for(int i=a;i<b;i++)//半開区間[a, b)
#define rep(i,n) for(int i=0;i<n;i++)//半開区間[0, n)
#define reprrev(i,a,b) for(int i=b-1;i>=a;i--)//半開区間[a, b)を上から
#define reprev(i,n) reprrev(i,0,n)//半開区間[0, n]を上から
typedef long long ll;//intは[-2147483648, 2147483647]の範囲 
typedef unsigned long long ull;//非負整数
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
                     
const ll mod = 1e9+7;
/* <-----------------------------------------------------------------------------------> */
/* <-----------------------------------------------------------------------------------> */
/* <-----------------------------------------------------------------------------------> */
/* <-----------------------------------------------------------------------------------> */
                     
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int W, H, x, y; cin >> W >> H >> x >> y;
  double ans = (double)(W*H)/2;
  cout << fixed << setprecision(9) << ans << endl;
  double a = (double)W/2;
  double b = (double)H/2;
  
  if(((double)x == a) && ((double)y == b))) cout << 1 << endl;
  else cout << 0 << endl; 


 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:43: error: expected primary-expression before ')' token
   27 |   if(((double)x == a) && ((double)y == b))) cout << 1 << endl;
      |                                           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 3;
int main() {
    int w, h, x, y;
    scanf("%d %d %d %d", &w, &h, &x, &y);
    int eq = h % 2 == 0 && (h / 2 == y) 
            w % 2 == 0 && (w / 2 == x); 
    printf("%.9lf %d\n", (1LL * w * h) / 2.0, eq; 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ',' or ';' before 'w'
    8 |             w % 2 == 0 && (w / 2 == x);
      |             ^
a.cc:9:49: error: expected ')' before ';' token
    9 |     printf("%.9lf %d\n", (1LL * w * h) / 2.0, eq;
      |           ~                                     ^
      |                                                 )
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define rep(i, n) for(int i = 0; i < n; i++)
typedef long long ll;

int main() {
    int a, b, x, y;
    //cin >> a >> b >> x >> y;
    scanf("%d%d%d%d",&a,&b,&x,&y);
//    int ans = 0;
//    if(x == a / 2 && y == b / 2) ans = 1;
    cout << setprecision(9) << (double(a)*double(b))/2 << " " << ans << endl;
    //printf("%lf %d\n", double(a) * double(b) / 2, x+x==a && y+y==b);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:66: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |     cout << setprecision(9) << (double(a)*double(b))/2 << " " << ans << endl;
      |                                                                  ^~~
      |                                                                  abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long double ld;
int main(){
  ld h,w,x,y;
  cin>>h>>w>>x>>y;
  
  cout<<fixed<<setprecision(10)<<h*w/2.0<<' '<<((h-2*x)==0&&(w-2*y)==0)?1:0)<<endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:76: error: expected ';' before ')' token
    8 |   cout<<fixed<<setprecision(10)<<h*w/2.0<<' '<<((h-2*x)==0&&(w-2*y)==0)?1:0)<<endl;
      |                                                                            ^
      |                                                                            ;
Language: C++

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

int main() {
  long double a, b, x, y;
  cin >> a >> b >> x >> y;
  long double ans = a * b / 2;
  if (x == a / 2 && y == b / 2)
    cout << setprecision(20) << ans << " " << 1 << endl;
  else
    cout << setprecision(20) << ans << " " << 0 << endl;
}

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

int main() {
  long double a, b, x, y;
  cin >> a >> b >> x >> y;
  long double ans = a * b / 2;
  if (x == a / 2 && y == b / 2)
    cout << setprecision(20) << ans << " " << 1 << endl;
  else
    cout << setprecision(20) << ans << " " << 0 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a >> b >> x >> y;
      |   ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << setprecision(20) << ans << " " << 1 << endl;
      |     ^~~~
a.cc:6:13: error: 'setprecision' was not declared in this scope
    6 |     cout << setprecision(20) << ans << " " << 1 << endl;
      |             ^~~~~~~~~~~~
a.cc:6:52: error: 'endl' was not declared in this scope
    6 |     cout << setprecision(20) << ans << " " << 1 << endl;
      |                                                    ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << setprecision(20) << ans << " " << 0 << endl;
      |     ^~~~
a.cc:8:13: error: 'setprecision' was not declared in this scope
    8 |     cout << setprecision(20) << ans << " " << 0 << endl;
      |             ^~~~~~~~~~~~
a.cc:8:52: error: 'endl' was not declared in this scope
    8 |     cout << setprecision(20) << ans << " " << 0 << endl;
      |                                                    ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    double W,H,x,y;
    cin >> W >> H >> x >> y;

    if(W%2==1 || H%2==1){
        cout << setprecision(35) << W*H/2.000000000<< " ";
    }else{
        cout << setprecision(35) << W*H/2.000000000 << " ";
    }

    if(x == W/2.000000000 && y == H/2.000000000){
        cout << "1" << endl;
    }else{
        cout << "0" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |     if(W%2==1 || H%2==1){
      |        ~^~
      |        | |
      |        | int
      |        double
a.cc:9:19: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |     if(W%2==1 || H%2==1){
      |                  ~^~
      |                  | |
      |                  | int
      |                  double
Language: C++

#include <iostream>
using namespace std;

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

	int ret = 0;
	if (x == w / 2 && y == h / 2) {
		ret = 1;
	}

	cout << (double)w * (double)h * 0.5 << " " << ret << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'll' was not declared in this scope
    6 |         ll w, h, x, y;
      |         ^~
a.cc:7:16: error: 'w' was not declared in this scope
    7 |         cin >> w >> h >> x >> y;
      |                ^
a.cc:7:21: error: 'h' was not declared in this scope
    7 |         cin >> w >> h >> x >> y;
      |                     ^
a.cc:7:26: error: 'x' was not declared in this scope
    7 |         cin >> w >> h >> x >> y;
      |                          ^
a.cc:7:31: error: 'y' was not declared in this scope
    7 |         cin >> w >> h >> x >> y;
      |                               ^
Language: C++

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;++i)
#include<string>
using namespace std;
typedef long long ll;
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }

int main() {
	double W, H, x, y;
	cin >> W >> H >> x >> y;
	double ans = W * H / 2;
	int flag = 0;
	if (x == W / 2 && y == H / 2)flag = 1;
	cout << ans << '' << flag << endl;
	return 0;
}

Compiler output:
a.cc:15:24: error: empty character constant
   15 |         cout << ans << '' << flag << endl;
      |                        ^~
Language: C++

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

int main(){
    double W, H, x, y;
    cin >> W >> H >> x >> y;
    double S = W * H / 2
    double medW = W / 2;
    double medH = H / 2;
    cout << S << endl;
    if(medW == x && medH == y){
        cout << 1 << endl;
    }else{
        cout << 0 << endl;
    }
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'double'
    8 |     double medW = W / 2;
      |     ^~~~~~
a.cc:11:8: error: 'medW' was not declared in this scope; did you mean 'medH'?
   11 |     if(medW == x && medH == y){
      |        ^~~~
      |        medH
a.cc:16:14: error: expected '}' at end of input
   16 |     return 0;
      |              ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
    float W, H, x, y;
    cin >> W >> H >> x >> y;
    float S = W * H / 2;
    float medW = W / 2;
    float medH = H / 2;
    cout << S << endl;
    if(medW == x && medH == y){
        cout << 1 << endl;
    }else{
        cout << 0 << endl;
    }
    return 0;

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

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

int main(){
    float W, H, x, y;
    cin >> W >> H >> x >> y;
    float S = W * H / 2
    float medW = W / 2;
    float medH = H / 2;
    cout << S << endl;
    if(medW == x && medH == y){
        cout << 1 << endl;
    }else{
        cout << 0 << endl;
    }
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'float'
    8 |     float medW = W / 2;
      |     ^~~~~
a.cc:11:8: error: 'medW' was not declared in this scope; did you mean 'medH'?
   11 |     if(medW == x && medH == y){
      |        ^~~~
      |        medH
a.cc:16:14: error: expected '}' at end of input
   16 |     return 0;
      |              ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^