Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

gcc HEAD 11.0.0 20200917 (experimental)

Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
Raw compiler options
-std=c++20

Author

anonymous

over 4 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a -std=c++20
prog.cc: In constructor 'List::List()':
prog.cc:53:17: warning: unused variable 'size' [-Wunused-variable]
   53 |             int size = 0;
      |                 ^~~~
prog.cc: In member function 'bool List::next()':
prog.cc:85:46: warning: statement has no effect [-Wunused-value]
   85 |             if(currentNode == nullptr)  false;
      |                                              ^
prog.cc: In member function 'int List::get()':
prog.cc:82:9: warning: control reaches end of non-void function [-Wreturn-type]
   82 |         }
      |         ^

Element: 5

Element: 13

Element: 4

Element: 8

Element: 48

Element: 12

BACK

Element: 12

Element: 48

Element: 8

Element: 4

Element: 13

Element: 5
Exit Code:
0