记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%[^\n] %[^\n]",s1,s2);
  ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:13:14: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<cnt2<<" "; 
              ^~~
foo.cc:11:14: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<cnt1<<" "; 
              ^~~
foo.cc: In function 'int length(char*)':
foo.cc:21:9: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return cnt;
         ^~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer Read -2142856588, expect 19. 2ms 384.0 KiB
#2 Wrong Answer Read 1299036807, expect 38. 2ms 384.0 KiB
#3 Wrong Answer Read 1982839433, expect 40. 2ms 384.0 KiB
#4 Wrong Answer Read 1685834417, expect 80. 2ms 384.0 KiB
#5 Wrong Answer Read 477768449, expect 160. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
A8-1 字符串的输出函数
比赛
2020苏青奥赛集训营(2021-3-28课后作业)
语言
C++
递交时间
2021-03-29 08:25:43
评测时间
2021-03-29 08:25:43
评测机
分数
0
总耗时
12ms
峰值内存
384.0 KiB