/in/foo.cc:28:2: error: expected '}' at end of input
28 | }
| ^
/in/foo.cc:4:11: note: to match this '{'
4 | class Time{
| ^
/in/foo.cc: In constructor 'Time::Time(int, int, int)':
/in/foo.cc:9:61: error: expected ';' before '}' token
9 | {cout<<"Time:"<<hour<<":"<<minute<<":"<<second<<endl}
| ^
/in/foo.cc: In destructor 'Time::~Time()':
/in/foo.cc:11:61: error: expected ';' before '}' token
11 | {cout<<"~Time"<<hour<<":"<<minute<<":"<<second<<endl}
| ^
/in/foo.cc: In member function 'void Time::print() const':
/in/foo.cc:13:52: error: expected ';' before '}' token
13 | {cout<<hour<<":"<<minute<<":"<<second<<endl}
| ^
/in/foo.cc: In member function 'int Time::main()':
/in/foo.cc:19:20: error: 'm2' was not declared in this scope; did you mean 'm1'?
19 | Time t1(h1,m2,s1);
| ^~
| m1
/in/foo.cc: At global scope:
/in/foo.cc:28:2: error: expected unqualified-id at end of input
28 | }
| ^