Main.cc: In function ‘int main()’:
Main.cc:8:10: error: expected unqualified-id before numeric constant
for(int 1-2;i<=n-1;i++){
^
Main.cc:8:10: error: expected ‘;’ before numeric constant
Main.cc:8:14: error: ‘i’ was not declared in this scope
for(int 1-2;i<=n-1;i++){
^
Main.cc:8:20: error: expected ‘)’ before ‘;’ token
for(int 1-2;i<=n-1;i++){
^
Main.cc:8:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(int 1-2;i<=n-1;i++){
^~~
Main.cc:8:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
for(int 1-2;i<=n-1;i++){
^
Main.cc:8:21: error: ‘i’ was not declared in this scope