0_0_36404771_20654.cpp: In function 'int main()': 0_0_36404771_20654.cpp:193:8: error: redeclaration of 'int lenNow' int lenNow = 0; ^ 0_0_36404771_20654.cpp:192:17: note: 'int lenNow' previously declared here int lenNow = query1(1, 1, m, yyy); ^