记录详情

Wrong Answer

foo.cc: In function 'void Test1()':
foo.cc:11:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |  for(i=0;i<s.length();i++){
      |          ~^~~~~~~~~~~
foo.cc:17:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |  for(j=i+1;j<s.length();j++){
      |            ~^~~~~~~~~~~
foo.cc:26:6: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   26 |  if(k==s2.length())
      |     ~^~~~~~~~~~~~~
foo.cc:28:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |  else if(k>s2.length()){
      |          ~^~~~~~~~~~~~
foo.cc:8:9: warning: unused variable 'a' [-Wunused-variable]
    8 |  double a;
      |         ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 15:, expect 159. 2ms 384.0 KiB
#2 Accepted 4ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1305 B. Round Decimal
比赛
2021年互联网创新创业科技节程序设计大赛
语言
C++
递交时间
2021-12-23 18:05:18
评测时间
2021-12-23 18:05:18
评测机
分数
70
总耗时
12ms
峰值内存
384.0 KiB