/in/foo.cc: In function 'std::string mod_pow(std::string, int, int)':
/in/foo.cc:35:31: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
35 | if (result.size() > mod) {
| ~~~~~~~~~~~~~~^~~~~
/in/foo.cc:40:22: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
40 | if (n.size() > mod) {
| ~~~~~~~~~^~~~~
/in/foo.cc: In function 'int find_cycle_length(const std::string&, int)':
/in/foo.cc:55:24: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
55 | if (current.size() > k) {
| ~~~~~~~~~~~~~~~^~~
/in/foo.cc:58:31: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
58 | while (current.size() < k) {
| ~~~~~~~~~~~~~~~^~~
/in/foo.cc:68:28: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
68 | if (current.size() > k) {
| ~~~~~~~~~~~~~~~^~~
/in/foo.cc:71:35: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
71 | while (current.size() < k) {
| ~~~~~~~~~~~~~~~^~~