0_0_29718191_6433.cpp: In function 'int main()': 0_0_29718191_6433.cpp:32:6: error: redeclaration of 'int s' int s = h * 3600 + m * 60 + s; ^ 0_0_29718191_6433.cpp:28:12: note: 'int s' previously declared here int h, m, s; ^