Main.cc: In function ‘int main()’: Main.cc:5:12: error: ‘c’ was not declared in this scope cin>>k>>n,c=0; ^