Language: C++

/*
*          Name : chaitanya
*
*     Institute : ANITS,Visakhapatnam
*
*/
#include<cstdio>
#include <iostream>
#include<sstream>
#include<fstream>
#include<iomanip>
#include<algorithm>
#include<cmath>
#include<complex>
#include <cstring>
#include<vector>
#include<list>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<bitset>
#include<numeric>
#include<limits>
#include<climits>
#include<cfloat>
#include<functional>
#include<iterator>
#include <random>
#define inf  1000000000
const long long int N = 6999999;
#define all(x) begin(x),end(x)
#define ll long long int
const ll mod = 1000000007;
#pragma GCC optimization ("O3")
using namespace std;

int main()
{
 
  // freopen("input.txt","r",stdin);
  // freopen("output.txt","w",stdout);
  //ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
  int a,b,x,y;
  cin >> a >> b >> x >> y;
  if (a == x+x/*
*          Name : chaitanya
*
*     Institute : ANITS,Visakhapatnam
*
*/
#include<cstdio>
#include <iostream>
#include<sstream>
#include<fstream>
#include<iomanip>
#include<algorithm>
#include<cmath>
#include<complex>
#include <cstring>
#include<vector>
#include<list>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<bitset>
#include<numeric>
#include<limits>
#include<climits>
#include<cfloat>
#include<functional>
#include<iterator>
#include <random>
#define inf  1000000000
const long long int N = 6999999;
#define all(x) begin(x),end(x)
#define ll long long int
const ll mod = 1000000007;
#pragma GCC optimization ("O3")
using namespace std;

int main()
{
 
  // freopen("input.txt","r",stdin);
  // freopen("output.txt","w",stdout);
  //ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
  int a,b,x,y;
  cin >> a >> b >> x >> y;
  if (a == x+x && b == y+y)
  {
   printf("%.10f 1\n", (a*b)/2.0);
  }
  else
  {   
    printf("%.10f 0\n", (a*b)/2.0);
  }
  return 0;
}
 && b == y+y)
  {
   printf("%.10f 1\n", (a*b)/2.0);
  }
  else
  {   
    printf("%.10f 0\n", (a*b)/2.0);
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:46:15: error: expected ';' before 'const'
   46 |   if (a == x+x/*
      |               ^
      |               ;
......
   76 | const long long int N = 6999999;
      | ~~~~~          
a.cc:79:26: error: expected ')' before ';' token
   79 | const ll mod = 1000000007;
      |                          ^
      |                          )
a.cc:46:6: note: to match this '('
   46 |   if (a == x+x/*
      |      ^
a.cc:83:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   83 | int main()
      |         ^~
a.cc:83:9: note: remove parentheses to default-initialize a variable
   83 | int main()
      |         ^~
      |         --
a.cc:83:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:84:1: error: a function-definition is not allowed here before '{' token
   84 | {
      | ^
a.cc:101:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  101 |  && b == y+y)
      |  ~~~~~^~~~~~
a.cc:101:13: error: expected ';' before ')' token
  101 |  && b == y+y)
      |             ^
      |             ;
a.cc:105:3: error: 'else' without a previous 'if'
  105 |   else
      |   ^~~~
a.cc:101:5: error: label 'b' used but not defined
  101 |  && b == y+y)
      |     ^