/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'std::string work(std::string)':
foo.cc:15:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   15 |   for(int j=0;j<s[i].length();j++) {
      |               ~^~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:36:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   36 |  while(i<str.length()-1) {
      |        ~^~~~~~~~~~~~~~~
foo.cc:39:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   39 |    while(i<str.length()-1&&str[i]==' ') i++;
      |          ~^~~~~~~~~~~~~~~
foo.cc:42:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   42 |   while(i<str.length()-1&&str[i]==' ') i++;
      |         ~^~~~~~~~~~~~~~~
foo.cc:44:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   44 |   while(i<str.length()-1&&str[i]!=' '&&str[i]!='!') {
      |         ~^~~~~~~~~~~~~~~
foo.cc:52:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   52 |  for(int i=0;i<res.size()-1;i++) cout<<res[i]<<" ";
      |              ~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Wrong Answer Read none, expect None. 2ms 384.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 6ms 384.0 KiB
#5 Wrong Answer Read who, expect Who. 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1419 Dejected Birthday-替身
语言
C++
递交时间
2022-01-16 20:25:58
评测时间
2022-01-16 20:25:58
评测机
分数
60
总耗时
18ms
峰值内存
384.0 KiB