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

int main(){

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

	int x, y ; cin >> x >> y ;

	cout << setprecision(9) << fixed ;

	cout << 1.0 * w * h / 2 << " " << ((x == w / 2) && (y == (h / 2))) << endl ;

	return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:20: error: 'cin' was not declared in this scope
    3 |         int w, h ; cin >> w >> h ;
      |                    ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << setprecision(9) << fixed ;
      |         ^~~~
a.cc:7:17: error: 'setprecision' was not declared in this scope
    7 |         cout << setprecision(9) << fixed ;
      |                 ^~~~~~~~~~~~
a.cc:7:36: error: 'fixed' was not declared in this scope
    7 |         cout << setprecision(9) << fixed ;
      |                                    ^~~~~
a.cc:9:79: error: 'endl' was not declared in this scope
    9 |         cout << 1.0 * w * h / 2 << " " << ((x == w / 2) && (y == (h / 2))) << endl ;
      |                                                                               ^~~~
Language: Java

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();
		sc.close();
		if(W%2 == 0 && H%2 == 0 && x == W/2 && y == H/2) {
			System.out.println((double)(W * H / 2) +" "+"1");
		}else {
			System.out.println((double)(W * H / 2) +" "+"0");
		}
	}
}

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

#include <bits/stdc++.h>
#define mem(dp,a) memset(dp,a,sizeof(dp))
#define pb(x) push_back(x)
#define m_p(x,y) make_pair(x,y)
#define rep(i,a,b) for(ll i=a;i<b;i++)
#define repush_back(i,a,b) for(ll i=a;i>=b;i--)
#define f(n) for(ll i=0;i<n;i++)
#define r(n) for(ll j=0;j<n;j++)
#define F first
#define S second
#define pi 3.14159265359
#define hs ios_base::sync_with_stdio(false);cin.tie(NULL);
using namespace std;
typedef long long int ll;
ll HRX=1e18;
ll INF=1e9+7;


int main()
{


 ll X,Y,x,y;
 cin>>X>>Y>>x>>y;
 float area1=(x*Y)/1.0;
 float area2=((X-x)*Y)/1.0;
 float area3=(y*X)/1.0;
 float area4=((Y-y)*Y)/1.0;
 float minn1=min(area1,area2);
 float minn2=min(area3,area4);
 float maxx=max(minn1,minn2);
  cout<<fixed<<setprecision(9)<<maxx<<" ";
 if(X%2==0 && Y%2==0 && X/2==x && Y/2=y)
   cout<<"1"<<endl;
 else
   cout<<"0"<<endl;

 return 0;
}


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

fn get_input() -> String {
    let mut word = String::new();
    std::io::stdin().read_line(&mut word).unwrap();
    word.trim().to_owned()
}

fn main() {
    let line = get_input();
    let mut split = line.split_whitespace();
    let w:f64 = split.next().unwrap().parse().unwrap();
    let h:f64 = split.next().unwrap().parse().unwrap();
    let x:f64 = split.next().unwrap().parse().unwrap();
    let y:f64 = split.next().unwrap().parse().unwrap();

    println!("{:.10} {}", w * h / 2.0, if x + x == w && y + y == h { 1 } else { 0 });
}

Compiler output:
a.cc:1:1: error: 'fn' does not name a type
    1 | fn get_input() -> String {
      | ^~
a.cc:7:1: error: 'fn' does not name a type
    7 | fn main() {
      | ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:13: error: lvalue required as left operand of assignment
    9 | if(w==x*2&&h=y*2)
      |             ^
Language: Java

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

public class  zz{
    public static void main(String[] args) throws Exception{
        //MScanner sc = new MScanner("chess.in");
        MScanner sc = new MScanner(System.in);
        PrintWriter pw=new PrintWriter(System.out);
        //int n=sc.nextInt();int[]in=new int[n];
        //for(int i=0;i<n;i++)in[i]=sc.nextInt();
        int w=sc.nextInt();
        int h=sc.nextInt();
        int x=sc.nextInt();
        int y=sc.nextInt();
        int ans1=Math.min(x*h,(w-x)*h);
        int ans2=Math.min(y*w,(h-y)*w);
        if(ans1==ans2) {
        	pw.println(ans1+" "+1);
        }
        else
        	pw.println(Math.max(ans2,ans1)+" "+0);
        pw.flush();
    }
    static class MScanner {
		StringTokenizer st;
		BufferedReader br;
 
		public MScanner(InputStream system) {
			br = new BufferedReader(new InputStreamReader(system));
		}
 
		public MScanner(String file) throws Exception {
			br = new BufferedReader(new FileReader(file));
		}
 
		public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}
 
		public String nextLine() throws IOException {
			return br.readLine();
		}
 
		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}
 
		public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}
 
		public char nextChar() throws IOException {
			return next().charAt(0);
		}
 
		public Long nextLong() throws IOException {
			return Long.parseLong(next());
		}
 
		public boolean ready() throws IOException {
			return br.ready();
		}
 
		public void waitForInput() throws InterruptedException {
			Thread.sleep(3000);
		}
	}
}

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

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
typedef unsigned long long ulong;
#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)

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


