foo.cc: In function 'int BFS()':
foo.cc:18:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | if (now.x==a.length()-1){
| ~~~~~^~~~~~~~~~~~~~
foo.cc:35:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | if (next.x<a.size()&&a[next.x]!=' '){
| ~~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:44:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
44 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务