0_0_18939449_1188.cpp: In function 'int main()': 0_0_18939449_1188.cpp:158:7: error: redeclaration of 'int ans' int ans = 0; ^ 0_0_18939449_1188.cpp:142:7: note: 'int ans' previously declared here int ans = 0; ^