/in/foo.cc: In member function 'bool time::operator==(time)':
/in/foo.cc:14:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(h==t2.h&&m==t2.m&&s==t2.s)
^~
/in/foo.cc:16:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
return false;
^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:44:7: error: expected ';' before 't1'
time t1(h1,m1,s1);
^~
/in/foo.cc:44:19: warning: statement is a reference, not call, to function 'time' [-Waddress]
time t1(h1,m1,s1);
^
/in/foo.cc:44:19: warning: statement has no effect [-Wunused-value]
/in/foo.cc:45:7: error: expected ';' before 't2'
time t2(h2,m2,s2);
^~
/in/foo.cc:45:19: warning: statement is a reference, not call, to function 'time' [-Waddress]
time t2(h2,m2,s2);
^
/in/foo.cc:45:19: warning: statement has no effect [-Wunused-value]
/in/foo.cc:46:10: error: 't1' was not declared in this scope
while(!(t1==t2))
^~
/in/foo.cc:46:14: error: 't2' was not declared in this scope
while(!(t1==t2))
^~