Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

gcc 10.1.0

Options
Warnings
Don't Use Boost
C++2a
no pedantic

Author

anonymous

over 4 years ago

$ g++ prog.cc -Wall -Wextra -std=c++2a
prog.cc: In function 'std::vector<unsigned char> hex_decode(std::string)':
prog.cc:13:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |   for (int i = 0; i < input.length(); i+=2) {
      |                   ~~^~~~~~~~~~~~~~~~
prog.cc:17:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |   for (int i = 0; i < input.length(); i+=2) {
      |                   ~~^~~~~~~~~~~~~~~~
prog.cc:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
   27 | }
      | ^
prog.cc: In function 'int main(int, char**)':
prog.cc:30:14: warning: unused parameter 'argc' [-Wunused-parameter]
   30 | int main(int argc, char** argv) {
      |          ~~~~^~~~
prog.cc:30:27: warning: unused parameter 'argv' [-Wunused-parameter]
   30 | int main(int argc, char** argv) {
      |                    ~~~~~~~^~~~
Signal:
Segmentation fault