Problem fibo
User wtnetlegend
Submission Time 2025-01-31 10:39:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp:4:1: error: ‘cin’ does not name a type
4 | cin >> n;
| ^~~
fibo.cpp:5:16: error: array bound is not an integer constant before ‘]’ token
5 | long long a[n+1];
| ^
fibo.cpp: In function ‘int main()’:
fibo.cpp:7:2: error: ‘a’ was not declared in this scope
7 | a[0] = 0;
| ^
fibo.cpp:9:18: error: expected primary-expression before ‘<’ token
9 | for (int i=2; i=< n; i++) {
| ^
fibo.cpp:12:7: error: ‘i’ was not declared in this scope
12 | for (i=0; i=< n; i++) {
| ^
fibo.cpp:12:14: error: expected primary-expression before ‘<’ token
12 | for (i=0; i=< n; i++) {
| ^