Main.cc:1:7: error: expected nested-name-specifier before ‘System’
using System;
^~~~~~
Main.cc:5:16: error: expected ‘:’ before ‘static’
public static void Main(string[] args){
^~~~~~
Main.cc:5:33: error: ‘string’ has not been declared
public static void Main(string[] args){
^~~~~~
Main.cc:5:42: error: expected ‘,’ or ‘...’ before ‘args’
public static void Main(string[] args){
^~~~
Main.cc:25:6: error: expected ‘;’ after class definition
}
^
;
Main.cc: In static member function ‘static void Questions::Program::Main(int*)’:
Main.cc:6:21: error: expected primary-expression before ‘int’
int n = int.Parse(Console.ReadLine());
^~~
Main.cc:9:25: error: expected primary-expression before ‘int’
int a = int.Parse(Console.ReadLine());
^~~
Main.cc:12:21: error: ‘Console’ was not declared in this scope
Console.WriteLine(1);
^~~~~~~
Main.cc:15:20: warning: decomposition declaration only available with -std=c++1z or -std=gnu++1z
int[] data = new int[a + 1];
^
Main.cc:15:20: error: decomposition declaration cannot be declared with type ‘int’
int[] data = new int[a + 1];
^~
Main.cc:15:20: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
Main.cc:15:20: error: empty decomposition declaration
Main.cc:15:23: error: expected initializer before ‘data’
int[] data = new int[a + 1];
^~~~
Main.cc:16:17: error: ‘data’ was not declared in this scope
data[1] = data[2] = 1;
^~~~
Main.cc:21:17: error: ‘Console’ was not declared in this scope
Console.WriteLine(data[a]);
^~~~~~~
Main.cc:23:13: error: ‘Console’ was not declared in this scope
Console.ReadKey();
^~~~~~~