Main.cc: In function 'int main()': Main.cc:7:2: error: expected initializer before 'cin' cin>>n; ^ Main.cc:8:12: error: 'n' was not declared in this scope cout<<1+2*n*n; ^