Problem fibo
User lyangela
Submission Time 2024-06-20 14:41:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp:7:12: error: array bound is not an integer constant before ‘]’ token
7 | int dp[MAXN];
| ^
fibo.cpp: In function ‘long long int fibo(long long int)’:
fibo.cpp:10:5: error: ‘dp’ was not declared in this scope
10 | if(dp[i] != -1){
| ^~
fibo.cpp:16:2: error: ‘dp’ was not declared in this scope
16 | dp[i] = ans;
| ^~
fibo.cpp: In function ‘int main()’:
fibo.cpp:21:7: error: ‘dp’ was not declared in this scope
21 | fill(dp, dp+MAXN, -1);
| ^~