0_0_32421591_7195.cpp: In function 'int main()': 0_0_32421591_7195.cpp:66:7: error: redeclaration of 'int ans' int ans = 0; ^ 0_0_32421591_7195.cpp:64:7: note: 'int ans' previously declared here int ans = 0; ^