Borderou de evaluare (job #2493490)
Utilizator | Data | 16 noiembrie 2019 13:05:59 | |
---|---|---|---|
Problema | Problema rucsacului | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:1: error: expected unqualified-id before 'int'
int DP[5005][10005];
^~~
main.cpp: In function 'void Solve()':
main.cpp:21:17: error: 'DP' was not declared in this scope
DP[i][j] = max(DP[i-1][j],DP[i-1][j-W[i]] + P[i]);
^~
main.cpp:22:18: error: 'DP' was not declared in this scope
else DP[i][j] = DP[i-1][j];
^~
main.cpp:23:11: error: 'DP' was not declared in this scope
fout<<DP[N][G];
^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !