Main.cc: In function 'int main()':
Main.cc:5:4: error: expected ';' before 'int'
int n;
^
Main.cc:5:9: warning: statement has no effect [-Wunused-value]
int n;
^
Main.cc:6:9: error: 'n' was not declared in this scope
cin>>n;
^