/ 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 5414:2143707136, expect 0:0. 1ms 384.0 KiB
#2 Wrong Answer Read 5464:-423411710, expect 11:3. 2ms 384.0 KiB
#3 Wrong Answer Read 5455:246636548, expect 11:4. 2ms 384.0 KiB
#4 Wrong Answer Read 5423:729739269, expect 10:12. 2ms 384.0 KiB
#5 Wrong Answer Read 5323:737607685, expect 11:8. 4ms 384.0 KiB
#6 Wrong Answer Read 5387:2088161280, expect 11:0. 14ms 512.0 KiB
#7 Wrong Answer Read 5298:1379889163, expect 0:11. 7ms 384.0 KiB
#8 Wrong Answer Read 5224:630214656, expect 11:0. 2ms 384.0 KiB
#9 Wrong Answer Read 5427:1395875845, expect 148:148. 1ms 384.0 KiB
#10 Wrong Answer Read 5341:-1458397184, expect 11:0. 2ms 384.0 KiB

信息

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