记录详情

Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:15:10: warning: statement has no effect [-Wunused-value]
   15 |     for (k1; k1<=k2; k1++)
      |          ^~
foo.cc:17:16: warning: ‘sum’ may be used uninitialized [-Wmaybe-uninitialized]
   17 |             sum+=k1;
      |             ~~~^~~~
foo.cc:13:16: note: ‘sum’ was declared here
   13 |     int k1, k2,sum;
      |                ^~~
# 状态 耗时 内存占用
#1 Wrong Answer Read 19, expect 18. 3ms 320.0 KiB

信息

递交者
类型
自测
题目
1-2 斐波那契数列的和
语言
C++
递交时间
2024-08-20 03:28:13
评测时间
2024-08-20 03:28:13
评测机
分数
0
总耗时
3ms
峰值内存
320.0 KiB