Main.cc: In function 'int main()': Main.cc:8:8: error: expected primary-expression before '.' token cin>>.a; ^ Main.cc:11:19: error: 'i' was not declared in this scope for(int j=1;j<=n;i++){ ^