Language: C++

using System; class Program { static void Main(string[] args) { int a, b, d, r; double f; string[] num = Console.ReadLine().Split(' '); a = int.Parse(num[0]); b = int.Parse(num[1]); d = a / b; r = a % b; f = (double)a / b; Console.Write(d + " " + r + " "); Console.WriteLine("{0:0.000000}", f); } } 


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System; class Program { static void Main(string[] args) { int a, b, d, r; double f; string[] num = Console.ReadLine().Split(' '); a = int.Parse(num[0]); b = int.Parse(num[1]); d = a / b; r = a % b; f = (double)a / b; Console.Write(d + " " + r + " "); Console.WriteLine("{0:0.000000}", f); } }
      |       ^~~~~~
a.cc:1:48: error: 'string' has not been declared
    1 | using System; class Program { static void Main(string[] args) { int a, b, d, r; double f; string[] num = Console.ReadLine().Split(' '); a = int.Parse(num[0]); b = int.Parse(num[1]); d = a / b; r = a % b; f = (double)a / b; Console.Write(d + " " + r + " "); Console.WriteLine("{0:0.000000}", f); } }
      |                                                ^~~~~~
a.cc:1:57: error: expected ',' or '...' before 'args'
    1 | using System; class Program { static void Main(string[] args) { int a, b, d, r; double f; string[] num = Console.ReadLine().Split(' '); a = int.Parse(num[0]); b = int.Parse(num[1]); d = a / b; r = a % b; f = (double)a / b; Console.Write(d + " " + r + " "); Console.WriteLine("{0:0.000000}", f); } }
      |                                                         ^~~~
a.cc:1:299: error: expected ';' after class definition
    1 | using System; class Program { static void Main(string[] args) { int a, b, d, r; double f; string[] num = Console.ReadLine().Split(' '); a = int.Parse(num[0]); b = int.Parse(num[1]); d = a / b; r = a % b; f = (double)a / b; Console.Write(d + " " + r + " "); Console.WriteLine("{0:0.000000}", f); } }
      |                                                                                                                                                                                                                                                                                                           ^
      |                                                                                                                                                                                                                                                                                                           ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:1:91: error: 'string' was not declared in this scope
    1 | using System; class Program { static void Main(string[] args) { int a, b, d, r; double f; string[] num = Console.ReadLine().Split(' '); a = int.Parse(num[0]); b = int.Parse(num[1]); d = a / b; r = a % b; f = (double)a / b; Console.Write(d + " " + r + " "); Console.WriteLine("{0:0.000000}", f); } }
      |                                                                                           ^~~~~~
a.cc:1:98: error: expected primary-expression before ']' token
    1 | using System; class Program { static void Main(string[] args) { int a, b, d, r; double f; string[] num = Console.ReadLine().Split(' '); a = int.Parse(num[0]); b = int.Parse(num[1]); d = a / b; r = a % b; f = (double)a / b; Console.Write(d + " " + r + " "); Console.WriteLine("{0:0.000000}", f); } }
      |                                                                                                  ^
a.cc:1:141: error: expected primary-expression before 'int'
    1 | using System; class Program { static void Main(string[] args) { int a, b, d, r; double f; string[] num = Console.ReadLine().Split(' '); a = int.Parse(num[0]); b = int.Parse(num[1]); d = a / b; r = a % b; f = (double)a / b; Console.Write(d + " " + r + " "); Console.WriteLine("{0:0.000000}", f); } }
      |                                                                                                                                             ^~~
a.cc:1:164: error: expected primary-expression before 'int'
    1 | using System; class Program { static void Main(string[] args) { int a, b, d, r; double f; string[] num = Console.ReadLine().Split(' '); a = int.Parse(num[0]); b = int.Parse(num[1]); d = a / b; r = a % b; f = (double)a / b; Console.Write(d + " " + r + " "); Console.WriteLine("{0:0.000000}", f); } }
      |                                                                                                                                                                    ^~~
a.cc:1:224: error: 'Console' was not declared in this scope
    1 | using System; class Program { static void Main(string[] args) { int a, b, d, r; double f; string[] num = Console.ReadLine().Split(' '); a = int.Parse(num[0]); b = int.Parse(num[1]); d = a / b; r = a % b; f = (double)a / b; Console.Write(d + " " + r + " "); Console.WriteLine("{0:0.000000}", f); } }
      |                                                                                                                                                                                                                                ^~~~~~~
a.cc:1:250: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    1 | using System; class Program { static void Main(string[] args) { int a, b, d, r; double f; string[] num = Console.ReadLine().Split(' '); a = int.Parse(num[0]); b = int.Parse(num[1]); d = a / b; r = a % b; f = (double)a / b; Console.Write(d + " " + r + " "); Console.WriteLine("{0:0.000000}", f); } }
      |                                                                                                                                                                                                                                              ~~~~~~~~~~~ ^ ~~~
      |                                                                                                                                                                                                                                                      |     |
      |                                                                                                                                                                                                                                                      |     const char [2]
      |                                                                                                                                                                                                                                                      const char*