Main.cc: In function 'int main()': Main.cc:6:5: error: expected initializer before 'cin' cin>>c; ^ Main.cc:14:5: error: 'a' was not declared in this scope a[1]=1; ^ Main.cc:4:9: warning: unused variable 'b' [-Wunused-variable] int b,c,k[1001],max=0; ^