Language: Java

#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 FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 999999999999
#define MOD 1000000007
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;
typedef vector<llong> LV;

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

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

    double mx = H/2;double my=W/2;
    int a = (x==mx &&y==my);
    cout << double(W)*H/2 << " "<< a << endl;


    




}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:2: error: illegal character: '#'
#define REP(i, n) for(int i = 0;i < n;i++)
^
Main.java:2: error: class, interface, enum, or record expected
#define REP(i, n) for(int i = 0;i < n;i++)
                                ^
Main.java:2: error: class, interface, enum, or record expected
#define REP(i, n) for(int i = 0;i < n;i++)
                                      ^
Main.java:3: error: illegal character: '#'
#define REPR(i, n) for(int i = n;i >= 0;i--)
^
Main.java:3: error: class, interface, enum, or record expected
#define REPR(i, n) for(int i = n;i >= 0;i--)
                                 ^
Main.java:3: error: class, interface, enum, or record expected
#define REPR(i, n) for(int i = n;i >= 0;i--)
                                        ^
Main.java:4: error: illegal character: '#'
#define FOR(i, m, n) for(int i = m;i < n;i++)
^
Main.java:4: error: class, interface, enum, or record expected
#define FOR(i, m, n) for(int i = m;i < n;i++)
                                   ^
Main.java:4: error: class, interface, enum, or record expected
#define FOR(i, m, n) for(int i = m;i < n;i++)
                                         ^
Main.java:5: error: illegal character: '#'
#define FORR(i, m, n) for(int i = m;i >= n;i--)
^
Main.java:5: error: class, interface, enum, or record expected
#define FORR(i, m, n) for(int i = m;i >= n;i--)
                                    ^
Main.java:5: error: class, interface, enum, or record expected
#define FORR(i, m, n) for(int i = m;i >= n;i--)
                                           ^
Main.java:6: error: illegal character: '#'
#define SORT(v, n) sort(v, v+n);
^
Main.java:7: error: illegal character: '#'
#define VSORT(v) sort(v.begin(), v.end());
^
Main.java:7: error: class, interface, enum, or record expected
#define VSORT(v) sort(v.begin(), v.end());
        ^
Main.java:8: error: illegal character: '#'
#define llong long long
^
Main.java:8: error: class, interface, enum, or record expected
#define llong long long
        ^
Main.java:9: error: illegal character: '#'
#define pb(a) push_back(a)
^
Main.java:10: error: illegal character: '#'
#define INF 999999999999
^
Main.java:11: error: illegal character: '#'
#define MOD 1000000007
^
Main.java:13: error: class, interface, enum, or record expected
typedef pair<int, int> P;
^
Main.java:14: error: class, interface, enum, or record expected
typedef pair<llong, llong> LP;
^
Main.java:15: error: class, interface, enum, or record expected
typedef pair<int, P> PP;
^
Main.java:16: error: class, interface, enum, or record expected
typedef pair<llong, LP> LPP;
^
Main.java:17: error: class, interface, enum, or record expected
typedef vector<llong> LV;
^
Main.java:19: error: class, interface, enum, or record expected
int dy[]={0, 0, 1, -1, 0};
^
Main.java:20: error: class, interface, enum, or record expected
int dx[]={1, -1, 0, 0, 0};
^
Main.java:24: error: not a statement
    cin >>W >> H >> x >> y;
                      ^
Main.java:28: error: not a statement
    cout << double(W)*H/2 << " "<< a << endl;
         ^
Main.java:28: error: not a statement
    cout << double(W)*H/2 << " "<< a << endl;
                   ^
Main.java:28: error: not a statement
    cout << double(W)*H/2 << " "<< a << endl;
                                     ^
Main.java:22: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
Main.java:28: error: '.class' expected
    cout << double(W)*H/2 << " "<< a << endl;
                  ^
Main.java:28: error: ';' expected
    cout << double(W)*H/2 << " "<< a << endl;
                    ^
36 errors