记录详情

Wrong Answer

foo.cc: In function 'std::__cxx11::string yasuo(std::__cxx11::string)':
foo.cc:11:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=1;i<str1.length();i++)
               ~^~~~~~~~~~~~~~
foo.cc:16:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(i== str1.length()-1)str2 = str2 + to_string(j);
       ~^~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:29:19: warning: unused variable 'ans' [-Wunused-variable]
  char s[1000]={0},ans[1000]={0};
                   ^~~
foo.cc:30:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%s",s); 
     ~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read S2B2I2S2W2X2J3, expect 2S2B2I2S2W2X3J. 1ms 324.0 KiB

信息

递交者
类型
递交
题目
P1041 函数2(字符串1)
比赛
周末测试
语言
C++
递交时间
2021-11-03 20:40:36
评测时间
2021-11-03 20:40:36
评测机
分数
0
总耗时
1ms
峰值内存
324.0 KiB