foo.cc: In function 'int main()':
foo.cc:22:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | while (j < s.length() && s[j] == ' ')
| ~~^~~~~~~~~~~~
foo.cc:24:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | if (j >= s.length() - 1 || s[j] != '#' || s[++j] != ' ')
| ~~^~~~~~~~~~~~~~~~~
foo.cc:26:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | while (j < s.length() && s[j] == ' ')
| ~~^~~~~~~~~~~~
foo.cc:28:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | if (j >= s.length())
| ~~^~~~~~~~~~~~~
正在同步测试数据,请稍后
Found 5 testcases.
[Hydro](https://hydro.ac)提供评测服务