/ Vijos /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1500 笨笨的单词排序
语言
C++
递交时间
2023-08-15 16:25:15
评测时间
2023-08-15 16:25:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes