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

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

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

#include <algorithm>
#include <iostream>
#include <vector>
#include <map>
#include <cstdio>
#include <string>
#include <cmath>
#include <queue>
#include <tuple>
//#include <bits/stdc++.h>
#define maxs(x,y) x = max(x,y)
#define mins(x,y) x = min(x,y)
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define repr(i, n) for (int i = (n) - 1; i >= 0; i--)
#define FOR(i,i0,n) for(int (i)=(i0);(i)<(n);(i)++)
#define FORR(i,i0,n) for(int (i)=(n)-1; (i)>=(i0);(i)--)
#define SORT(x) sort(x.begin(),x.end())
#define rn return
#define fi first
#define se second
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define mt make_tuple
typedef std::pair<int,int> P;
using namespace std;
using ll = long long;


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


Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
#include<algorithm>
#include<math.h>
#include<string>
#include<iostream>
#include<vector>
#include<cstdlib>
using namespace std;
 
template <class T> using V = vector<T>;
 
template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}
 
const long long INF = 1LL << 60;
 
using ll = long long;
using db = double;
using st = string;
using ch = char;
using bl = bool;
using vll = V<ll>;
using vpll =V<pair<ll,ll>>;
using vst = V<st>;
using vdb = V<db>;
using vch = V<ch>;
using vbl = V<bl>;
using graph = V<V<int>>;
//using pb = push_back;
//

 
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define rFOR(i,a,b) for(ll i=(a);i>=(b);i--)
#define oFOR(i,a,b) for(ll i=(a);i<(b);i+=2)
#define bgn begin()
#define en end()
#define SORT(a) sort((a).bgn,(a).en)
#define REV(a) reverse((a).bgn,(a).en)
#define M(a,b) max(a,b)
#define rM(a,b) min(a,b)
#define fi first
#define se second
#define sz size()
#define gcd(a,b) __gcd(a,b)
#define co(a) cout<<a<<endl;
#define ci(a) cin>>a;
#define pq = priority_queue;
#define pb = push_back;
  
 

ll sum(ll n) {
ll m=0;
  while(n){
    m+=n%10;
    n/=10;
  }
  return m;
}
 
 
const int MAX = 510000;
const int MOD = 1000000007;
 
long long fac[MAX], finv[MAX], inv[MAX];
 
void Comuse() {
    fac[0] = fac[1] = 1;
    finv[0] = finv[1] = 1;
    inv[1] = 1;
    for (int i = 2; i < MAX; i++){
        fac[i] = fac[i - 1] * i % MOD;
        inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
        finv[i] = finv[i - 1] * inv[i] % MOD;
    }
}
 
 
#define comuse Comuse()
 
ll combi(int n, int k){
    if (n < k) return 0;
    if (n < 0 || k < 0) return 0;
    return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}
 
 
 
 
ll lcm(ll a,ll b){
  ll n;
  n=a/gcd(a,b)*b;
  return n;
}




 
/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/
 


