Problem fibo_easy
User Cat
Submission Time 2025-04-16 16:32:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo_easy.cpp: In function ‘int main()’:
fibo_easy.cpp:4:11: error: expected ‘]’ before ‘,’ token
4 | int a [ 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181];
| ^
| ]
fibo_easy.cpp:4:13: error: expected unqualified-id before numeric constant
4 | int a [ 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181];
| ^
fibo_easy.cpp:7:10: error: ‘a’ was not declared in this scope
7 | cout << a[n];
| ^