Main.cc: In function ‘int main()’: Main.cc:10:12: error: expected ‘;’ before ‘)’ token cin>>a[i]); ^ Main.cc:12:6: error: ‘i’ was not declared in this scope for(i=0;i