0_0_34616619_29344.cpp: In function 'void solve()': 0_0_34616619_29344.cpp:41:8: error: redeclaration of 'int cow' int cow = min(pre, i, cmp); ^ 0_0_34616619_29344.cpp:27:8: note: 'int cow' previously declared here int cow=i; ^