Language
C++
Compiler
gcc HEAD 9.0.0 20180523 (experimental)
Options
Warnings
Boost 1.67.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/gcc-head/include -std=gnu++2a
hola
10
Exit Code:
0
Author
anonymous
almost 7 years ago
C++
gcc HEAD 9.0.0 20180523 (experimental)
Author
anonymous
almost 7 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'bool operator<(const int&, const string&)':
prog.cc:15:14: warning: comparison of integer expressions of different signedness: 'const int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
return i < s.length();
~~^~~~~~~~~~~~
hola
10