0_0_38399759_9409.cpp:9:5: error: redefinition of 'int n' int n,M,tot=0,row,col,keyn; ^ 0_0_38399759_9409.cpp:4:5: note: 'int n' previously declared here int n,m,p,k; ^