记录详情

Wrong Answer

foo.cc: In function 'int zifu(char*)':
foo.cc:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
foo.cc: In function 'int main()':
foo.cc:9:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%[^\n] %[^\n]",s1,s2);
    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int zifu(char*)':
foo.cc:18:10: warning: 'i' is used uninitialized in this function [-Wuninitialized]
  for(;s[i]!=0 ;i++)
          ^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer Read 9, expect -13. 1ms 384.0 KiB
#2 Wrong Answer Read 17, expect -26. 1ms 384.0 KiB
#3 Wrong Answer Read 17, expect -28. 1ms 384.0 KiB
#4 Wrong Answer Read 33, expect -56. 1ms 384.0 KiB
#5 Wrong Answer Read 65, expect -112. 2ms 384.0 KiB

信息

递交者
类型
递交
比赛
2020苏青奥赛集训营(2021-3-28课后作业)
语言
C++
递交时间
2021-03-30 14:09:34
评测时间
2021-03-30 14:09:34
评测机
分数
0
总耗时
9ms
峰值内存
384.0 KiB