0_0_33276845_25548.cpp: In function 'int main()': 0_0_33276845_25548.cpp:27:7: error: redeclaration of 'int ans' int ans = 0; ^ 0_0_33276845_25548.cpp:17:7: note: 'int ans' previously declared here int ans = 0; ^