Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a
Exit Code:
0
Author
anonymous
over 4 years ago
C++
gcc 10.1.0
Author
anonymous
over 4 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a
prog.cc: In member function 'double Profit::SellAt(std::string&)':
prog.cc:17:1: warning: no return statement in function returning non-void [-Wreturn-type]
17 | }
| ^
prog.cc:14:31: warning: unused parameter 'stName' [-Wunused-parameter]
14 | double Profit::SellAt(string& stName)
| ~~~~~~~~^~~~~~