0_0_36910753_24956.cpp: In function 'void solve()': 0_0_36910753_24956.cpp:58:6: error: redeclaration of 'int cnt' int cnt = 2 * n - m; ^ 0_0_36910753_24956.cpp:41:6: note: 'int cnt' previously declared here int cnt = 0; ^