Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20190121 (experimental)

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

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'std::string* fs(const char*)':
prog.cc:7:19: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
    7 |     for(int i=0; i<strlen(tab); i++){
      |                  ~^~~~~~~~~~~~
prog.cc:10:12: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
   10 |     return s;
      |            ^
0x402df0
Exit Code:
0