Problem localexpress
User PlayVoltz
Submission Time 2023-09-05 01:31:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

localexpress.cpp:8:62: error: expected ‘,’ or ‘...’ before ‘dp’
8 | int localexpress(int index, int count, int[1000000][1000000] dp){
| ^~
localexpress.cpp: In function ‘int localexpress(int, int, int (*)[1000000])’:
localexpress.cpp:12:6: error: ‘dp’ was not declared in this scope
12 | if (dp[index][count]!=-1){
| ^~
localexpress.cpp:17:39: error: ‘dp’ was not declared in this scope
17 | sum+=localexpress(index+1, count+1, dp);
| ^~
localexpress.cpp:19:32: error: ‘dp’ was not declared in this scope
19 | sum+=localexpress(index+1, 0, dp);
| ^~
localexpress.cpp: In function ‘int main()’:
localexpress.cpp:33:27: error: cannot convert ‘int (*)[k]’ to ‘int (*)[1000000]’
33 | cout<<localexpress(1, 1, dp);
| ^~
|