Problem 4russians
User ainunnajib
Submission Time 2024-07-02 20:58:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

4russians.cpp:5:1: error: ‘dp’ does not name a type
5 | dp[5005][5005][2];
| ^~
4russians.cpp: In function ‘long long int traverse(int, int, int)’:
4russians.cpp:12:6: error: ‘dp’ was not declared in this scope
12 | if (dp[i][j][l] != -1)
| ^~
4russians.cpp:21:2: error: ‘dp’ was not declared in this scope
21 | dp[i][j][l] = 0;
| ^~
4russians.cpp: In function ‘int main()’:
4russians.cpp:47:9: error: ‘dp’ was not declared in this scope
47 | memset(dp, -1, sizeof(dp));
| ^~