/ 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 5253:300720128, expect 0:0. 1ms 384.0 KiB
#2 Wrong Answer Read 5422:-166572030, expect 11:3. 5ms 384.0 KiB
#3 Wrong Answer Read 5384:985542660, expect 11:4. 2ms 384.0 KiB
#4 Wrong Answer Read 5351:81580037, expect 10:12. 6ms 384.0 KiB
#5 Wrong Answer Read 5241:709865477, expect 11:8. 3ms 384.0 KiB
#6 Wrong Answer Read 5228:-1863176192, expect 11:0. 12ms 512.0 KiB
#7 Wrong Answer Read 5456:-1537138677, expect 0:11. 5ms 384.0 KiB
#8 Wrong Answer Read 5431:-127520768, expect 11:0. 2ms 384.0 KiB
#9 Wrong Answer Read 5235:189456389, expect 148:148. 2ms 384.0 KiB
#10 Wrong Answer Read 5288:-331194368, expect 11:0. 2ms 384.0 KiB

信息

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