/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:10:16: 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<tmp.size();i++)
      |               ~^~~~~~~~~~~
foo.cc:25:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   25 |  for(int i=0;i<s.size();i++)
      |              ~^~~~~~~~~
foo.cc:40:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   40 |  for(int i=0;i<s.size();i++)
      |              ~^~~~~~~~~
foo.cc:23:6: warning: unused variable 'num' [-Wunused-variable]
   23 |  int num;
      |      ^~~
foo.cc:36:16: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
   36 |  cout<<a<<":"<<b<<endl;
      |                ^
foo.cc:36:11: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
   36 |  cout<<a<<":"<<b<<endl;
      |           ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 5303:-1229705216, expect 0:0. 2ms 256.0 KiB
#2 Wrong Answer Read 5284:-287563774, expect 11:3. 2ms 384.0 KiB
#3 Wrong Answer Read 5300:-2023047164, expect 11:4. 3ms 384.0 KiB
#4 Wrong Answer Read 5280:-920334331, expect 10:12. 3ms 512.0 KiB
#5 Wrong Answer Read 5458:784756741, expect 11:8. 3ms 384.0 KiB
#6 Wrong Answer Read 5400:1963958272, expect 11:0. 13ms 512.0 KiB
#7 Wrong Answer Read 5347:-1309994997, expect 0:11. 6ms 384.0 KiB
#8 Wrong Answer Read 5412:-1652346880, expect 11:0. 1ms 384.0 KiB
#9 Wrong Answer Read 5430:88440837, expect 148:148. 1ms 384.0 KiB
#10 Wrong Answer Read 5431:1494130688, expect 11:0. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C++
递交时间
2022-07-14 18:10:43
评测时间
2022-07-14 18:10:43
评测机
分数
0
总耗时
40ms
峰值内存
512.0 KiB