Main.cc: In function ‘int main()’: Main.cc:8:15: error: ‘k’ was not declared in this scope int sum=0;k=1; ^