Compiler output:
a.cc:6:28: error: conflicting declaration 'typedef long long unsigned int ulong'
    6 | typedef unsigned long long ulong;
      |                            ^~~~~
In file included from /usr/include/stdlib.h:514,
                 from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/sys/types.h:148:27: note: previous declaration as 'typedef long unsigned int ulong'
  148 | typedef unsigned long int ulong;
      |                           ^~~~~
Language: C++

#define _GLIBCXX_DEBUG
#include<cmath>
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
vector<int> arr;
stack<int> st;
queue<int> qu;
queue<pair<int,int> > qu2;
priority_queue<int> pq;
#define rep(i,n) for(int i=0; i<(int)(n); i++)
#define rep2(i,n) for(int i=1; i<=(int)(n); i++)
typedef set<int> set_t;
typedef set<string> set_g;
typedef complex<double> xy_t;
static const int NIL = -1;

int P[10010];
void init(int n){
    for(int i=0;i<n;++i)P[i]=i;
}
int root(int a) {
    if(P[a]==a)return a;
    return (P[a]=root(P[a]));
}
bool is_same_set(int a,int b){
    return root(a) == root(b);//代表元を求める
}
void unite(int a,int b){
    P[root(a)]=root(b);
}//対set,グラフ？

double dot_product(xy_t a, xy_t b) { return (conj(a)*b).real(); }//内積
double cross_product(xy_t a, xy_t b) { return (conj(a)*b).imag(); }//外積
xy_t projection(xy_t p, xy_t b) { return b*dot_product(p,b)/norm(b); }//投影
//対図形

#define mod 1000000007
ll f[2001];
//int n,k とかしておく

ll pw(ll x, ll y){//euclidの互除法より
    ll a= 1;
    while(y){
        if(y&1){//奇数なら
            a = a*x%mod;
        }
        x = x*x%mod;
        y /= 2;
    }
    return a;
}

ll modinv(ll x){//逆元を求める
    return pw(x, mod - 2 );
}

ll comb(int n,int r){
    if(n<r){
        return 0;
    }
    return f[n] * modinv(f[r])%mod*modinv(f[n-r])%mod;
}//対combination

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

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

#include <stdio.h>
#include <math.h>

int main(void){
  int w,h,x,y,b;
  scanf("%d%d%d%d", &w, &h, &x, &y);
  double a;
  a= double(w)*double(h)/2;
  if(x==w/2 && y==h/2){
    b=1;
    printf("%f%d",a,b);
  }else{
    b=0;
    printf("%f%d",a,b);
  }
}


Compiler output:
main.c: In function 'main':
main.c:8:6: error: expected expression before 'double'
    8 |   a= double(w)*double(h)/2;
      |      ^~~~~~
Language: C++

#include <bits/stdc++.h>

#define ull unsigned long long
#define ul unsigned long
#define ll long long
#define size_t long long
// sort(&a[0], &a[4], [](auto& x, auto& y){return x[0] < y[0];});
//accumulate(&arr2[n], &arr2[m-1], 0);
using namespace std;

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

  double W,H,x,y; std::cin >> W >> H >> x >> y;
  std::cout << W*H/2 << (x==W/2 && y==Y/2) << '\n';
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:39: error: 'Y' was not declared in this scope
   16 |   std::cout << W*H/2 << (x==W/2 && y==Y/2) << '\n';
      |                                       ^
Language: C

#include <stdio.h>

int main()
{
int width;
int height;
int x,y;
scanf("%d",&width)
scanf("%d",&height)
scanf("%d",&x)
scanf("%d",&y)
int count = 0;
double max = width* height/2;
if(x*2 == width && y*2 == height){
count +=1;
}
printf("%f %d \n",max,count);
}


Compiler output:
main.c: In function 'main':
main.c:8:19: error: expected ';' before 'scanf'
    8 | scanf("%d",&width)
      |                   ^
      |                   ;
    9 | scanf("%d",&height)
      | ~~~~~              
main.c:15:1: error: 'count' undeclared (first use in this function)
   15 | count +=1;
      | ^~~~~
main.c:15:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

	cin >> w >> h >> x >> y;
	
	cout << setprecision(99)<< w * h / 2.0 << " ";
	cout << ((x == w / 2 && y == h / 2) ? "1" : "0") << endl;
	return 0;
}
2 2 1 1

