Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C++

Compiler

gcc 8.2.0

Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic

Author

anonymous

almost 7 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-8.2.0/include -std=gnu++2a
prog.cc: In constructor 'MyClass::MyClass(double)':
prog.cc:8:20: warning: unused parameter 'd' [-Wunused-parameter]
     MyClass(double d) {
             ~~~~~~~^
prog.cc: In constructor 'MyClass::MyClass(double, double)':
prog.cc:11:20: warning: unused parameter 'd1' [-Wunused-parameter]
     MyClass(double d1, double d2) {
             ~~~~~~~^~
prog.cc:11:31: warning: unused parameter 'd2' [-Wunused-parameter]
     MyClass(double d1, double d2) {
                        ~~~~~~~^~
prog.cc: In function 'int main()':
prog.cc:17:22: warning: left operand of comma operator has no effect [-Wunused-value]
     std::cout << (1, 2, 3, 4) << "\n";
                      ^
prog.cc:17:25: warning: right operand of comma operator has no effect [-Wunused-value]
     std::cout << (1, 2, 3, 4) << "\n";
                         ^
prog.cc:17:28: warning: right operand of comma operator has no effect [-Wunused-value]
     std::cout << (1, 2, 3, 4) << "\n";
                            ^
prog.cc:20:16: warning: left operand of comma operator has no effect [-Wunused-value]
     c1 = (0.5, 0.5);
                ^~~
4
引数なし
引数なし
引数なし
引数は一つ
引数は二つ
引数は一つ
Exit Code:
0