Main.cc: In function 'int main()':
Main.cc:5:9: error: expected ';' before 'n'
cin n;
^
Main.cc:5:10: warning: statement has no effect [-Wunused-value]
cin n;
^
Main.cc:10:10: error: 'i' was not declared in this scope
cout << i << endl;
^
Main.cc:10:19: error: expected '}' at end of input
cout << i << endl;
^