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

#include <stdio.h>
 
int main(void) {
	int W,H,x,y,i;
	double m;
	scanf("%d%d%d",&W,&H,&x);
	m=W*H/2;
	if(i=x){
		printf("%d",1);
	}else{
		printf("%d",0);
	}
	printf("%f",m);
	return 0
	}

Compiler output:
main.c: In function 'main':
main.c:14:17: error: expected ';' before '}' token
   14 |         return 0
      |                 ^
      |                 ;
   15 |         }
      |         ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:17: error: expected ';' before '}' token
   14 |         return 0
      |                 ^
      |                 ;
   15 |         }
      |         ~
Language: C

#include <stdio.h>
 
int main(void) {
	int W,H,x,y,i;
	double m;
	scanf("%d%d%d%d",&W,&H,&x,&y);
	m=W*H/2;
	if(i=x){
		printf("%d",1)
	}else{
		printf("%d",0);
	}
	printf("%f",m);
	return 0
	}

Compiler output:
main.c: In function 'main':
main.c:9:31: error: expected ';' before '}' token
    9 |                 printf("%d",1)
      |                               ^
      |                               ;
   10 |         }else{
      |         ~                      
main.c:14:17: error: expected ';' before '}' token
   14 |         return 0
      |                 ^
      |                 ;
   15 |         }
      |         ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:28: error: invalid operands to binary & (have 'char *' and 'int')
    6 |         scanf("%d,%d,%d,%d"&W,&H,&x,&y);
      |               ~~~~~~~~~~~~~^
      |               |
      |               char *
main.c:9:31: error: expected ';' before '}' token
    9 |                 printf("%d",1)
      |                               ^
      |                               ;
   10 |         }else{
      |         ~                      
main.c:14:17: error: expected ';' before '}' token
   14 |         return 0
      |                 ^
      |                 ;
   15 |         }
      |         ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:28: error: invalid operands to binary & (have 'char *' and 'int')
    6 |         scanf("%d,%d,%d,%d"&W,&H,&x,&y);
      |               ~~~~~~~~~~~~~^
      |               |
      |               char *
