new.cpp:124:2: error: expected ‘;’ after class definition 124 | } | ^ | ; new.cpp: In member function ‘void Uptime::print_uptime()’: new.cpp:56:2: error: ‘affiche’ was not declared in this scope 56 | affiche("up"); | ^~~~~~~ new.cpp: In member function ‘void Uptime::print_idletime()’: new.cpp:91:2: error: ‘affiche’ was not declared in this scope 91 | affiche("idle"); | ^~~~~~~ new.cpp: At global scope: new.cpp:128:1: error: expected declaration before ‘}’ token 128 | } | ^ new.cpp:135:1: error: expected unqualified-id before ‘private’ 135 | private void affiche(string x) { | ^~~~~~~ new.cpp:144:1: error: expected declaration before ‘}’ token 144 | }; | ^ new.cpp: In function ‘int main()’: new.cpp:147:1: error: ‘uptime’ was not declared in this scope; did you mean ‘Uptime’? 147 | uptime UPTIME; | ^~~~~~ | Uptime new.cpp:149:1: error: ‘UPTIME’ was not declared in this scope; did you mean ‘ETIME’? 149 | UPTIME.print_uptime(); | ^~~~~~ | ETIME