/ 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 5236:962871296, expect 0:0. 4ms 384.0 KiB
#2 Wrong Answer Read 5364:1414017026, expect 11:3. 4ms 384.0 KiB
#3 Wrong Answer Read 5409:-986976252, expect 11:4. 5ms 384.0 KiB
#4 Wrong Answer Read 5254:1267351557, expect 10:12. 3ms 384.0 KiB
#5 Wrong Answer Read 5270:690720773, expect 11:8. 4ms 384.0 KiB
#6 Wrong Answer Read 5438:1907544064, expect 11:0. 31ms 512.0 KiB
#7 Wrong Answer Read 5261:-189591541, expect 0:11. 21ms 384.0 KiB
#8 Wrong Answer Read 5315:1796603904, expect 11:0. 4ms 384.0 KiB
#9 Wrong Answer Read 5306:175058949, expect 148:148. 3ms 384.0 KiB
#10 Wrong Answer Read 5394:-713936896, expect 11:0. 3ms 384.0 KiB

信息

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