记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(n==1)  
  ^~
foo.cc:9:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   if(n==2)
   ^~
foo.cc:11:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(n>=3)
  ^~
foo.cc:13:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   for(z=3;z<=n;z++)
   ^~~
foo.cc:6:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 0ms 256.0 KiB
#2 Wrong Answer Standard answer longer than user output. 0ms 256.0 KiB
#3 Wrong Answer Standard answer longer than user output. 0ms 256.0 KiB
#4 Wrong Answer Standard answer longer than user output. 0ms 256.0 KiB
#5 Wrong Answer Standard answer longer than user output. 0ms 256.0 KiB

信息

递交者
类型
递交
题目
A2-2 循环结构入门:斐波拉契数列
比赛
中北 计算机2021级专业修读指导(1)
语言
C++
递交时间
2021-11-30 18:59:22
评测时间
2021-11-30 18:59:22
评测机
分数
0
总耗时
3ms
峰值内存
256.0 KiB