Compiler output:
a.cc:13:1: error: expected unqualified-id before numeric constant
   13 | 2 2 1 1
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(){

    long long W, H, x, y;
    cin >> W >> H >> x >> y;

    cout << W * H / 2 << ' ';
    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:17:14: error: expected '}' at end of input
   17 |     return 0;
      |              ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#define ll long long int
#define ull unsigned long long int
#define boost ios_base::sync_with_stdio(false);	cin.tie(0);	cout.tie(0)
#define vi vector<int>
#define P push_back
#define F first
#define S second
#define debug(x) cout<<x<<" "
#define pi vector<pair<int,int> >
#define FOR(i,x,n) for(int i=x;i<n;i++)
using namespace std;
int main(){
    boost;
    int w,x,h,y;
    cin>>w>>h>>x>>y;
    long double area=(long double)(w*h)/2;
    cout<<area<<" ";
    if((long double)x==(long double)w/2&&(long double)y==(long double)h/2)cout<<"1";
    else cout<<"0";
 
 
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:15: error: 'ios_base' has not been declared
    3 | #define boost ios_base::sync_with_stdio(false); cin.tie(0);     cout.tie(0)
      |               ^~~~~~~~
a.cc:13:5: note: in expansion of macro 'boost'
   13 |     boost;
      |     ^~~~~
a.cc:3:49: error: 'cin' was not declared in this scope
    3 | #define boost ios_base::sync_with_stdio(false); cin.tie(0);     cout.tie(0)
      |                                                 ^~~
a.cc:13:5: note: in expansion of macro 'boost'
   13 |     boost;
      |     ^~~~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define ll long long int
a.cc:3:65: error: 'cout' was not declared in this scope
    3 | #define boost ios_base::sync_with_stdio(false); cin.tie(0);     cout.tie(0)
      |                                                                 ^~~~
a.cc:13:5: note: in expansion of macro 'boost'
   13 |     boost;
      |     ^~~~~
a.cc:3:65: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #define boost ios_base::sync_with_stdio(false); cin.tie(0);     cout.tie(0)
      |                                                                 ^~~~
a.cc:13:5: note: in expansion of macro 'boost'
   13 |     boost;
      |     ^~~~~
Language: C++

#include <vector>
#include <algorithm>
#include <string>
using namespace std;
typedef long long ll;
int main(int argc, char const *argv[])
{
    int w,h,x,y;cin>>w>>h>>x>>y;
    cout << ll(w)*ll(h)/2.0l << " ";
    if(2*x==w && 2*y==h)cout << "1" << endl;
    else cout << "0" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:8:17: error: 'cin' was not declared in this scope
    8 |     int w,h,x,y;cin>>w>>h>>x>>y;
      |                 ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <string>
  +++ |+#include <iostream>
    4 | using namespace std;
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << ll(w)*ll(h)/2.0l << " ";
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:40: error: 'endl' was not declared in this scope
   10 |     if(2*x==w && 2*y==h)cout << "1" << endl;
      |                                        ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include <string>
  +++ |+#include <ostream>
    4 | using namespace std;
a.cc:11:25: error: 'endl' was not declared in this scope
   11 |     else cout << "0" << endl;
      |                         ^~~~
a.cc:11:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: lvalue required as left operand of assignment
    7 |     if(x = W/2 && y = H/2) ans =1;
      |            ~~~~^~~~
a.cc:7:28: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |     if(x = W/2 && y = H/2) ans =1;
      |                            ^~~
      |                            abs
a.cc:8:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   else ans = 0;
      |        ^~~
      |        abs
a.cc:9:23: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   cout << W*H/2<<" "<<ans<<endl;
      |                       ^~~
      |                       abs
Language: C++

#include<bits/stdc++.h>
    using namespace std;
    #define PAIN___ ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
    #define ll long long int
    #define fi first
    #define se second
    #define pb push_back
    #define pii pair < int , int >
    #define mp make_pair
    #define vec vector < ll >
    #define vecp vector < pii  >
    #define forl(i,q1,n,q2) for(ll i=q1;i<q2;i++)
    #define null NULL
    #define mm 1000005


    int main()
    {
        PAIN___;
        ll t;
        t=1;
        while(t--)
        {
            ll w,h,x,y;
            cin>>w>>h>>x>>y;
            ll ans1=0,ans2=0,ans3=0,ans4=0,area=0;
            area=w*h;
            ans1=w*y;ans2=abs(h-y)*w;
            ans3=x*h;ans4=abs(x-h)*h;
           // cout<<ans1<<ans2<<ans3<<ans4<<endl;
           ll p=max(ans1,ans2);
            ll q=max(ans3,ans4);
            if(p>q)
           {
                cout<<min(ans1,ans2)<<" ";
                if(ans1==ans2)cout<<1<<endl;
                else cout<<0<<endl;
           // }
            else if(q>p){
                cout<<min(ans3,ans4)<<" ";
                if(ans3==ans4)cout<<1<<endl;
                else cout<<0<<endl;
            }
            if(p==q)
            {
                cout<<min(max(ans1,ans2),max(ans3,ans4));
                if(ans1==ans2||ans3==ans4)cout<<1<<endl;
                else cout<<0<<endl;


            }



    }
    }



Compiler output:
a.cc: In function 'int main()':
a.cc:39:13: error: expected '}' before 'else'
   39 |             else if(q>p){
      |             ^~~~
a.cc:34:12: note: to match this '{'
   34 |            {
      |            ^
Language: C++

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

typedef long long int lli;
typedef unsigned long long int ulli;
typedef pair<int,int> pii;
typedef priority_queue< int, vector< int >, greater< int > >  minHeap;

#define ones(x) __builtin_popcount(x)
#define onesl(x) __builtin_popcountl(x)
#define onesll(x) __builtin_popcountll(x)

#define pb push_back
#define eb emplace_back
#define mp make_pair
#define mt make_tuple
#define scn(n) scanf("%d",&n)
#define scnll(n) scanf("%lld",&n)
#define scn2(n,m) scanf("%d%d",&n,&m)
#define scn3(n,m,w) scanf("%d%d%d",&n,&m,&w)
#define scn2ll(n,m) scanf("%lld%lld",&n,&m)
#define atoz(v) v.begin(),v.end()
#define ratoz(v) v.rbegin(),v.rend()
#define Fill(a,v) memset(a,v,sizeof(a))
#define sz(v) v.size()
#define fi first
#define se second
#define inf 1e9
#define pi acos(-1.0)
#define sqr(x) x*x
#define max3(a,b,c) max(a,max(b,c))
#define min3(a,b,c) min(a,min(b,c))
#define ten(n) (int)1e##n
#define tenll(n) (lli)1e##n
#define mod 1000000007
#define FastIO ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);

int Set(int N,int pos)
{
    return N=N | (1<<pos);
}
int reset(int N,int pos)
{
    return N = N & ~(1<<pos);
}
bool check(int N,int pos)
{
    return (bool)(N & (1<<pos));
}


inline int addmod(int x ,int y){return (x%mod + y%mod)%mod;}
inline int submod(int x ,int y){return (x%mod - y%mod + mod)%mod;}
inline int mulmod(int x ,int y){return (x%mod *1LL* y%mod)%mod;}
inline int nextSubMask(int i , int mask) {return (i-1)&mask;} /// returns next smallest submask

void we_r_done(){cout<<"NO"; exit(0);}

void debug(bool ok , string mssg)
{
    if(ok)return;
    cout<<mssg;
    exit(0);
}

int main()
{
    ///freopen("output.txt","w",stdout);
    ///freopen("input.txt","r",stdin);

    ///FastIO;

    lli a,b,c,d;
    cin>>a>>b>>c>>d;//w,h,x,y

    double x,y ;
  	int ok = 0;
  	if(a%2 == 0 && b%2 == 0 && a/2 == c && b/2 == d) ok = 1;
  	x = a*b
  	cout<<x/2.0<<" "<<ok;

    return 0;

}

///sin and cos expect input in radians not degrees. so use , sin(degrees * pi / 180)
///using bs = bitset<MX>; // how many distinct number can be form?


Compiler output:
a.cc: In function 'int main()':
a.cc:79:16: error: expected ';' before 'cout'
   79 |         x = a*b
      |                ^
      |                ;
   80 |         cout<<x/2.0<<" "<<ok;
      |         ~~~~
Language: C++

#include <iostream>

using namespace std;

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

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

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <string>
#include <sstream>
#include <utility>
#include <iomanip>
#define ll long long int
#define rep(i,x,y) for(int i=x;i<y;i++)
#define rel(i,x,y) for(int i=x-1;i>=y;i--)
#define all(x) x.begin(),x.end()

using namespace std;

int main(){
	int W,H,x,y;
	cin >> W >> H >> x >> y;
	cout << setprecision(10) << (double)W*H/2.0 << " ";
	if((x == W/2.0 && y == H/2.0) || (!x && !y) || (!x && y == H) || (x == W && !y)i || (x == W && y == H)){
		cout << "1" << endl;
	}else{
		cout << "0" << endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:88: error: expected ')' before 'i'
   20 |         if((x == W/2.0 && y == H/2.0) || (!x && !y) || (!x && y == H) || (x == W && !y)i || (x == W && y == H)){
      |           ~                                                                            ^
      |                                                                                        )
Language: C++

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

int main(){
  double w,h,x,y;
  cin >>w >>h >>x >>y;
  double a=abs(w-2*x)*h;
  double b=abs(h-2*y)*w;
  double s=0;
  if(a<b){
    s=min(x,w-x)*h;
    cout << s << " " <<r <<endl;
  }
  else{
    s=min(y,h-y)*w;
    cout << s << " " <<r <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: 'r' was not declared in this scope
   12 |     cout << s << " " <<r <<endl;
      |                        ^
a.cc:16:24: error: 'r' was not declared in this scope
   16 |     cout << s << " " <<r <<endl;
      |                        ^
Language: C++

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

int main(){
  int W, H, x, y;
  cin >> W >> H >> x >> y;
  cout << fixed << setprecision(9) << W*H/2 << endl;
  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:8:20: error: 'setprecision' was not declared in this scope
    8 |   cout << fixed << setprecision(9) << W*H/2 << 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(){
  
  int W,H,x,y;
  //cin>>W>>H>>x>>y;
  cin>>W>>H>>x>>y;
  int oth = 0;
  if(x==W/2.0&&y==H/2.0)oth=1;
  cout<<(W*H/2.0)<<" "<<oth<<;
  /*
  if(H*y/W+x>W){
    x=W-x;
    y=H-y;
  }
  */
  
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: expected primary-expression before ';' token
   12 |   cout<<(W*H/2.0)<<" "<<oth<<;
      |                              ^
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("%.10f %d",ans,num);
	return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: invalid type argument of unary '*' (have 'int')
    8 |         int num (w==x*2 && h==y**2)?1:0;
      |                                 ^~
Language: C++

#include <iostream> #include <vector> #include <string> #include <algorithm> #include <cmath> #include <iomanip> using namespace std; int main() { 	long long W, H, x, y; 	cin >> W >> H >> x >> y; 	int can = 0; 	if (W == x * 2 && H == y * 2) 	{ 		can = 1; 	} 	else 	{ 		can = 0; 	} 	cout << setprecision(20) << W * H / 2.0 << " "; 	cout << can << endl; 	 	return 0; } 


Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> #include <vector> #include <string> #include <algorithm> #include <cmath> #include <iomanip> using namespace std; int main() {      long long W, H, x, y;   cin >> W >> H >> x >> y;        int can = 0;    if (W == x * 2 && H == y * 2)   {               can = 1;        }       else    {               can = 0;        }       cout << setprecision(20) << W * H / 2.0 << " ";         cout << can << endl;            return 0; }
      |                     ^
/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>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: unable to find string literal operator 'operator""ans' with 'const char [10]', 'long unsigned int' arguments
    8 |     printf("%.10f %d\n"ans,num);
      |            ^~~~~~~~~~~~~~~
Language: C++

#include <vector>
#include <algorithm>
#include <string>
#include <fstream>
#include <sstream>
#include <math.h>
#include <map>
using namespace std;

int main()
{
	long int W,H,x,y;
	long float ANS;
	cin >> W >> H >> x >> y;
	ANS=float(W*H)/2;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'long' specified with 'float'
   13 |         long float ANS;
      |         ^~~~
a.cc:14:9: error: 'cin' was not declared in this scope
   14 |         cin >> W >> H >> x >> y;
      |         ^~~
a.cc:8:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    7 | #include <map>
  +++ |+#include <iostream>
    8 | using namespace std;
a.cc:19:17: error: 'cout' was not declared in this scope
   19 |                 cout << ANS << " 1" << endl;
      |                 ^~~~
a.cc:19:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:17: error: 'cout' was not declared in this scope
   23 |                 cout << ANS << " 0" << endl;
      |                 ^~~~
a.cc:23:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include <iomanip>

using namespace std;

int main() {
    int w, h, x, y;

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

    int ans;
    if(x + x == w && y + y == h){
       ans = 1;
    }
    else{
        ans = 0;
    }
    
    cout << double(w) * double(b) / 2  << ' ' << ans << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:32: error: 'b' was not declared in this scope
   19 |     cout << double(w) * double(b) / 2  << ' ' << ans << endl;
      |                                ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int w, h, x, y;
  cin >> w >> h >> x >> y;

  float max;
  int answer = 0;
  
  max = 0.5 * w * h;
  if(x==Y && 2*x==w && 2*y==h){
    answer = 1;
  }
  
  cout << max << " " << answer << endl;
  return 0;
}

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

#include<iostream>
#include<string>
using namespace std;
int main(){
  int w, h, x, y;
  cin >> w >> h >> x >> y;

  float max;
  int answer = 0;
  
  max = 0.5 * w * h;
  if(x==y){answer = 1}
  
  cout << max << answer << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: expected ';' before '}' token
   12 |   if(x==y){answer = 1}
      |                      ^
      |                      ;
Language: C++

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

typedef long long ll;
#define PI 3.1415926535897932384626433
#define MOD 1000000007

int main(){
    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;
    }
    cout << endl;
    return 0;
}

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: lvalue required as left operand of assignment
    7 |   if(w/2==x && h/2=y){
      |      ~~~~~~~^~~~~~
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;cin>>w>>h;
  {cout << fixed << setprecision(20);
    
  double sq = w*h /2;
 cout<<sq;
 cout <<" ";
  }
  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:13:7: error: 'x' was not declared in this scope
   13 |   if (x==w/2 && y==h/2){
      |       ^
a.cc:13:17: error: 'y' was not declared in this scope
   13 |   if (x==w/2 && y==h/2){
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int W, H, x, y;
	cin >> W >> H >> x >> y;
	cout << W * 0.5 * H << " ";
	if (x == W  0.5 && y == H * 0.5) {
		cout << 1;
	}
	else cout << 0;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected ')' before numeric constant
    8 |         if (x == W  0.5 && y == H * 0.5) {
      |            ~      ^ ~~~
      |                   )
Language: C

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

void tansaku() {
	cout << "####" << endl;
	cout << cnt << endl;
	rep(i,n){
		rep(j,n) {
			cout << hyou[i][j];
		}
		cout << endl;
	}
	int cnt0 = 0;
	rep(i, n){
		int cnt2 = 0;
		int cnt1 = 0;
		rep(j, n) {
			if (i == j) continue;
			if (hyou[i][j] == 2) cnt2 ++;
			if (hyou[i][j] == 1) cnt1 ++;
			if (hyou[i][j] == 0) cnt0 ++;
		}
		rep(j, n) {
			if (i == j) continue;
			if (hyou[i][j] == 0 and cnt2 + 1 <= n / 2) {
				hyou[i][j] = 2;
				hyou[j][i] = 1;
				tansaku();
				hyou[i][j] = 0;
				hyou[j][i] = 0;
			if (hyou[i][j] == 0 and cnt1 + 1 <= n / 2) {
				hyou[i][j] = 1;
				hyou[j][i] = 2;
				tansaku();
				hyou[i][j] = 0;
				hyou[j][i] = 0;
			}
		}
	}
	if(cnt0 == 0){
		cnt++;
		return;
	}
	return;
}


int main() {
	while(cin >> n, n){
		cin >> m;
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < n; j++) {
				hyou[i][j] = 0;
			}
		}
		int x,y;
		for(int i = 0; i < m; i++) {
			cin >> x >> y;
			hyou[x][y] = 2;
			hyou[y][x] = 1;
		}
		cnt = 0;
		tansaku();
		cout << cnt;
	}
}

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

#include<stdio.h>

int main()
{
  int W;
  int H;
  
  printf("%d" W*H/2);
  
  return 0;
  
}

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

#include <iostream>

using namespace std;

int main() {
  double w, h;
  int x, y;
  
  cin >> w >> h >> x >> y;
  
  int a = 0;
  if (x+x==w && y+y==h) {
    a = 1
  }

  cout << std::fixed << w*h/2 << " " << a;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected ';' before '}' token
   13 |     a = 1
      |          ^
      |          ;
   14 |   }
      |   ~
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;
  
  if(x+x==W&&y+y==H){
    printf("%f %d",ans,1);
  }
  else{
    printf("%f %d",ans,0);
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: request for member 'H' in 'W', which is of non-class type 'int'
    7 |   double ans=W.H/2;
      |                ^
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <bits.stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a>>b>>x>>y;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude <bits.stdc++.h>
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout<<(double)(a * b) / 2<<" "<<ans<<endl;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:46: error: 'endl' was not declared in this scope
   10 |         cout<<(double)(a * b) / 2<<" "<<ans<<endl;
      |                                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude <bits.stdc++.h>
Language: C++

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

}


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


#include <iostream>
#include <tuple>
#include <utility>
#include <string>
#include <iomanip>

using namespace std;

#define int long long

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

  int h, w, x, y;
  cin >> w >> h >> x >> y;
  //cout << h << "|" << w << "|" << x << "|" << y << "|" << (x * y) << endl;
  //cout << (w * h / 2.) << " " << (2 * x == w && 2 * y == h ? "1": "0") << endl;
  //cout << fixed << setprecision(15) << (w * h / 2.) << " " << (2 * x == w && 2 * y == h ? "1": "0") << endl;
  int res = (2 * x == w && 2 * y == h) ? 1: 0;
  cout << fixed << setprecision(15) << (w * h / 2.0) << " " << res << endl;

}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

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

int main() {
  int W;
  int H;
  double M;
  int x;
  int y;
  cin >> W;
  cin >> H;
  M = W * H / 2;
  printf("%.2f\n", M);
  cin >> x;
  cin >> y;
  x = x * 2;
  y = y * 2;
  if (W = x && H = y) {
    cout << 0 << endl;
  }
  else {
    cout << 1 << endl;
  }
}

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

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

int main() {
  int W;
  int H;
  int M;
  int x;
  int y;
  cin >> W;
  cin >> H;
  M = W * H / 2;
  printf("%.2f\n", M);
  cin >> x;
  cin >> y;
  x = x * 2;
  y = y * 2;
  if (W = x && H = y) {
    cout << 0 << endl;
  }
  else {
    cout << 1 << endl;
  }
}

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

#include <bits/stdc++.h>
#define eps 1e-9
using namespace std;
double n, m;
int x, y;

int main()
{
  cin>>m>>n>>x>>y;
  double ans = n * m / 2;
  printf("%.8f ", ans);
  if(x == n / 2 && y == m / 2 && n % 2 == 0 && m % 2 == 0) puts("1");
  else puts("0");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:36: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   12 |   if(x == n / 2 && y == m / 2 && n % 2 == 0 && m % 2 == 0) puts("1");
      |                                  ~ ^ ~
      |                                  |   |
      |                                  |   int
      |                                  double
a.cc:12:50: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   12 |   if(x == n / 2 && y == m / 2 && n % 2 == 0 && m % 2 == 0) puts("1");
      |                                                ~ ^ ~
      |                                                |   |
      |                                                |   int
      |                                                double
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",double(a)*double(b)/2);
  if (2*x == a && a*y== b){
    printf("1")
  }else printf("0");

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before '}' token
   12 |     printf("1")
      |                ^
      |                ;
   13 |   }else printf("0");
      |   ~
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",double(a)*double(b)/2);
  if (2*x == a && a*y== b){
    printf("1")
  }else printf("0");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before '}' token
   12 |     printf("1")
      |                ^
      |                ;
   13 |   }else printf("0");
      |   ~
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: C++

#include <bits/stdc++.h>


#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define MOD 1000000007
#define pii pair<int,int>
#define ll long long
#define el '\n'

using namespace std;


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

    int w,h,x,y;
    cin >> w >> h >> x >> y;
    double a=(double)(w+h)/2
    
    cout << fixed << setprecision(11);

    if (w%2+h%2>0){
        cout << a << " " << (int)0 << el;
        return 0;
    }

    if (w/2==x && h/2==y){
        cout << a << " " << (int)1 << el;
        return 0;
    }

    cout << a << " " << (int)0 << el;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:5: error: expected ',' or ';' before 'cout'
   25 |     cout << fixed << setprecision(11);
      |     ^~~~
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;
  
  
  if(x==W/2&&y==H/2){
    printf("%f %d",ans,1);
  }
  else{
    printf("%f %d",ans,0)
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: expected ';' before '}' token
   14 |     printf("%f %d",ans,0)
      |                          ^
      |                          ;
   15 |   }
      |   ~
Language: C++

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


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int W,H,x,y;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>W>>H>>x>>y;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(W==x/2,H==y/2){
      |   ^~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else{
      |   ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
const int INF=1e9,MOD=1e9+7,ohara=1e6+10;
const ll LINF=1e18;
using namespace std;

#define rep(i,n) for(int (i)=0;(i)<(int)(n);(i)++)
#define rrep(i,a,b) for(int i=(a);i<(b);i++)
#define rrrep(i,a,b) for(int i=(a);i>=(b);i--)
#define all(v) (v).begin(), (v).end()
#define Size(n) (n).size()
#define Cout(x) cout<<(x)<<endl
#define doublecout(a) cout<<fixed<<setprecision(15)<<a<<endl;
#define Cerr(x) cerr<<(x)<<endl
#define fi first
#define se second
#define P pair<ll,ll> 
#define m_p make_pair
#define V vector<ll> 

ll n,cnt,ans,a,b,c,d,tmp,tmpp,m,h,w,x,y,sum,pos,k;
ld doua;
int dy[]={1,0,-1,0};
int dx[]={0,1,0,-1};
//int dy[]={-1,0,1,-1,1,-1,0,1};
//int dx[]={-1,-1,-1,0,0,1,1,1};
string alph("abcdefghijklmnopqrstuvwxyz"),s;
bool fl;
struct edge{int to,cost;};

//-------------------------↓↓↓↓↓↓------------------------

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

    cin>>w>>h>>x>>y;
    long double anss;
    anss=(ld)w*h/2.0;
    cout<<fixed<<setprecision(15)<<anss<<" ";
    if(x*2=w&&y*2==h)cout<<1<<"\n";
    else cout<<0<<"\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:9: error: lvalue required as left operand of assignment
   43 |     if(x*2=w&&y*2==h)cout<<1<<"\n";
      |        ~^~
Language: Java

class Main {
	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int w = Integer.parseInt(sc.next());
      int h = Integer.parseInt(sc.next());
      int x = Integer.parseInt(sc.next());
      int y = Integer.parseInt(sc.next());
      
      double half = (double)w*h / 2; 
      
      double centerX = (double)w / 2;
      double centerX = (double)h / 2;
      
      if (x == centerX && y == centerY) {
        System.out.println(half + ' ' + 1);
      } else {
        System.out.println(half + ' ' + 0);
      }
    }
      
}


Compiler output:
Main.java:3: error: cannot find symbol
      Scanner sc = new Scanner(System.in);
      ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
      Scanner sc = new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class Main
Main.java:12: error: variable centerX is already defined in method main(String[])
      double centerX = (double)h / 2;
             ^
Main.java:14: error: cannot find symbol
      if (x == centerX && y == centerY) {
                               ^
  symbol:   variable centerY
  location: class Main
4 errors
Language: Java

class Main {
	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int w = Integer.parseInt(sc.next());
      int h = Integer.parseInt(sc.next());
      int x = Integer.parseInt(sc.next());
      int y = Integer.parseInt(sc.next());
      
      double half = (double)w*h / 2; 
      
      double centerX = (double)w / 2;
      double centerX = (double)h / 2;
      
      if (x == centerX && y == centerY) {
        System.out.println(half + ' ' + 1);
      } else {
        System.out.println(half + ' ' + 0);
      }
      
}

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

fun main(args: Array<String>) {
    val (w, h, x, y) = readLine()!!.split(" ").map{ it.toInt()}
    val a = if( w / x == 2 && h / y == 2 ) 1 else 0
    println( (w * h / 2.0).toString() + " "  + a )
}


Compiler output:
a.cc:1:1: error: 'fun' does not name a type
    1 | fun main(args: Array<String>) {
      | ^~~
Language: C++

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

#define LL long long
#define lowbit(x) ((x) & -(x))

const int maxn = (int) 1e5 + 20;
const int MOD = 998244353;

LL fp(LL a, LL n, LL m = MOD)
{
    LL res = 1;
    for(; n; n >>= 1, a = a * a % m) if(n & 1) res = res * a % m;
    return res;
}

void work()
{
    int x, y;
    int px, py;
    cin >>x >>y;
    cin >>px >>py;

    int ck = (x % 2 == 0 && y % 2 == 0) && (x / 2 == px && y / 2 == py);
    printf("%.10lf %d", (double) x * y / 2, ck)
}

int main()
{
#ifdef yukihana0416
freopen("in.txt", "r", stdin);
#endif // yukihana0416
    work();
    return 0;
}


Compiler output:
a.cc: In function 'void work()':
a.cc:25:48: error: expected ';' before '}' token
   25 |     printf("%.10lf %d", (double) x * y / 2, ck)
      |                                                ^
      |                                                ;
   26 | }
      | ~
Language: C++

/*
  ∧,,∧
( 'ω' )つ ＜WA,またお前か！！　
（m9 ＼ 　　
　 ＼　 ＼
　 　 ) ) ＼
　 ／／ ＼ ＼
　 (＿） 　 (＿)
*/

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

#define all(x) (x).begin(),(x).end()
#define rep(x, y) for (int x = 0; x < y; x++)
#define MOD 1000000007

typedef long long LL;
typedef long double LD;

bool compare_by_b(pair<int, int> a, pair<int, int> b)
{
    if (a.second != b.second) {
        return a.second < b.second;
    } else {
        return a.first < b.first;
    }
}

ostringstream oss_global;
string s_global = oss_global.str();

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

    if (H == 2*y && W == 2*x) ans = 1;
    else ans = 0;
    cout << 0.5*H*W << " " << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:31: error: 'ans' was not declared in this scope; did you mean 'abs'?
   38 |     if (H == 2*y && W == 2*x) ans = 1;
      |                               ^~~
      |                               abs
a.cc:39:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   39 |     else ans = 0;
      |          ^~~
      |          abs
a.cc:40:31: error: 'ans' was not declared in this scope; did you mean 'abs'?
   40 |     cout << 0.5*H*W << " " << ans << endl;
      |                               ^~~
      |                               abs
Language: C++

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

int main()
{
    double w,h,x,y;
    scanf("%lf%lf%lf%lf",&w,&h,&x,&y);
    double k=w*h;
    printf("%f ",k/2);
    if(w%2==h%2&&h%2==0)
    {
        if(x==w/2 && y==h/2)
            printf("1");
        else
            printf("0");
    }
    else
            printf("0");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |     if(w%2==h%2&&h%2==0)
      |        ~^~
      |        | |
      |        | int
      |        double
a.cc:11:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |     if(w%2==h%2&&h%2==0)
      |             ~^~
      |             | |
      |             | int
      |             double
a.cc:11:19: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |     if(w%2==h%2&&h%2==0)
      |                  ~^~
      |                  | |
      |                  | int
      |                  double