/ CYOJ /

记录详情

Compile Error

Compilation failed: 7 error(s), 1 warnings

/w/foo.cs(2,0): error CS1024: Wrong preprocessor directive
/w/foo.cs(2,6): error CS1525: Unexpected symbol `namespace', expecting `identifier' or `static'
/w/foo.cs(2,19): error CS1525: Unexpected symbol `;', expecting `identifier' or `static'
/w/foo.cs(4,4): error CS1525: Unexpected symbol `int', expecting `identifier' or `static'
/w/foo.cs(4,10): error CS1514: Unexpected symbol `[', expecting `.' or `{'
/w/foo.cs(4,11): warning CS0658: `value' is invalid attribute target. All attributes in this attribute section will be ignored
/w/foo.cs(4,23): error CS1518: Attributes must be attached to class, delegate, enum, interface or struct
/w/foo.cs(4,22): error CS1525: Unexpected symbol `}', expecting `identifier' or `static'
Found 4 testcases.
[Hydro](https://hydro.ac)提供评测服务

代码

#include<bits/stdc++.h>
using namespace std;
int main() {
    int a[22] = {0,1,1};
    for(int i = 3;i <= 20;i++) {
        a[i] = a[i - 1] + a[i - 2];
    }
    int b;
    cin>>b;
    cout<<a[b];
}

信息

递交者
类型
递交
题目
P1010 斐波那契数列求数
语言
C#
递交时间
2022-08-25 09:19:01
评测时间
2022-08-29 17:36:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes