0_0_18262609_8548.cpp: In function 'int main()': 0_0_18262609_8548.cpp:4:18: error: redeclaration of 'int q' int i,w,q,n,m,s,q; ^ 0_0_18262609_8548.cpp:4:10: note: 'int q' previously declared here int i,w,q,n,m,s,q; ^