signed main() {
  ll w,h,x,y;
    cin>>w>>h>>x>>y;
  if(db(w/2)==x&&db(h/2)==y){
    cout<<db(w*h/2<<" "<<1<<endl;
  }
  else{
    cout<<db(w*h/2)<<" "<<0<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:125:19: error: invalid operands of types 'll' {aka 'long long int'} and 'const char [2]' to binary 'operator<<'
  125 |     cout<<db(w*h/2<<" "<<1<<endl;
      |              ~~~~~^~~~~
      |                 |   |
      |                 |   const char [2]
      |                 ll {aka long long int}
Language: C++

#include<stdio.h>
int main(){
	 double w,h,x,y;
	double s;
	int t;
	while(~scanf("%llf%llf%llf%llf",&w,&h,&x,&y))
	{
		t=0;
		s=(double)w*(double)h/2;
		if(w%2==0&&h%2==0&&x==w/2&&y==h/2)
		t=1;
		printf("%.6llf %d\n",s,t);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   10 |                 if(w%2==0&&h%2==0&&x==w/2&&y==h/2)
      |                    ~^~
      |                    | |
      |                    | int
      |                    double
a.cc:10:29: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   10 |                 if(w%2==0&&h%2==0&&x==w/2&&y==h/2)
      |                            ~^~
      |                            | |
      |                            | int
      |                            double
Language: C++

#include<stdio.h>
int main()
{
	int w,h,x,y;
	while(~scanf("%d%d%d%d",&w,&h,&x,&y))
	{
		double z1,z2;
		z1=w/2.0;
		z2=h/2.0;
		if(x==z1&&y==z2)
		printf("%lf %d\n",double(w)*double(h)/2.0,1);
		else
		printf("%lf %d\n",double(w)double*(h)/2.0,0);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:44: error: expected ')' before 'double'
   13 |                 printf("%lf %d\n",double(w)double*(h)/2.0,0);
      |                       ~                    ^~~~~~
      |                                            )
Language: C

include<stdio.h>

int main(void) {
	long long int W, H, x, y, Sx, Sy, S, flag = 0, Wx, Hy;
	
	scanf("%lld %lld %lld %lld", &W, &H, &x, &y);
	
	Wx = W - x;
	
	Hy = H - y;
	
	if(Wx > x) {	Sx = Wx * H;	}
	else {		Sx = x * H;	}
	
	if(Hy > y) {		Sy = Hy * W;	}
	else {		Sy = y * W;	}
	
	if(Sx < Sy) {	S = Sx;	}
	else if(Sx == Sy) {	S = Sx;	flag = 1;	}
	else {	S = Sy;	}
	
	printf("%lld %lld", S, flag);
	
	return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

#include <bits/stdc++.h>
#include <cstdlib>  // abs() for integer 絶対値求めやつ
#include <cmath>    // abs() for float, and fabs()
#include <algorithm>
#include <vector>
#include <string>
#include <limits>
#include <numeric>
#include <type_traits>
#include<iomanip>//浮動小数点数を出力する制度の指定
//使い方　数値をnumとして　cout<<setprecision(n)<<num ;nは桁数
#define rep(i,n) for(int i = 0; i < (n);i++)
#define SORT(a) sort((a).begin(),(a).end())
#define REV(a) reverse((a).begin(),(a).end())
using namespace std;
using ll =long long;
#define INF 2000000000
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
#define che(a,string) cout<<"//"<<string <<"=="<<(a)<<"//" <<endl;
bool IsInt(double a){int b = a/1;if(a==b){return true;}else {return false;}}
/*覚えてないことメaモ
  数値型から文字列に変換　to_string(number);これは簡単
  文字列から数値型に変換　stoi(number)
  文字列からllに変換　stoll(number)*/

//ここから書き始める
//実験

int main(){
	ll w, h, x, y
	cin >> w >> h >> x >> y;
		//正確にxがwの半分 y がhの半分なら複数ある。
		int way = 0;
	if(x == 1.*(w/2) && y == 1.*(h/2)) {
		way = 1;
	}
	cout << 1. *(w * h) / 2. <<" "<< way<<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:32:9: error: expected initializer before 'cin'
   32 |         cin >> w >> h >> x >> y;
      |         ^~~
a.cc:35:29: error: 'y' was not declared in this scope
   35 |         if(x == 1.*(w/2) && y == 1.*(h/2)) {
      |                             ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cmath>
#include <string>
#include <cstring>
#include <algorithm>
#include <iomanip>
#include <cstdlib>
#include <cctype>
#define ll long long
using namespace std;
const int maxn = 1e6+7;

int main(){
	ll w,h,x,y;
	cin>>w>>h>>x>>y;
	printf("%.6lf ",w*h/2.0);
	if(2*x==w&&2*==h){
		cout<<1<<endl;
	}y
	else{
		cout<<0<<endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:23: error: expected primary-expression before '=' token
   18 |         if(2*x==w&&2*==h){
      |                       ^
a.cc:20:11: error: expected ';' before 'else'
   20 |         }y
      |           ^
      |           ;
   21 |         else{
      |         ~~~~
Language: C++

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

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

from math import isclose


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

if isclose(x, w / 2) and isclose(y, h / 2):
    print((w * h) / 2, 1)
else:
    print((w * h) / 2, 0)

Compiler output:
a.cc:1:1: error: 'from' does not name a type
    1 | from math import isclose
      | ^~~~
Language: C++

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

int main(){
  int W, H, x, y;
  cin >> W >> H >> x >> y;
  
  long long double area = W*H/2.0;
  if(W/2.0 == x && H/2.0 == y){
    cout << area << " 1";
  }else{
    cout << area << " 0";
  }
  return 0;
}

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

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

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

  double ans = max(cu-x*h,cu-y*w);

  if (cu-x*h == cu - y*w) cout << ans << " " << 1;
  else cout << fixed() << setprecision(8) << ans << " " << 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: too few arguments to function 'std::ios_base& std::fixed(ios_base&)'
   12 |   else cout << fixed() << setprecision(8) << ans << " " << 0;
      |                ~~~~~^~
In file included from /usr/include/c++/14/streambuf:43,
                 from /usr/include/c++/14/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54,
                 from a.cc:1:
/usr/include/c++/14/bits/ios_base.h:1104:3: note: declared here
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
Language: C

#include <bits/stdc++.h>
#define rep0(i,n) for (int i = 0; i < (n); ++i)  //0index
#define rep1(i,n) for (int i = 1; i < (n); ++i)  //1index
#define REP(i,a,b) for (int i = a; i < (b); ++i)  //aからb - 1まで
#define mREP(i,a,b) for (int i = a; i > (b); --i)  //逆
#define all(x) (x).begin(),(x).end()
const int INF = 1000000007;  //最大値兼MOD
typedef long long ll;
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; }
ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }  //GCD

bool is_prime(long long n) {  //素数判定
  for(int64_t i = 2; i * i <= n; i++) {
    if(n % i == 0) return false;
  }
  return true;
}

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);
  return 0;
}



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

#include <bits/stdc++.h>
#define rep(i, a, n) for (int i = (a); i < (n); ++i)
#define all(x) x.begin(), x.end()
#define VI vector<int>
#define VS vector<string>
#define ll long long
#define INF 2e9
#define fir first
#define sec second
using namespace std;

void Main() {
    double w, h, x, y;
    cin >> w >> h >> x >> y;
    double x_max = 0, y_max = 0;
    if (x == 0 && y == 0) {
        cout << (w * h) / 2 << endl;
        return;
    }
    if (x <= w - x) {
        x_max = (w - x) * h;
    } else {
        x_max = x * h;
    }
    if (y <= h - y) {
        y_max = (h - y) * w;
    } else {
        y_max = y * w;
    }
    if (x_max == y_max) {
        cout << x_max << " " << 1 << endl;
    } else if (x_max > y_max) {
        cout << y_max << " " << 0 << endl;
    } else {
        cout << x_max << " " << 0 << endl;
    }
}

int main() {
    cin.tie(0);
    ios_base::sync_with_stdio(false);
    cout << fixed << setprecision(15) << endl;
    Main();
    return 0;


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

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

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

#include<iostream>
#include <cstdio>
#include<cmath>
using namespace std;
int X[100005];
int Y[100005];
int N,B,C,m,n,a,b,c,x,y,z,i,j,k,h;
long long double A;
int main ()
{
	cin>>a>>b;
	A=1.0*(double(abs(a*b))/2.0);
	cin>>x>>y;
	cout<<A<<" ";
	if((2*x==a)&&(2*y==b))
	cout<<1;
	else
	cout<<0;
	return 0;
}

Compiler output:
a.cc:8:6: error: 'long long' specified with 'double'
    8 | long long double A;
      |      ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ';' before 'cout'
    6 |         cin>>w>>h>>x>>y
      |                        ^
      |                        ;
    7 |         cout<<(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;
	printf("%.6lf",w*h/2.0);
	if(x==h/2.0&&y=w/2.0)
	{
		cout<<" "<<1;
	}
	else cout<<" "<<0;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: lvalue required as left operand of assignment
    8 |         if(x==h/2.0&&y=w/2.0)
      |            ~~~~~~~~^~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <cmath>
#include <numeric>
#include <queue>
#include <sstream>
#include <unordered_map>
#include <cstring>
#include <iomaing>

using namespace std;

typedef long long ll;

const ll INF=1e9+7;

template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}

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

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

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

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <cmath>
#include <numeric>
#include <queue>
#include <sstream>
#include <unordered_map>
#include <cstring>

using namespace std;

typedef long long ll;

const ll INF=1e9+7;

template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:29:21: error: 'b' was not declared in this scope
   29 |     if(2*x==W&&2*H==b) check=1;
      |                     ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <cmath>
#include <numeric>
#include <queue>
#include <sstream>
#include <unordered_map>
#include <cstring>

using namespace std;

typedef long long ll;

const ll INF=1e9+7;

template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:29:21: error: 'b' was not declared in this scope
   29 |     if(2*x==W&&2*H==b) check=1;
      |                     ^
a.cc:30:11: error: expected primary-expression before 'double'
   30 |     cout<<double<<endl<<check<<endl;
      |           ^~~~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <cmath>
#include <numeric>
#include <queue>
#include <sstream>
#include <unordered_map>
#include <cstring>

using namespace std;

typedef long long ll;

const ll INF=1e9+7;

template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}

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

int main(){
    int W,H,x,y;
    double area=double(W*H)/2;
    int check=0;
    if(2*x==a&&2*y==b) check=1;
    cout<<double<<endl<<check<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:13: error: 'a' was not declared in this scope
   29 |     if(2*x==a&&2*y==b) check=1;
      |             ^
a.cc:29:21: error: 'b' was not declared in this scope
   29 |     if(2*x==a&&2*y==b) check=1;
      |                     ^
a.cc:30:11: error: expected primary-expression before 'double'
   30 |     cout<<double<<endl<<check<<endl;
      |           ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'long long' specified with 'double'
    6 |   long long double ans=h*w/2.0;
      |        ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using Int = long long int;
template<typename T> void swap(T *t1, T *t2){ T* tmp=t1; t1=t2; t2=tmp;}
Int tmpi = 0;
double tmpd = 0.0;


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

    double w, h, x, y;
    cin >> w >> h >> x >> y;

    int ans = x==w/2 && y==h/2;
    println("%.10lf %d", w*h/2,ans);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'println' was not declared in this scope; did you mean 'rintl'?
   17 |     println("%.10lf %d", w*h/2,ans);
      |     ^~~~~~~
      |     rintl
Language: C++

#include <bits/stdc++.h>
using namespace std;
using Int = long long int;
template<typename T> void swap(T *t1, T *t2){ T* tmp=t1; t1=t2; t2=tmp;}
Int tmpi = 0;
double tmpd = 0.0;


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

    double w, h, x, y;
    cin >> w >> h >> x >> y;

    println("%.10lf %d", w*h/2, x==w/2 && y==h/2);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'println' was not declared in this scope; did you mean 'rintl'?
   16 |     println("%.10lf %d", w*h/2, x==w/2 && y==h/2);
      |     ^~~~~~~
      |     rintl
Language: C++

#include <stdio.h>  /*入出力*/
#include <stdlib.h> /*標準ライブラリ*/
#include <string.h> /*文字列*/
#include <math.h>   /*計算*/

// tey and error の繰り返し
int main(void)
{
  int W, H;
  int x, y;
  long square = 0;

  scanf("%d%d%d%d", &W, &H, &x, &y);

  square = W * H;

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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:37: error: expected ')' before ';' token
   17 |   printf("%lf ", (double) (square/2);
      |         ~                           ^
      |                                     )
Language: C++

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

int main () {
  int64_t W, H, x, y, f=0;
  double ans;
  cin >> W >> H >> x >> y;
  ans = W*H/2;
  if(x ==W/2 && y == H/2)
    f = 1;
  cout << fixed << setprecision(10)
  cout << ans <<" "<< f;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:36: error: expected ';' before 'cout'
   12 |   cout << fixed << setprecision(10)
      |                                    ^
      |                                    ;
   13 |   cout << ans <<" "<< f;
      |   ~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before 'if'
    9 |   ans = W*H/2
      |              ^
      |              ;
   10 |   if(x ==W/2 && y == H/2)
      |   ~~
Language: C++

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

int main () {
  int W, H, x, y, f=0;
  double ans;
  cin >> W >> H >> x >> y;
  ans = w*h/2
  if(x ==w/2 && y == H/2)
    f = 1;
  cout << ans <<" "<< f;
}

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

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

int main() {
    long long W, H, x, y;
    cin >> W >> H >> x >> y;
    
    double S = W * H / 2.0;
    
    cout << S << ' '
         << ((x * 2 == W) && (y * 2 == H))  ? 1 : 0) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:52: error: expected ';' before ')' token
   11 |          << ((x * 2 == W) && (y * 2 == H))  ? 1 : 0) << endl;
      |                                                    ^
      |                                                    ;
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <functional>
#include <cstring>
#include <cmath>

using namespace std;
#define inputInt(a) int a;cin >> a; 
#define inputLong(a) long a;cin >> a; 
#define inputIntArray(a,N) int a[N];for(int i=0;i<N;i++){cin >> a[i];}
#define output(answer) cout << answer << endl;
#define f(i,s,e) for(int i=s; i<=e; i++)

int main()
{
    //input
    inputInt(W);inputInt(H);inputInt(x);inputInt(y);
  
    //main
    long ans = W*H/2;

    // 出力
    output(ans);
    string ans2 = (x == W/2 && y == H/2) ? '1':'0';
    output(ans2);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:42: error: conversion from 'char' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   27 |     string ans2 = (x == W/2 && y == H/2) ? '1':'0';
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
Language: C++

#include<bits/stdc++.h>
#include<algorithm>
using namespace std;
int main()
{
    int a,b,x,y,i=0;
    cin>>a>>b>>x>>y;
    int p1,p2,q1,q2;
    double p=0.0,q=0.0;

    p1=a*y;p2=a*(b-y);q1=x*b;q2=(a-x)*b;

    if((min(p1, p2) == min(q1, q2)) && (max(p1, p2) == max(q1, q2)) i=1;

    p=min(p1,p2);
    q=min(q1,q2);


    double area=max(p,q);
    printf("%lf %d\n",area,i);

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:68: error: expected ';' before 'i'
   13 |     if((min(p1, p2) == min(q1, q2)) && (max(p1, p2) == max(q1, q2)) i=1;
      |                                                                    ^~
      |                                                                    ;
a.cc:15:17: error: expected ')' before ';' token
   15 |     p=min(p1,p2);
      |                 ^
      |                 )
a.cc:13:7: note: to match this '('
   13 |     if((min(p1, p2) == min(q1, q2)) && (max(p1, p2) == max(q1, q2)) i=1;
      |       ^
Language: C

#include<stdio.h>
#define MAX(a,b) a>b?a:b
int main()
{
    int a,b,c,d,max1,max2;
    scanf("%d%d%d%d",&a,&b,&c,&d);
    max1=MAX(a,b);
    max2=MAX(c,d);
    double area=(double)(a*b)/(max1*max2);
    printf("%lf",area);
    if(a==b)
        printf(" 1");
    eflse
       printf(" 0");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:5: error: unknown type name 'eflse'
   13 |     eflse
      |     ^~~~~
main.c:14:15: error: expected declaration specifiers or '...' before string constant
   14 |        printf(" 0");
      |               ^~~~
Language: C++

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

if abs(W/2 - x) <= 10**(-5) and abs(H/2 -y) <= 10**(-5):
    print(W * H / 2, 1)
else:
    print(W * H / 2, 0)

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() {
  int64_t w,h,x,y;
  cin >> w >> h >> x >> y;
  int64_t s1 = (h - y) * w;
  int64_t s2 = (w - x) * h;
  int64_t s3 = y * w;
  int64_t s4 = x * h;
  cout << min(s1,s2,s3,s4) << " ";
  if(s1 == s2 || s1 == s3 || s1 == s4 || s2 == s3 || s2 == s4 || s3 == s4) {
    cout << 1 << endl;
  }else {
    cout << 0 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: no matching function for call to 'min(int64_t&, int64_t&, int64_t&, int64_t&)'
   10 |   cout << min(s1,s2,s3,s4) << " ";
      |           ~~~^~~~~~~~~~~~~
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, 4 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, 4 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:   candidate expects 1 argument, 4 provided
/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, 4 provided
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i=0; i<(int)(n); i++)
#define intt int64_t
#define all(vec) vec.begin(), vec.end()
#define MOD 1000000007

int main() {
    int n, m, x, y;
    scanf("%d %d %d %d", &n, &m, &x, &y);
    double s=(double)n*m/2
    printf("%.10lf %d\n", s, (2*x==n&&2*y==m ? 1 : 0));
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected ',' or ';' before 'printf'
   12 |     printf("%.10lf %d\n", s, (2*x==n&&2*y==m ? 1 : 0));
      |     ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i=0; i<(int)(n); i++)
#define intt int64_t
#define all(vec) vec.begin(), vec.end()
#define MOD 1000000007

int main() {
    int n, m, x, y;
    scanf("%d %d %d %d", &n, &m, &x, &y);
    double s=(double)a*b/2
    printf("%.10lf %d\n", s, (2*x==n&&2*y==m ? 1 : 0));
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'a' was not declared in this scope
   11 |     double s=(double)a*b/2
      |                      ^
a.cc:11:24: error: 'b' was not declared in this scope
   11 |     double s=(double)a*b/2
      |                        ^
Language: C++

#include<bits.stdc++.h>
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("%.10%d\n", ans, num);
  return 0;
}

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

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

int main() {
  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("%.10%d\n", ans, num);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected initializer before '==' token
    8 |   int num == (w==x*2 && h==y*2) ? 1 : 0;
      |           ^~
a.cc:9:27: error: 'num' was not declared in this scope; did you mean 'enum'?
    9 |   printf("%.10%d\n", ans, num);
      |                           ^~~
      |                           enum
Language: C++

#include<bits.stdc++.h>
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("%.10%d\n", ans, num);
  return 0;
}

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

#include <iostream>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <stdio>

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

  double all = (double)(W * H);
  double area = 0.0;
  char dup = '0';
  if ((x == 0 && y == 0) ||
    (x == 0 && y == H) ||
    (x == W && y == 0) ||
    (x == W && y == H)) {
    area = all * 0.5;
  }
  else if (x == 0 || x == W) {
    double a = (double)(y * W);
    double b = all - a;
    area = std::min(a, b);
  }
  else if (y == 0 || y == H) {
    double a = (double)(x * H);
    double b = all - a;
    area = std::min(a, b);
  }
  else {
    double a = (double)(y * W);
    double b = all - a;
    double ab = std::min(a, b);

    double c = (double)(x * H);
    double d = all - c;
    double cd = std::min(c, d);

    area = std::max(ab, cd);

    if (std::fabs(ab - cd) < 0.000001) dup = '1';
  }

  //std::cout << std::setprecision(9) << area << " " << dup << std::endl;
  printf("%.9f %c\n", area, dup);

  return 0;
}

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

#include <iostream>
#include <algorithm>
int main()
{
    long long W, H, x, y;
    std::cin >> W >> H >> x >> y;

    double area = 0.0;
    char dup = '0';
    if ((x == 0 && y == 0) ||
        (x == 0 && y == H) ||
        (x == W && y == 0) ||
        (x == W && y == H) ){
        area = (double)(W * H) * 0.5;
    }
    else if (x == 0 || x == W) {
        double a = (double)(y * W);
        double b = (double)(W * H) - a;
        area = std::min(a, b);
    }
    else if (y == 0 || y == H) {
        double a = (double)(x * H);
        double b = (double)(W * H) - a;
        area = std::min(a, b);
    }
    else {
        double a = (double)(y * W);
        double b = (double)(W * H) - a;
        double ab = std::min(a, b);

        double c = (double)(x * H);
        double d = (double)(W * H) - c;
        double cd = std::min(c, d);

        area = std::min(ab, cd);

        if (std::fabs(ab - cd) < 0.0000000001) dup = '1';
    }

    std::cout << area << " " << dup << std::endl;    

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:18: error: 'fabs' is not a member of 'std'; did you mean 'labs'?
   37 |         if (std::fabs(ab - cd) < 0.0000000001) dup = '1';
      |                  ^~~~
      |                  labs
Language: C++

#include <iostream>
#include <algorithm>
int main()
{
    long long W, H, x, y;
    std::cin >> W >> H >> x >> y;

    double area = 0.0;
    char dup = '0';
    if ((x == 0 && y == 0) ||
        (x == 0 && y == H) ||
        (x == W && y == 0) ||
        (x == W && y == H) ){
        area = (double)(W * H) * 0.5;
    }
    else if (x == 0 || x == W) {
        double a = (double)(y * W);
        double b = (double)(W * H) - a;
        area = std::min(a, b);
    }
    else if (y == 0 || y == H) {
        double a = (double)(x * H);
        double b = (double)(W * H) - a;
        area = std::min(a, b);
    }
    else {
        double a = (double)(y * W);
        double b = (double)(W * H) - a;
        double ab = std::min(a, b);

        double c = (double)(x * H);
        double d = (double)(W * H) - c;
        double cd = std::min(c, d);

        area = std::min(ab, cd);

        if (fabs(ab - cd) < 0.0000000001) dup = '1';
    }

    std::cout << area << " " << dup << std::endl;    

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:13: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   37 |         if (fabs(ab - cd) < 0.0000000001) dup = '1';
      |             ^~~~
      |             labs
Language: C++

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

int main() {
  ll w,h,x,y,ans,c=0;
  cin >> w >> h >> x >> y;
  
  if(x<w/2) ans=x*h;
  else if(x>w/2) ans=(w-x)*h;
  else{
  	ans=x*h;
  	c=1;
  }
  
  if(y<h/2){
  	ans=max(y*w,ans);
  	c=0
  }
  else if(y>h/2) {
  	ans=max((h-y)*w,ans);
  	c=0;
  }
  else{
  	if(c!=1) c=0;
    ans=max(y*w,ans);
  }
  cout << ans << " " << c << endl; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: expected ';' before '}' token
   18 |         c=0
      |            ^
      |            ;
   19 |   }
      |   ~
Language: C++

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

        int main() {         
	
			double W, H, x, y;
			cin >> W, H, x, y;
            double S; 
            S = (double) W * (double) H
            cout << (S/2) endl; 
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:40: error: expected ';' before 'cout'
    9 |             S = (double) W * (double) H
      |                                        ^
      |                                        ;
   10 |             cout << (S/2) endl;
      |             ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod=1e9+7;
const ll INF=mod*mod;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define all(x) (x).begin(),(x).end()
ll min(ll a,ll b){
  if(a>b){
    return b;
    }
      else{
        return a;
      }
  }
  
  ll max(ll a,ll b){
    if(a>b){
      return a;
    }
    else{
      return b;
    }
  }

ll power(ll a,ll b){
 ll ans=1;
 for(ll i=1;i<=b;i++){
ans*=a;
  }
  return ans;
}

 ll gcd(ll m,ll n){
 	if(n==0){
       return m;
     }
   return gcd(n,m%n);
 }
ll lcm(ll a,ll b){
  ll g=gcd(a,b);
  return a/gcd(a,b)*b;
		

}
ll mpow(ll x, ll n){// powerとmod
    ll ans = 1;
    while(n != 0){
        if(n&1) ans = ans*x%mod;
        x = x*x%mod;
        n = n>>1;
    }
    return ans;
}
int main(){
  //nCrにmodをかけるやり方
  ll N,K;
  cin>>N>>K;
  vector<ll>a(K-1+1),comb_a(K-1+1),b(N-K+1+1),comb_b(N-K+1+1);
  comb_a[0]=1;
  comb_b[0]=1;
  
  for(ll j=1;j<=K-1;j++){
    a[j]=mpow(j,mod-2);//(n!)^(-1)=(n!)^(p-2)mod(1e9);
    comb_a[j]=(comb_a[j-1]*(K-1-j+1)%mod)*a[j]%mod;//K-1Ci-1
  }
  
   for(ll j=1;j<=N-K+1;j++){
    b[j]=mpow(j,mod-2);//(n!)^(-1)=(n!)^(p-2)mod(1e9); 
    comb_b[j]=(comb_b[j-1]*(N-K+1-j+1)%mod)*b[j]%mod;//N-K+1Ci
  }
  
  for(ll i=1;i<=K;i++){
ll ans=comb_a[i-1];
    if(i<=N-K+1){
ans*=comb_b[i];
      ans%=mod;
    }
else{
ans=0;
}
    cout<<ans<<endl;
  }
　
}


Compiler output:
a.cc:84:1: error: extended character 　 is not valid in an identifier
   84 | 　
      | ^
a.cc: In function 'int main()':
a.cc:84:1: error: '\U00003000' was not declared in this scope
   84 | 　
      | ^~
Language: C++

w, h, x, y = [float(x) for x in input().split(' ')]
print('{:.10f}'.format(max(min(x*h, (w-x)*h), min(w*y, w*(h-y)))), 1 if (2*x==w and 2*y==h) else 0)

Compiler output:
a.cc:2:7: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
    2 | print('{:.10f}'.format(max(min(x*h, (w-x)*h), min(w*y, w*(h-y)))), 1 if (2*x==w and 2*y==h) else 0)
      |       ^~~~~~~~~
a.cc:1:1: error: 'w' does not name a type
    1 | w, h, x, y = [float(x) for x in input().split(' ')]
      | ^
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();
      
      	System.out.println((double)w*h/2.0, 
                           w==2*x && h==2*y ? 1: 0);
    }
}

Compiler output:
Main.java:11: error: no suitable method found for println(double,int)
      	System.out.println((double)w*h/2.0, 
      	          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define sf(n) scanf("%d", &n)
#define pd(n) printf("%.12lf", n)
#define pf(n) printf("%d", n)
#define p() printf("\n")
#define ps() printf(" ")
#define ll long long
#define ull unsigned long long
#define MAX 1e9
#define mod 1000 * 1000 * 1000 + 7
#define ex 1e18
#define dbl 2e09
#define qu(q) queue<int> q
#define pqu(q) priority_queue<int> q
#define len(s) s.length()
#define sz(x) int(x.size())
#define pb(x) push_back(x)
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define F first
#define S second
#define clr(x) x.clear()
#define LOG(x) std::cout << x << std::endl;

const int INF = 0x3f3f3f3f;
const ll LL_INF = 0x3f3f3f3f3f3f3f3f;
const double PI = acos(-1);

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

int a[100005], b[100005];

int main()
{
    int w, h, x, y;
    cin >> w >> h >> x >> y;
    cout << setprecisio(9) << double(w * h) / 2;
    cout << " ";
    if (w / 2 == x and h / 2 == y)
        cout << 1 << endl;
    else
        cout << 0 << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:13: error: 'setprecisio' was not declared in this scope
   39 |     cout << setprecisio(9) << double(w * h) / 2;
      |             ^~~~~~~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <numeric>
#include <vector>
#include <list>
#include <queue>
#include <string>
#include <map>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: lvalue required as left operand of assignment
   16 |     if (x * 2 == W &&y * 2 = H)
      |         ~~~~~~~~~~~^~~~~~~
Language: C++

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

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

#include <iostream>
#include <vector>
#include <utility>
#include <map>
#include <algorithm>
#include <queue>
#include <cmath>

using namespace std;

int main() {
  int W, H, x, y;
  cin >> W >> H >> x >> y;
  printf("%.9f %d\n", w * h / 2.0, w * h / (x * y) == 4.0);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: 'w' was not declared in this scope
   14 |   printf("%.9f %d\n", w * h / 2.0, w * h / (x * y) == 4.0);
      |                       ^
a.cc:14:27: error: 'h' was not declared in this scope
   14 |   printf("%.9f %d\n", w * h / 2.0, w * h / (x * y) == 4.0);
      |                           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'doubel' was not declared in this scope; did you mean 'double'?
   10 |   if(doubel(W)/2==x && doubel(H)/2==y) cout << 1 << endl;
      |      ^~~~~~
      |      double
Language: C++

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

int main(){
  int W, H, x, y;
  cin >> W >> H >> x >> y;
  double area1, area2;
  if(x<W-x){
    area1 = (double)x*H;
  }else{
    area1 = (double)(W-x)*H;
  }
  if(y<H-y){
    area2 = (double)y*W;
  }else{
    area2 = (double)(H-y)*W;
  }
  if(area1>area2){
    cout << fixed << setprecision(9) << area1 << " 0" << endl;
  }else if(area1<area2){
    cout << fixed << setprecision(9) <<area2 << " 0" << endl;
  }else{
    cout << fixed << setprecision(9) <<area1 << " 1" << endl;
  }
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:25:12: error: expected '}' at end of input
   25 |   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;
float H;
float x;
 y;
cin >>W>>H>>x>>y;
  cout<<(W*H)/2.0<<" ";
  if(W==x*2 && H==y*2){
    cout<<1<<endl;
  }
 else{
cout <<0<<endl;
 }  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: 'y' was not declared in this scope
    7 |  y;
      |  ^
Language: C++

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

int main(){
  double W,H,x,y;
  cin>>W;
  cin>>H;
  cin>>x;
  cin>>y;
  int kotae=0;
  if(x!=0 && x!=W y
  if(H*x==W*y && H*x+W*y==H*W){
     kotae++;
  }
  cout << fixed << setprecision(6);
  cout<<W*H/2<<" "<<kotae<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before 'y'
   11 |   if(x!=0 && x!=W y
      |                  ^~
      |                  ;
a.cc:15:35: error: expected ')' before ';' token
   15 |   cout << fixed << setprecision(6);
      |                                   ^
      |                                   )
a.cc:11:5: note: to match this '('
   11 |   if(x!=0 && x!=W y
      |     ^
Language: C

#include <stdio.h>

int main(void){
  long int W, H, X, Y;
  scanf("%ld %ld %ld %ld", &W, &H, &X, &Y);
  printf("%lf %d\n", double(W)*double(H)/2, 2*X==W && 2*Y==H);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:22: error: expected expression before 'double'
    6 |   printf("%lf %d\n", double(W)*double(H)/2, 2*X==W && 2*Y==H);
      |                      ^~~~~~
Language: C++

include <stdio.h>

int main(void){
  long int W, H, X, Y;
  scanf("%ld %ld %ld %ld", &W, &H, &X, &Y);
  printf("%lf %d\n", double(W)*double(H)/2, 2*X==W && 2*Y==H);
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C

include <stdio.h>

int main(void){
  long int W, H, X, Y;
  scanf("%ld %ld %ld %ld", &W, &H, &X, &Y);
  printf("%lf %d\n", double(W)*double(H)/2, 2*X==W && 2*Y==H);
  return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#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 fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int main(){
  double w,h,x,y;
  cin>>w>>h>>x>>y;
  double z=min(x*h,(w-x)*h);
  double a=min(y*w,(h-y)*w);
  bool f=false;
  if(z==a)f=true;
  double ans=max(z,a);
  cout<<(w*h)/2<<" ";
  if(f)cout<<1<<endl;
  else cout<<0<<endl;
}
e

Compiler output:
a.cc:25:1: error: 'e' does not name a type
   25 | e
      | ^
Language: Java

import java.util.*;

class Main {
	  static int mod=1_000_000_007;
  public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
      long cnt =0;
      double wk =0;
      double S =0;
      int flg=0;
      double W = sc.nextLong();
      double H = sc.nextLong();
      double x = sc.nextLong();
      double y = sc.nextLong();
      
      
      if(W<H) {
    	  if(x<W/2) {
    		  wk = x;
    	  } else {
        	  wk = W - x;    		  
    	  }
    	  S=H*wk;
          if(H/2==y) {
        	  flg = 1;
          }
      } else {
    	  if(y<H/2) {
        	  wk = y;    		  
    	  } else {
    		  wk = H-y;
    	  }
    	  S=W*wk;    	  
          if(W/2==x) {
        	  flg = 1;
          }
      }
      if(W==H) {
    	  flg=1;
      }
      
	  System.out.println(S + " " + flg);
  }
  

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

#include <bits/stdc++.h>
using namespace std;
 
int main(){
int w,h,x,y;
cin >> w >> h >> x >> y;
double mx = ((h*(w-x)) < (h*x)) ? h*(w-x) : h*x;
double mx = ((w*(h-y)) < (w*y)) ? w*(h-y) : w*y;
double di = (my < mx) ? mx : my;
if(mx == my) printf("%lf 1\n",di);
else printf("%lf 0\n",di);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: redeclaration of 'double mx'
    8 | double mx = ((w*(h-y)) < (w*y)) ? w*(h-y) : w*y;
      |        ^~
a.cc:7:8: note: 'double mx' previously declared here
    7 | double mx = ((h*(w-x)) < (h*x)) ? h*(w-x) : h*x;
      |        ^~
a.cc:9:14: error: 'my' was not declared in this scope; did you mean 'mx'?
    9 | double di = (my < mx) ? mx : my;
      |              ^~
      |              mx
Language: C++

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

Compiler output:
a.cc:2:5: error: 'cin' does not name a type
    2 |     cin >> w >> h >> x >> y;
      |     ^~~
a.cc:4:5: error: expected unqualified-id before 'if'
    4 |     if(x == w/2 && y == h/2){
      |     ^~
a.cc:6:6: error: expected unqualified-id before 'else'
    6 |     }else{
      |      ^~~~
a.cc:10:5: error: 'cout' does not name a type
   10 |     cout << a << " " << ans << endl;
      |     ^~~~