Main.cc: In function 'int main()': Main.cc:8:5: error: expected initializer before 'cin' cin>>n; ^ Main.cc:22:5: error: 'b6' was not declared in this scope b6=(a1+a2+a3+a4+a5)%10; ^