Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;

class Program
{
    static void Main(string[] args)
    {
        var sc = new Scanner();

        var w = sc.nextInt();
        var h = sc.nextInt();
        var x = sc.nextInt();
        var y = sc.nextInt();

        int ans = 0;
        if (x == w / 2 && y == h / 2) ans = 1;

        Console.WriteLine("{0} {1}", (double)w * h / 2, ans);
    }
}

// chokudai's Scanner
class Scanner
{
    string[] s;
    int i;

    char[] cs = new char[] { ' ' };

    public Scanner()
    {
        s = new string[0];
        i = 0;
    }

    public string next()
    {
        if (i < s.Length) return s[i++];
        string st = Console.ReadLine();
        while (st == "") st = Console.ReadLine();
        s = st.Split(cs, StringSplitOptions.RemoveEmptyEntries);
        if (s.Length == 0) return next();
        i = 0;
        return s[i++];
    }

    public int nextInt()
    {
        return int.Parse(next());
    }

    public int[] ArrayInt(int N, int add = 0)
    {
        int[] Array = new int[N];
        for (int i = 0; i < N; i++)
        {
            Array[i] = nextInt() + add;
        }
        return Array;
    }

    public long nextLong()
    {
        return long.Parse(next());
    }

    public long[] ArrayLong(int N, long add = 0)
    {
        long[] Array = new long[N];
        for (int i = 0; i < N; i++)
        {
            Array[i] = nextLong() + add;
        }
        return Array;
    }

    public double nextDouble()
    {
        return double.Parse(next());
    }

    public double[] ArrayDouble(int N, double add = 0)
    {
        double[] Array = new double[N];
        for (int i = 0; i < N; i++)
        {
            Array[i] = nextDouble() + add;
        }
        return Array;
    }
}


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:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Diagnostics;
      |       ^~~~~~
a.cc:8:22: error: 'string' has not been declared
    8 |     static void Main(string[] args)
      |                      ^~~~~~
a.cc:8:31: error: expected ',' or '...' before 'args'
    8 |     static void Main(string[] args)
      |                               ^~~~
a.cc:22:2: error: expected ';' after class definition
   22 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:10:9: error: 'var' was not declared in this scope
   10 |         var sc = new Scanner();
      |         ^~~
a.cc:12:13: error: expected ';' before 'w'
   12 |         var w = sc.nextInt();
      |             ^
a.cc:13:13: error: expected ';' before 'h'
   13 |         var h = sc.nextInt();
      |             ^
a.cc:14:13: error: expected ';' before 'x'
   14 |         var x = sc.nextInt();
      |             ^
a.cc:15:13: error: expected ';' before 'y'
   15 |         var y = sc.nextInt();
      |             ^
a.cc:18:13: error: 'x' was not declared in this scope
   18 |         if (x == w / 2 && y == h / 2) ans = 1;
      |             ^
a.cc:18:18: error: 'w' was not declared in this scope
   18 |         if (x == w / 2 && y == h / 2) ans = 1;
      |                  ^
a.cc:18:27: error: 'y' was not declared in this scope
   18 |         if (x == w / 2 && y == h / 2) ans = 1;
      |                           ^
a.cc:18:32: error: 'h' was not declared in this scope
   18 |         if (x == w / 2 && y == h / 2) ans = 1;
      |                                ^
a.cc:20:9: error: 'Console' was not declared in this scope
   20 |         Console.WriteLine("{0} {1}", (double)w * h / 2, ans);
      |         ^~~~~~~
a.cc:20:46: error: 'w' was not declared in this scope
   20 |         Console.WriteLine("{0} {1}", (double)w * h / 2, ans);
      |                                              ^
a.cc:20:50: error: 'h' was not declared in this scope
   20 |         Console.WriteLine("{0} {1}", (double)w * h / 2, ans);
      |                                                  ^
a.cc: At global scope:
a.cc:27:5: error: 'string' does not name a type
   27 |     string[] s;
      |     ^~~~~~
a.cc:30:9: error: expected unqualified-id before '[' token
   30 |     char[] cs = new char[] { ' ' };
      |         ^
a.cc:32:11: error: expected ':' before 'Scanner'
   32 |     public Scanner()
      |           ^~~~~~~~
      |           :
a.cc:38:11: error: expected ':' before 'string'
   38 |     public string next()
      |           ^~~~~~~
      |           :
a.cc:38:12: error: 'string' does not name a type
   38 |     public string next()
      |            ^~~~~~
a.cc:49:11: error: expected ':' before 'int'
   49 |     public int nextInt()
      |           ^~~~
      |           :
a.cc:54:11: error: expected ':' before 'int'
   54 |     public int[] ArrayInt(int N, int add = 0)
      |           ^~~~
      |           :
a.cc:54:15: error: expected unqualified-id before '[' token
   54 |     public int[] ArrayInt(int N, int add = 0)
      |               ^
a.cc:64:11: error: expected ':' before 'long'
   64 |     public long nextLong()
      |           ^~~~~
      |           :
a.cc:69:11: error: expected ':' before 'long'
   69 |     public long[] ArrayLong(int N, long add = 0)
      |           ^~~~~
      |           :
a.cc:69:16: error: expected unqualified-id before '[' token
   69 |     public long[] ArrayLong(int N, long add = 0)
      |                ^
a.cc:79:11: error: expected ':' before 'double'
   79 |     public double nextDouble()
      |           ^~~~~~~
      |           :
a.cc:84:11: error: expected ':' before 'double'
   84 |     public double[] ArrayDouble(int N, double add = 0)
      |           ^~~~~~~
      |           :
a.cc:84:18: error: expected unqualified-id before '[' token
   84 |     public double[] ArrayDouble(int N, double add = 0)
      |                  ^
a.cc:93:2: error: expected ';' after class definition
   93 | }
      |  ^
      |  ;
a.cc: In constructor 'Scanner::Scanner()':
a.cc:34:9: error: 's' was not declared in this scope
   34 |         s = new string[0];
      |         ^
a.cc:34:17: error: 'string' does not name a type
   34 |         s = new string[0];
      |                 ^~~~~~
a.cc: In member function 'int Scanner::nextInt()':
a.cc:51:16: error: expected primary-expression before 'int'
   51 |         return int.Parse(next());
      |                ^~~
a.cc:51:16: error: expected ';' before 'int'
a.cc:51:19: error: expected unqualified-id before '.' token
   51 |         return int.Parse(next());
      |                   ^
a.cc: In member function 'long int Scanner::nextLong()':
a.cc:66:16: error: expected primary-expression before 'long'
   66 |         return long.Parse(next());
      |                ^~~~
a.cc:66:16: error: expected ';' before 'long'
a.cc:66:20: error: expected unqualified-id before '.' token
   66 |         return long.Parse(next());
      |                    ^
a.cc: In member function 'double Scanner::nextDouble()':
a.cc:81:16: error: expected primary-expression before 'double'
   81 |         return double.Parse(next());
      |                ^~~~~~
a.cc:81:16: error: expected ';' before 'double'
a.cc:81:22: error: expected unqualified-id before '.' token
   81 |         return double.Parse(next());
      |                      ^