/in/foo.cc:18:13: error: expected ':' before 'show'
18 | private show() const {
| ^~~~~
| :
/in/foo.cc:18:14: error: ISO C++ forbids declaration of 'show' with no type [-fpermissive]
18 | private show() const {
| ^~~~
/in/foo.cc: In member function 'int Time::show() const':
/in/foo.cc:20:5: warning: no return statement in function returning non-void [-Wreturn-type]
20 | }
| ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:28:11: error: 'int Time::show() const' is private within this context
28 | t.show();
| ~~~~~~^~
/in/foo.cc:18:14: note: declared private here
18 | private show() const {
| ^~~~