Main.cc: In function 'int main()':
Main.cc:13:7: error: redeclaration of 'int m'
int m;
^
Main.cc:12:10: note: 'int m' previously declared here
for(int m=0;m<=k-1;m++){
^
Main.cc:4:11: warning: unused variable 'b' [-Wunused-variable]
int n,b=0;
^