Main.cc: In function ‘int main()’: Main.cc:12:9: error: redeclaration of ‘int t’ int t=l/60; ^ Main.cc:10:9: note: ‘int t’ previously declared here int t=c*60+d; ^