Problem subknapsack
User PerihelionfromAphelion
Submission Time 2026-07-12 14:41:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subknapsack.cpp: In function ‘int32_t main()’:
subknapsack.cpp:10:2: error: ‘DP’ was not declared in this scope
10 | DP[0][0] = 1;
| ^~
subknapsack.cpp:11:19: error: ‘N’ was not declared in this scope
11 | for (a = 1; a <= N; a++){
| ^
subknapsack.cpp:13:20: error: ‘S’ was not declared in this scope
13 | for (b = 0; b <= S; b++){
| ^