/ 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 5450:1590984704, expect 0:0. 2ms 384.0 KiB
#2 Wrong Answer Read 5317:-154718206, expect 11:3. 3ms 384.0 KiB
#3 Wrong Answer Read 5323:-544018428, expect 11:4. 2ms 384.0 KiB
#4 Wrong Answer Read 5386:-2043432955, expect 10:12. 3ms 384.0 KiB
#5 Wrong Answer Read 5338:1131757573, expect 11:8. 5ms 384.0 KiB
#6 Wrong Answer Read 5222:-1319886848, expect 11:0. 12ms 532.0 KiB
#7 Wrong Answer Read 5408:-482041845, expect 0:11. 6ms 512.0 KiB
#8 Wrong Answer Read 5352:-1898381312, expect 11:0. 2ms 640.0 KiB
#9 Wrong Answer Read 5264:-1546510331, expect 148:148. 2ms 384.0 KiB
#10 Wrong Answer Read 5279:1014226944, expect 11:0. 1ms 384.0 KiB

信息

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