/ Vijos /

记录详情

Compile Error

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

信息

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