Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 6 years ago

Language

C++

Compiler

gcc 8.3.0

Options
Warnings
Boost 1.69.0
C++17
no pedantic
Raw compiler options
-Wall

Author

anonymous

almost 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-8.3.0/include -std=c++17 -Wall
prog.cc: In function 'bool eval(std::__cxx11::string, std::__cxx11::string)':
prog.cc:6:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
     for(int i = 0; i < p.length(); i++) {
                    ~~^~~~~~~~~~~~
prog.cc:53:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
     if(j < s.length()) return false;
        ~~^~~~~~~~~~~~
0
Exit Code:
0