Author
anonymous
about 4 years ago
Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Don't Use Boost
C++2a(GNU)
no pedantic
Author
anonymous
about 4 years ago
$ g++ prog.cc -Wall -Wextra -std=gnu++2a
prog.cc: In constructor 'JobEntry::JobEntry(int, int, std::string&, bool)':
prog.cc:11:72: error: expected '{' at end of input
11 | JobEntry(int pid, int jid, string &cmd, bool stopped) : pid(pid);
| ^
prog.cc:11:31: warning: unused parameter 'jid' [-Wunused-parameter]
11 | JobEntry(int pid, int jid, string &cmd, bool stopped) : pid(pid);
| ~~~~^~~
prog.cc:11:44: warning: unused parameter 'cmd' [-Wunused-parameter]
11 | JobEntry(int pid, int jid, string &cmd, bool stopped) : pid(pid);
| ~~~~~~~~^~~
prog.cc:11:54: warning: unused parameter 'stopped' [-Wunused-parameter]
11 | JobEntry(int pid, int jid, string &cmd, bool stopped) : pid(pid);
| ~~~~~^~~~~~~
Exit Code:
1