main.c:9:31: error: expected ';' before '}' token
    9 |                 printf("%d",1)
      |                               ^
      |                               ;
   10 |         }else{
      |         ~                      
main.c: At top level:
main.c:14:16: error: expected declaration specifiers or '...' before string constant
   14 |         printf("%d",m);
      |                ^~~~
main.c:14:21: error: unknown type name 'm'
   14 |         printf("%d",m);
      |                     ^
main.c:15:9: error: expected identifier or '(' before 'return'
   15 |         return 0
      |         ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:37: error: expected ';' before '}' token
   14 |     cout << areamax << judge << endl
      |                                     ^
      |                                     ;
   15 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'if'
    8 |     if (x == W/2 && y == H/2){
      |     ^~
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else{
      |     ^~~~
a.cc:14:37: error: expected ';' before '}' token
   14 |     cout << areamax << judge << endl
      |                                     ^
      |                                     ;
   15 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'judge' was not declared in this scope
   13 |     cout << areamax,judge << endl
      |                     ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'judge' was not declared in this scope
    8 |         judge = 1;
      |         ^~~~~
a.cc:11:9: error: 'judge' was not declared in this scope
   11 |         judge = 0;
      |         ^~~~~
a.cc:13:21: error: 'judge' was not declared in this scope
   13 |     cout << areamax,judge << endl
      |                     ^~~~~
Language: C++

#include<bits/stdc++.h>
#define MAXN 10000

using namespace std;
typedef long long ll;

int main()
{
	//freopen("t.txt","r",stdin);
	float w,h,x,y;
	cin>>w>>h>>x>>y;
	float kq = (w*h/)2;
	if (2*x==w && 2*y==h) {
		printf ("%.6f 1",kq );
	}
	else{
		printf ("%.6f 0",kq);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: expected primary-expression before ')' token
   12 |         float kq = (w*h/)2;
      |                         ^
Language: C

#include<stdio.h>

int main() {
  int W, H, x, y;
  scanf("%d %d %d %d", &W, &H, &x, &y);
  int i;
  if (W / 2 == a && H / 2 == y) {
    i = 1;
  } else {
    i = 0;
  }
  
  printf("%d %d\n", (W * H) / 2, i);
}

Compiler output:
main.c: In function 'main':
main.c:7:16: error: 'a' undeclared (first use in this function)
    7 |   if (W / 2 == a && H / 2 == y) {
      |                ^
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>

using namespace std;

typedef long long double fl;

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

  fl mmax = (w*h)/2;
  int flag = 0;
  fl ans=0;

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

Compiler output:
a.cc:5:14: error: 'long long' specified with 'double'
    5 | typedef long long double fl;
      |              ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

typedef ll fl;

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

  fl mmax = w*h/2;
  int flag = 0;
  fl ans=0;

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

Compiler output:
a.cc:5:9: error: 'll' does not name a type
    5 | typedef ll fl;
      |         ^~
a.cc: In function 'int main()':
a.cc:9:3: error: 'fl' was not declared in this scope
    9 |   fl w,h,x,y;
      |   ^~
a.cc:10:10: error: 'w' was not declared in this scope
   10 |   cin >> w >> h >> x >> y;
      |          ^
a.cc:10:15: error: 'h' was not declared in this scope
   10 |   cin >> w >> h >> x >> y;
      |               ^
a.cc:10:20: error: 'x' was not declared in this scope
   10 |   cin >> w >> h >> x >> y;
      |                    ^
a.cc:10:25: error: 'y' was not declared in this scope; did you mean 'yn'?
   10 |   cin >> w >> h >> x >> y;
      |                         ^
      |                         yn
a.cc:12:5: error: expected ';' before 'mmax'
   12 |   fl mmax = w*h/2;
      |     ^~~~~
      |     ;
a.cc:14:5: error: expected ';' before 'ans'
   14 |   fl ans=0;
      |     ^~~~
      |     ;
a.cc:20:11: error: 'mmax' was not declared in this scope; did you mean 'fmax'?
   20 |   cout << mmax << " " << flag << endl;
      |           ^~~~
      |           fmax
Language: C++

#include <stdio.h>

int main (void){
int W, H , x , y, z=0;
double menseki;
scanf(“%d %d %d %d” , &W ,&H , &x , &y);
menseki = (double)W*H;
if(x == W/2 && y ==H/2)
z=1;
printf(“%.6f %d “ ,menseki, z);

return 0;

}


Compiler output:
a.cc:6:7: error: extended character “ is not valid in an identifier
    6 | scanf(“%d %d %d %d” , &W ,&H , &x , &y);
      |       ^
a.cc:6:18: error: extended character ” is not valid in an identifier
    6 | scanf(“%d %d %d %d” , &W ,&H , &x , &y);
      |                  ^
a.cc:10:8: error: extended character “ is not valid in an identifier
   10 | printf(“%.6f %d “ ,menseki, z);
      |        ^
a.cc:10:17: error: extended character “ is not valid in an identifier
   10 | printf(“%.6f %d “ ,menseki, z);
      |                 ^
a.cc: In function 'int main()':
a.cc:6:7: error: '\U0000201c' was not declared in this scope
    6 | scanf(“%d %d %d %d” , &W ,&H , &x , &y);
      |       ^
a.cc:6:9: error: 'd' was not declared in this scope
    6 | scanf(“%d %d %d %d” , &W ,&H , &x , &y);
      |         ^
a.cc:6:18: error: 'd\U0000201d' was not declared in this scope
    6 | scanf(“%d %d %d %d” , &W ,&H , &x , &y);
      |                  ^~
Language: C++

#include <stdio.h>

int main (void){
int W, H , x , y, z=0;
double menseki;
scanf(“%d %d %d %d” , &W ,&H , &x , &z);
menseki = (double)W*H;
if(x == W/2 && y ==H/2)
z=1;
printf(“%.6f %d “ ,menseki, z);

return 0;

}

Compiler output:
a.cc:6:7: error: extended character “ is not valid in an identifier
    6 | scanf(“%d %d %d %d” , &W ,&H , &x , &z);
      |       ^
a.cc:6:18: error: extended character ” is not valid in an identifier
    6 | scanf(“%d %d %d %d” , &W ,&H , &x , &z);
      |                  ^
a.cc:10:8: error: extended character “ is not valid in an identifier
   10 | printf(“%.6f %d “ ,menseki, z);
      |        ^
a.cc:10:17: error: extended character “ is not valid in an identifier
   10 | printf(“%.6f %d “ ,menseki, z);
      |                 ^
a.cc: In function 'int main()':
a.cc:6:7: error: '\U0000201c' was not declared in this scope
    6 | scanf(“%d %d %d %d” , &W ,&H , &x , &z);
      |       ^
a.cc:6:9: error: 'd' was not declared in this scope
    6 | scanf(“%d %d %d %d” , &W ,&H , &x , &z);
      |         ^
a.cc:6:18: error: 'd\U0000201d' was not declared in this scope
    6 | scanf(“%d %d %d %d” , &W ,&H , &x , &z);
      |                  ^~
Language: C++

#include <stdio.f>

int main (void){
int W, H , x , y, z=0;
double menseki;
scanf(“%d %d %d %d” , &W ,&H , &x , &z);
menseki = (double)W*H;
if(x == W/2 && y ==H/2)
z=1;
printf(“%.6f %d “ ,menseki, z);

return 0;

}

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

#include <iostream>
using namespace std;
int main(){
  int w,h,x,y;
  cin >> w >> h >> x >> y;
  int a;
  if(2*x==w&&2*y==h) a = 1;
  else a = 0;
  cout << ((double)(w)*(double(h))/2.0 << " " << a << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:40: error: invalid operands of types 'double' and 'const char [2]' to binary 'operator<<'
    9 |   cout << ((double)(w)*(double(h))/2.0 << " " << a << endl;
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~
      |                                   |       |
      |                                   double  const char [2]
a.cc:9:59: error: expected ')' before ';' token
    9 |   cout << ((double)(w)*(double(h))/2.0 << " " << a << endl;
      |           ~                                               ^
      |                                                           )
Language: C++

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

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

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

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

#include <stdio.h>

int main(){
	long long int W,H,x,y;
	scanf("%lld%lld%lld%lld",&W,&H,&x,&y);
	printf("%lf %d",(double)W*double(H)/2,x*2==W&&y*2==H);
	return 0;	
}

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

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

int w, h, x,y,  tf;
double area;

void solve()
{
    area = (double)y*w/2;
}

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


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

  solve();

  cout << area << " " << tf << endl;
}

Compiler output:
a.cc:12:1: error: expected unqualified-id before 'if'
   12 | if (x == w/2 && y == h/2 ) {
      | ^~
a.cc:14:5: error: expected unqualified-id before 'else'
   14 |   } else {
      |     ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

using System;
using System.Collections.Generic;
namespace I_am_the_brown_coder{
    class Inonoa{
        static void Main(){
            string[] w_h_x_y = Console.ReadLine().Split();
            long w = long.Parse(w_h_x_y[0]);
            long h = long.Parse(w_h_x_y[1]);
            long x = long.Parse(w_h_x_y[2]);
            long y = long.Parse(w_h_x_y[3]);

            Console.Write(((double)w*h/2.0).ToString()+ " ");
            if(x*2==w && y*2==h){
                Console.WriteLine(1);
            }else{
                Console.WriteLine(0);
            }
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:19:6: error: expected ';' after class definition
   19 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void I_am_the_brown_coder::Inonoa::Main()':
a.cc:6:13: error: 'string' was not declared in this scope
    6 |             string[] w_h_x_y = Console.ReadLine().Split();
      |             ^~~~~~
a.cc:6:20: error: expected primary-expression before ']' token
    6 |             string[] w_h_x_y = Console.ReadLine().Split();
      |                    ^
a.cc:7:22: error: expected primary-expression before 'long'
    7 |             long w = long.Parse(w_h_x_y[0]);
      |                      ^~~~
a.cc:8:22: error: expected primary-expression before 'long'
    8 |             long h = long.Parse(w_h_x_y[1]);
      |                      ^~~~
a.cc:9:22: error: expected primary-expression before 'long'
    9 |             long x = long.Parse(w_h_x_y[2]);
      |                      ^~~~
a.cc:10:22: error: expected primary-expression before 'long'
   10 |             long y = long.Parse(w_h_x_y[3]);
      |                      ^~~~
a.cc:12:13: error: 'Console' was not declared in this scope
   12 |             Console.Write(((double)w*h/2.0).ToString()+ " ");
      |             ^~~~~~~
a.cc:12:45: error: request for member 'ToString' in '(((double)w * (double)h) / 2.0e+0)', which is of non-class type 'double'
   12 |             Console.Write(((double)w*h/2.0).ToString()+ " ");
      |                                             ^~~~~~~~
Language: C++

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

if x == w/2 and y == h/2:
	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 <iostream>
# include <math.h>

using namespace std;

double ans;
float eps = pow(10,-9);

int main()
{   
    float w, h, x, y;
    int numWays = 0;
    
    cin >> w >> h >> x >> y; 
    
    if (x*2 == w && y*2 == h)
    {
        numWays = 1;    
    }
    
	cout << fixed << setprecision(15) << (w*h / 2.0) << " " << numWays << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:26: error: 'setprecision' was not declared in this scope
   21 |         cout << fixed << setprecision(15) << (w*h / 2.0) << " " << numWays << endl;
      |                          ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | # include <math.h>
  +++ |+#include <iomanip>
    3 |
Language: C++

# include <iostream>
# include <math.h>

using namespace std;

double ans;
float eps = pow(10,-9);

int main()
{   
    float w, h, x, y;
    int numWays = 0;
    
    cin >> w >> h >> x >> y;
    
    float halfX = x/2;
    float halfY = y/2;
        
    if ((fabs(halfX - x) <= eps)  && (fabs(halfY - y) <= eps))
    {
       ans = w*h/2.0;     
       numWays = 1;        
    }        
    else 
    {
        // ans = max((w - x) * h, (h - y)*x);  
        ans = w*h/2.0; 
    }    
    
    if (x*2 == w && y*2 == h)
    {
        numWays = 1;    
    }
    
	cout << fixed << setprecision(15) << (w*h / 2.0) << " " << numWays << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:26: error: 'setprecision' was not declared in this scope
   35 |         cout << fixed << setprecision(15) << (w*h / 2.0) << " " << numWays << endl;
      |                          ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | # include <math.h>
  +++ |+#include <iomanip>
    3 |
Language: C

#include<stdio.h>

int main(){
	int w,h,x,y;
	scanf("%d%d%d%d",&w,&h,&x,&y);
	f(2*x<w){
		if(2*y<h){
			printf("%07d 0",x*y);
		}
		if(2*y>h){
			printf("%07d 0",x*(h-y));
		}
		else printf("%07d 1",x*y);
	}
	if(2*x>w){
		if(2*y<h){
			printf("%07d 0",(w-x)*y);
		}
		if(2*y>h){
			printf("%07d 0",(w-x)*(h-y));
		}
		else printf("%07d 1",(h-x)*y);
	}
	if(2*x==w){
		if(2*y<=h)	printf("%07d 1",x*y);
		else		printf("%07d 1",x*(h-y));
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'f' [-Wimplicit-function-declaration]
    6 |         f(2*x<w){
      |         ^
main.c:6:17: error: expected ';' before '{' token
    6 |         f(2*x<w){
      |                 ^
      |                 ;
Language: C++

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

int main(){
    double H, W, x, y; cin >> H >> W >> x >> y;
    cout << fixed << setprecition(10) << (H * W / 2) << " " << ( H == y + y && W == x + x ) << endl;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: 'c' was not declared in this scope
    7 |         cout << (H * W / 2) + c << " " << 1 << endl;
      |                               ^
a.cc:9:31: error: 'c' was not declared in this scope
    9 |         cout << (H * W / 2) + c << " " << 0 << endl;
      |                               ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int H,W,x,y;
  double ans;
  cin >>H >> W >> x >> y;
  ans = (double)(H*W)/2;
  int flg;
  if ( (2*x == W) && (2*y == H) ){
	flg = 1;
  }else{
    flg = 0;
  }
  printf("%.10f %d\n", ans, flg);
  return 0:
  //cout << ans << ' ' <<flg <<endl;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: expected ';' before ':' token
   15 |   return 0:
      |           ^
      |           ;
a.cc:15:11: error: expected primary-expression before ':' token
Language: C++


#include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(x) x.begin() , x.end()
int tt = 1;
3define db double

void ok() {
 
 db w,h,x,y;
 cin >> w >> h >> x >> y;
 cout<<(w*h)/2.0<<"\n";
}

int32_t main() {


  int t = 1;
  //cin >> t;
  int c = 0;
  while (t--) {
    
    ok();
  }
  return 0;
}


Compiler output:
a.cc:7:1: error: expected unqualified-id before numeric constant
    7 | 3define db double
      | ^~~~~~~
a.cc: In function 'int32_t main()':
a.cc:24:5: error: 'ok' was not declared in this scope
   24 |     ok();
      |     ^~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: lvalue required as left operand of assignment
    8 |         int num = (w == x * 2 && h = y * 2) ? 1 : 0;
      |                    ~~~~~~~~~~~^~~~
Language: C++

#include <iostream>
#include <algorithm>
#define int long long
using namespace std;
signed main() {
	int w, h, x, y; cin >> w >> h >> x >> y;
	int a1 = min(x, w - x)*h, a2 = min(y, h - y)*x;
	cout << min(a1, a2) << ' ' << a1 == a2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:48: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |         cout << min(a1, a2) << ' ' << a1 == a2 << endl;
      |                                             ~~~^~~~~~~
Language: C

#include<stdio.h>

int main(){
  int W,H,x,y,i;
  double S;
  scanf("%d %d %d %d",&W,&H,&x,&y);
  if(2*x==W&&2*y==H)
    i=1;
  else
    i=0;
  S =(double)(W*H)/2
  printf("%f %d",S,i);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:21: error: expected ';' before 'printf'
   11 |   S =(double)(W*H)/2
      |                     ^
      |                     ;
   12 |   printf("%f %d",S,i);
      |   ~~~~~~
Language: Java

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

Compiler output:
Main.java:5: error: incompatible types: String cannot be converted to int
    int w = sc.next();
                   ^
Main.java:6: error: incompatible types: String cannot be converted to int
    int h = sc.next();
                   ^
Main.java:7: error: incompatible types: String cannot be converted to int
    int x = sc.next();
                   ^
Main.java:8: error: incompatible types: String cannot be converted to int
    int y = sc.next();
                   ^
4 errors
Language: C++

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

int main() {
	double w,h,x,y;
	cin >> w >> h >> x >> y;
	int s=(w*h)/2.0;
	int r=0;
	if ((y==(h/2.0)) && (x==(w/.2.0))) r=1;
	cout << s << " " << r;
	return 0;
}

Compiler output:
a.cc:10:36: error: too many decimal points in number
   10 |         if ((y==(h/2.0)) && (x==(w/.2.0))) r=1;
      |                                    ^~~~
Language: C++

#include <iostream>
using namespace std::
int main(){
  float x,y,a,b;
  cin>>x>>y>>a>>b;
  cout<<x*y/2<<" "<<bool(x==a*2&&y==b*2)<<endl;
}

Compiler output:
a.cc:3:1: error: expected identifier before 'int'
    3 | int main(){
      | ^~~
a.cc:2:22: error: expected ';' before 'int'
    2 | using namespace std::
      |                      ^
      |                      ;
    3 | int main(){
      | ~~~                   
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>x>>y>>a>>b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<x*y/2<<" "<<bool(x==a*2&&y==b*2)<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:43: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<x*y/2<<" "<<bool(x==a*2&&y==b*2)<<endl;
      |                                           ^~~~
      |                                           std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

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

Compiler output:
Main.java:11: error: -> expected
    a = (double w) * (double h) / 2;
                  ^
Main.java:11: error: illegal start of expression
    a = (double w) * (double h) / 2;
                   ^
Main.java:11: error: -> expected
    a = (double w) * (double h) / 2;
                               ^
Main.java:11: error: illegal start of expression
    a = (double w) * (double h) / 2;
                                ^
4 errors
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define pb push_back
#define all(a) a.begin(), a.end()
#define sz(a) (int)a.size()
#define x first
#define y second
#define debug(...) cout << "[" << #__VA_ARGS__ << ": " << __VA_ARGS__ << "]\n"
#define rd() abs((int)rng())
using namespace std;
using namespace __gnu_pbds;
template<class T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
typedef long long ll;
typedef long double ld;
typedef pair<int, int>pii;
const int maxn = 5e5 + 100;
const int mod = 1e9 + 7;
mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count());
int main()
{
	ios_base::sync_with_stdio(false), cin.tie(0);
	ld w, h, x, y;
	cin >> w >> h >> x >> y;
	cout << setprecision(10) << fixed << (w * h) / 2 << " " << (w % 2 == 0 && h % 2 == 0 && x == w / 2 && y == h / 2) << "\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:71: error: invalid operands of types 'ld' {aka 'long double'} and 'int' to binary 'operator%'
   25 |         cout << setprecision(10) << fixed << (w * h) / 2 << " " << (w % 2 == 0 && h % 2 == 0 && x == w / 2 && y == h / 2) << "\n";
      |                                                                     ~ ^ ~
      |                                                                     |   |
      |                                                                     |   int
      |                                                                     ld {aka long double}
a.cc:25:85: error: invalid operands of types 'ld' {aka 'long double'} and 'int' to binary 'operator%'
   25 |         cout << setprecision(10) << fixed << (w * h) / 2 << " " << (w % 2 == 0 && h % 2 == 0 && x == w / 2 && y == h / 2) << "\n";
      |                                                                                   ~ ^ ~
      |                                                                                   |   |
      |                                                                                   |   int
      |                                                                                   ld {aka long double}
Language: C++

#include <bits/stdc++.h>
#define loop(idx, N) for (auto idx(0); idx < N; ++idx)
using namespace std;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:54: error: invalid operands of types 'bool' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |   cout << w * h / 2 << " " << (x+x == w)&&(y+y == h) << endl;
      |                                           ~~~~~~~~~~~^~~~~~~
Language: C

#include<stdio.h>
 
int main(void){
 
    double W,H,x,y,S;
 
    scanf("%f %f %f %f",&W,&H,&x,&y);
 
    S = (W * H) / 2
 
    printf("%f ",S);
 
    if(x * 2 == W && y * 2 == H){
        printf("1");
    }else{
        printf("0");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ';' before 'printf'
    9 |     S = (W * H) / 2
      |                    ^
      |                    ;
   10 | 
   11 |     printf("%f ",S);
      |     ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:20: error: expected ';' before 'printf'
   10 |     S = (W * H) / 2
      |                    ^
      |                    ;
   11 | 
   12 |     printf("%f ",S);
      |     ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:31: error: invalid type argument of unary '*' (have 'int')
    6 |         printf("%.12lf ",(1ll**w*h)/2.0);
      |                               ^~
Language: C++

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> w >> h >> x >> y;
      |   ^~~
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << area << c << endl;
      |   ^~~~
a.cc:15:24: error: 'endl' was not declared in this scope
   15 |   cout << area << c << endl;
      |                        ^~~~
Language: C++

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string w,h;
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >>w>>h>>x>>y;
      |   ^~~
a.cc:7:9: error: 'w' was not declared in this scope
    7 |   cin >>w>>h>>x>>y;
      |         ^
a.cc:7:12: error: 'h' was not declared in this scope
    7 |   cin >>w>>h>>x>>y;
      |            ^
a.cc:8:9: error: expected ';' before 'area'
    8 |   string area = (w*h)/2;
      |         ^~~~~
      |         ;
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << area << c << endl;
      |   ^~~~
a.cc:15:11: error: 'area' was not declared in this scope
   15 |   cout << area << c << endl;
      |           ^~~~
a.cc:15:24: error: 'endl' was not declared in this scope
   15 |   cout << area << c << endl;
      |                        ^~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string w,h;
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >>w>>h>>x>>y;
      |   ^~~
a.cc:7:9: error: 'w' was not declared in this scope
    7 |   cin >>w>>h>>x>>y;
      |         ^
a.cc:7:12: error: 'h' was not declared in this scope
    7 |   cin >>w>>h>>x>>y;
      |            ^
a.cc:8:9: error: expected ';' before 'area'
    8 |   string area = (w*h)/2;
      |         ^~~~~
      |         ;
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << area << c << endl;
      |   ^~~~
a.cc:15:11: error: 'area' was not declared in this scope
   15 |   cout << area << c << endl;
      |           ^~~~
a.cc:15:24: error: 'endl' was not declared in this scope
   15 |   cout << area << c << endl;
      |                        ^~~~
Language: C++

#include <stdio.h>
typedef long long int ll;

ll min(ll x,ll y){
	if(x > y){
		return y;
	}else{
		return x;
	}
}

int main(void)
{
	ll w,h,x,y;
	
	scanf("%lld%lld%lld%lld",&w,&h,&x,&y);
	
	ll menseki = w * h;
	
	printf("%lld %lld\n",menseki/2,x+y==w && x+y==h);
	
	return 0;
	
			
	
	
	
	
	
	
	
	
	

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

#include <stdio.h>
typedef long long int ll;

ll min(ll x,ll y){
	if(x > y){
		return y;
	}else{
		return x;
	}
}

int main(void)
{
	ll w,h,x,y;
	
	scanf("%lld%lld%lld%lld",&w,&h,&x,&y);
	
	ll menseki = w * h;
	
	printf("%lld %lld\n",menseki/2,x+y=w && x+y=h);
	
	return 0;
	
			
	
	
	
	
	
	
	
	
	

Compiler output:
a.cc: In function 'int main()':
a.cc:20:46: error: lvalue required as left operand of assignment
   20 |         printf("%lld %lld\n",menseki/2,x+y=w && x+y=h);
      |                                            ~~^~~~~~
a.cc:22:18: error: expected '}' at end of input
   22 |         return 0;
      |                  ^
a.cc:13:1: note: to match this '{'
   13 | {
      | ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <numeric>
#include <queue>
#include <vector>
#include <cmath>
#include <cctype>
#include <cstring>
#include <cstdio>

using namespace std;

typedef long long LL;
typedef pair<int, int> PII;

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

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:3: error: expected ',' or ';' before 'if'
   23 |   if (x*2 == w && y*2 == h) {
      |   ^~
a.cc:25:5: error: 'else' without a previous 'if'
   25 |   } else {
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
int H, W, x, y, a, b, o;
cin >> H, W, x, y;
a = W/2;
b = H/2;
o =(a*b)/2;
if(a = x&b = y){
cout << o << "1 endl";
}
else{
cout << o << "0 endl ";
}
return 0 ;
}

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

#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <set>
#include <algorithm>
#include <array>
#include <complex>
#include <string>
#include <utility>
#include <map>
#include <queue>
#include <list>
#include <functional>
#include <numeric>
#include <stack>
#include <tuple>

using namespace std;
int dx[4] = { -1,0,1,0 };
int dy[4] = { 0,1,0,-1 };
const int INF = 100000000;
const long long LINF = 1000000000000000000;
const int MOD = (int)1e9 + 7;
const double EPS = 1e-6;
using pii = std::pair<int, int>;
using ll=long long;  
using pLL = std::pair<ll, ll>;
#define SORT(v) std::sort(v.begin(), v.end())
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int N,M,x,y;
	cin >> N >> M >> x >> y;
	printf("%lf %d\n",double(N)*double(M)/2.0,(2*x==N&&2*y==M))
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:68: error: expected ';' before 'return'
   35 |         printf("%lf %d\n",double(N)*double(M)/2.0,(2*x==N&&2*y==M))
      |                                                                    ^
      |                                                                    ;
   36 |     return 0;
      |     ~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <set>
#include <algorithm>
#include <array>
#include <complex>
#include <string>
#include <utility>
#include <map>
#include <queue>
#include <list>
#include <functional>
#include <numeric>
#include <stack>
#include <tuple>

using namespace std;
int dx[4] = { -1,0,1,0 };
int dy[4] = { 0,1,0,-1 };
const int INF = 100000000;
const long long LINF = 1000000000000000000;
const int MOD = (int)1e9 + 7;
const double EPS = 1e-6;
using pii = std::pair<int, int>;
using ll=long long;  
using pLL = std::pair<ll, ll>;
#define SORT(v) std::sort(v.begin(), v.end())
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int N,M,x,y;
	cin >> N >> M >> x >> y;
	printf("%ld %d\n",double(N)*double(M)/2.0,(2*x==N&&2*y==M))
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:68: error: expected ';' before 'return'
   35 |         printf("%ld %d\n",double(N)*double(M)/2.0,(2*x==N&&2*y==M))
      |                                                                    ^
      |                                                                    ;
   36 |     return 0;
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

  cout << fixed << setprecision(6) << W * H / 2 << " " << (x + x == W) && (y + y == H) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:88: error: invalid operands of types 'bool' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |   cout << fixed << setprecision(6) << W * H / 2 << " " << (x + x == W) && (y + y == H) << endl;
      |                                                                           ~~~~~~~~~~~~~^~~~~~~
Language: C++

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

int main(){
	int w,h,x,y;
  
  	cin>>w>>h>>x>>y;
  
  	int count1=0, coun2=0;
  	int ans1=-1, ans2=-1;	
  
  	if( x*h == ((w-x)*h) ){
      ans1 = x*h;	
      count1++;
    }
  
  	if( y*w == (h-y)*w ){
     ans2 = x*h;
     count2++;
    }
  
  	if(ans1==ans2){
    	cout<<ans1<<"1";
    }
  
  	if(ans1!=-1){
 		cout<<ans1<<"0";   
    }
  
  	if(ans2!=-1){
 		cout<<ans2<<"0";   
    }
  	
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:6: error: 'count2' was not declared in this scope; did you mean 'coun2'?
   19 |      count2++;
      |      ^~~~~~
      |      coun2
Language: C++

    #include <bits/stdc++.h>
    #define int long long
    #define ld long double
    #define endl "\n"
    #define fastio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    #define pb(x) push_back(x)
    #define mp(a,b) make_pair(a,b)
    #define ms(v,x) memset(v,x,sizeof(v))
    #define pii pair<int,int>
    #define ff first
    #define ss second
    #define frr(i,n) for(int i=0;i<n;i++)
    #define td(v) v.begin(),v.end()
    #define inf 1000000000 // 1e9
    #define M   1000000007 // 1e9 + 7
    using namespace std;
    inline int mod(int n, int m){ int ret = n%m; if(ret < 0) ret += m; return ret; }
    int gcd(int a, int b){return (b == 0 ? a : gcd(b, a%b));}
    int lcm(int a,int b){return (a*b)/gcd(a,b);}
    int exp(int a,int b,int m){
        if(b==0) return 1;
        if(b==1) return mod(a,m);
        int k = mod(exp(a,b/2,m),m);
        if(b&1){
            return mod(a*mod(k*k,m),m);
        }
        else return mod(k*k,m);
    }
    int32_t main(){
        fastio;
        ld a,b,c,d;
      	cin >> a >> b >> c >> d;
        cout << fixed<< setprecision(12) (a*b)/2 << endl;
     
    }

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:33:42: error: no match for call to '(std::_Setprecision) (long double)'
   33 |         cout << fixed<< setprecision(12) (a*b)/2 << endl;
      |                         ~~~~~~~~~~~~~~~~~^~~~~
Language: C++

#include <bits/stdc++.h>
#define int long long
#define double long double
#define endl "\n"
#define fastio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define pb(x) push_back(x)
#define mp(a,b) make_pair(a,b)
#define ms(v,x) memset(v,x,sizeof(v))
#define pii pair<int,int>
#define ff first
#define ss second
#define frr(i,n) for(int i=0;i<n;i++)
#define td(v) v.begin(),v.end()
#define inf 1000000000 // 1e9
#define M   1000000007 // 1e9 + 7
using namespace std;
inline int mod(int n, int m){ int ret = n%m; if(ret < 0) ret += m; return ret; }
int gcd(int a, int b){return (b == 0 ? a : gcd(b, a%b));}
int lcm(int a,int b){return (a*b)/gcd(a,b);}
int exp(int a,int b,int m){
    if(b==0) return 1;
    if(b==1) return mod(a,m);
    int k = mod(exp(a,b/2,m),m);
    if(b&1){
        return mod(a*mod(k*k,m),m);
    }
    else return mod(k*k,m);
}
int32_t main(){
    fastio;
    ld a,b,c,d;
  	cin >> a >> b >> c >> d;
    cout << (a*b)/2 << endl;

}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:31:5: error: 'ld' was not declared in this scope; did you mean 'td'?
   31 |     ld a,b,c,d;
      |     ^~
      |     td
a.cc:32:16: error: 'a' was not declared in this scope
   32 |         cin >> a >> b >> c >> d;
      |                ^
a.cc:32:21: error: 'b' was not declared in this scope; did you mean 'pb'?
   32 |         cin >> a >> b >> c >> d;
      |                     ^
      |                     pb
a.cc:32:26: error: 'c' was not declared in this scope
   32 |         cin >> a >> b >> c >> d;
      |                          ^
a.cc:32:31: error: 'd' was not declared in this scope; did you mean 'td'?
   32 |         cin >> a >> b >> c >> d;
      |                               ^
      |                               td
Language: C++

///                ..:: In The Name Of God ::..
#include <bits/stdc++.h>

#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define endl    '\n' 
#define INF 2e9
#define int ll
#define vi          vector<int>
#define de          deque<int>
#define SZ(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()//全範囲指定を簡略化

typedef long long ll;

using namespace std;

//配列の要素数は　sizeof(ar)/sizeof(ar[0]) で求める

signed main(){

    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(false);

    int W, H, x, y ;
    cin >> W >> H >> x >> y;
    double ans = (double)W*H/2;
    
    printf("%.10Lf %d\n", ans, x + x == W && y + y == H);
    
    return 0:

}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:13: error: expected ';' before ':' token
   33 |     return 0:
      |             ^
      |             ;
a.cc:33:13: error: expected primary-expression before ':' token
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int w,h,x,y;
  
  cin>>w>>h>>x>>y;
  unsigned double area = (unsigned double)w*h/2;
  cout<<sizeof(double);
  int t = 0;
  if(x == w/2 && y == h/2)
  	t = 1;
  std::cout<< std::fixed;
  std::cout <<std::setprecision(9);
  cout<<area<<" "<<to_string(t);
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'unsigned' specified with 'double'
    7 |   unsigned double area = (unsigned double)w*h/2;
      |   ^~~~~~~~
a.cc:7:27: error: 'unsigned' specified with 'double'
    7 |   unsigned double area = (unsigned double)w*h/2;
      |                           ^~~~~~~~
Language: C++

///                ..:: In The Name Of God ::..
#include <bits/stdc++.h>

#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define endl    '\n' 
#define INF 2e9
#define int ll
#define vi          vector<int>
#define de          deque<int>
#define SZ(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()//全範囲指定を簡略化

typedef long long ll;

using namespace std;

//配列の要素数は　sizeof(ar)/sizeof(ar[0]) で求める

signed main(){

    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(false);

    int W, H, x, y ;
    cin >> W >> H >> x >> y;
    double ans = (double)W*H/2 
    if (x + x == W && y + y == H)
    {
        printf("%.10Lf %d\n", ans, x + x == W && y + y == H);
    }
    else
    

}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:5: error: expected ',' or ';' before 'if'
   30 |     if (x + x == W && y + y == H)
      |     ^~
a.cc:34:5: error: 'else' without a previous 'if'
   34 |     else
      |     ^~~~
a.cc:37:1: error: expected primary-expression before '}' token
   37 | }
      | ^
Language: C++

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

int main() {
    cout << fixed << setprecision(10);
    int W , H , x , y , cx  , cy ;
    double S ;
    cin >> W >> H >> x >> y;
    S = (double)(H*W)/2;
    if(W%2==0 && H%2==0){
        cx = W/2;
        cy = H/2;
        if(cx == x && cy == y){
          cout << S << ' ' << 1 << endl;
       }
        else if(!(cx == x && cy == y)){
        cout << S << ' ' << 0 << endl;
    }
    }
    if(W%2==1||H%2==1){
        cout << S << ' ' << 0 << endl;
}

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

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

int main() {
    cout << fixed << setprecision(10);
    int W , H , x , y , cx  , cy ;
    double S ;
    cin >> W >> H >> x >> y;
    S = (double)(H*W)/2;
    if(W%2==0 && H%2==0){
        cx = W/2;
        cy = H/2;
        if(cx == x && cy == y){
          cout << S << ' ' << 1 << endl;
       }
        else if(!(cx == x && cy == y)){
        cout << S << ' ' << 0 << endl;
    }
    if(W%2==1||H%2==1){
        cout << S << ' ' << 0 << endl;
}
}

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

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

int main() {
    cout << fixed << setprecision(10);
    int W , H , x , y , cx = 0 , cy = 0;
    double S ;
    cin >> W >> H >> x >> y;
    S = (double)(H*W)/2;
   if(W%2==0)cx = W/2;
    if(H%2==0) cy = H/2;
    if(cx == x && cy == y){
        cout << S << ' ' << 1 << endl;
    }
     if(!(cx == x && cy == y)){
        cout << S << ' ' << 0 << endl;
    }
    if(W%2==1||H%2==1){
        cout << S << ' ' << 0 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^