记录详情

Wrong Answer

foo.cc: In function 'int shu(char*)':
foo.cc:21:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=0;s[i]!=0 ;i++)
  ^~~
foo.cc:24:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   if( (s[i]>='A' && s[i]<='Z'))
   ^~
foo.cc:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
foo.cc: In function 'int main()':
foo.cc:13:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%[^\n] %[^\n]",s1,s2);
    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Wrong Answer Read -27, expect -26. 1ms 384.0 KiB
#3 Wrong Answer Read -29, expect -28. 1ms 384.0 KiB
#4 Wrong Answer Read -59, expect -56. 1ms 384.0 KiB
#5 Wrong Answer Read -119, expect -112. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
A8-3 字符串的统计函数
比赛
2020苏青奥赛集训营(2021-3-28课后作业)
语言
C++
递交时间
2021-03-29 22:01:34
评测时间
2021-03-29 22:01:34
评测机
分数
20
总耗时
9ms
峰值内存
384.0 KiB