Language
C++
Compiler
gcc 9.1.0
Options
Warnings
Boost 1.70.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-9.1.0/include -std=gnu++2a Signal:
Killed
Author
anonymous
over 6 years ago
C++
gcc 9.1.0
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-9.1.0/include -std=gnu++2a prog.cc: In function 'long int repeatedString(std::string, long int)':
prog.cc:17:22: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
17 | if (s.size() >= n)
| ~~~~~~~~~^~~~
prog.cc:21:29: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for (long long i = 0; i < s.size(); i++)
| ~~^~~~~~~~~~