/ WHOJ /

记录详情

Wrong Answer

foo.cc: In function 'std::string StopFight(std::string)':
foo.cc:10:10: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   10 |  if(index!=string::npos)
      |     ~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:38:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wformat=]
   38 |  printf("%d",queue.length());
      |          ~^  ~~~~~~~~~~~~~~
      |           |              |
      |           int            std::__cxx11::basic_string<char>::size_type {aka long unsigned int}
      |          %ld
foo.cc:35:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   35 |  scanf("%*d\n");
      |  ~~~~~^~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 396.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Wrong Answer Read 3, expect 2. 1ms 384.0 KiB
#7 Wrong Answer Read 5, expect 2. 1ms 384.0 KiB
#8 Wrong Answer Read 22772, expect 3. 2ms 512.0 KiB
#9 Accepted 351ms 156.117 MiB
#10 Wrong Answer Read 7082, expect 3. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1413 争执
题目数据
下载
语言
C++
递交时间
2022-07-27 16:54:42
评测时间
2022-07-27 16:54:42
评测机
分数
60
总耗时
371ms
峰值内存
156.117 MiB