Main.cc: In function 'int main()': Main.cc:12:7: error: expected ';' before 'int' int t=sum2%k; ^ Main.cc:13:12: error: 't' was not declared in this scope sum2=t; ^