Main.cc: In function ‘int main()’:
Main.cc:13:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(int i = 1;i <= n;i++)
^~~
Main.cc:15:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
cout << a[i] << endl;
^~~~
Main.cc:15:13: error: ‘i’ was not declared in this scope
cout << a[i] << endl;
^
Main.cc: At global scope:
Main.cc:17:2: error: expected unqualified-id before ‘return’
return 0;
^~~~~~
Main.cc:18:1: error: expected declaration before ‘}’ token
}
^