foo.cc: In function 'bool cmp(std::string, std::string)':
foo.cc:10:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(int i=0;i<a.length();i++){
| ~^~~~~~~~~~~
foo.cc:11:20: error: 'z' was not declared in this scope
11 | if(z.find(a[i])>z.find(b[i])){
| ^
foo.cc:12:32: error: 'r' was not declared in this scope
12 | return r;
| ^
foo.cc:15:33: error: 'r' was not declared in this scope
15 | return !r;
| ^
foo.cc: In function 'int main()':
foo.cc:32:9: error: 'sort' was not declared in this scope; did you mean 'short'?
32 | sort(w,w+n);
| ^~~~
| short
[Hydro](https://hydro.ac)提供评测服务