Borderou de evaluare (job #3161247)
Utilizator | Data | 26 octombrie 2023 10:14:20 | |
---|---|---|---|
Problema | Problema rucsacului | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:38:22: warning: variable 'obj' set but not used [-Wunused-but-set-variable]
38 | t_object obj=objs[idx];
| ^~~
main.cpp:40:8: error: 'obj' was not declared in this scope; did you mean 'objs'?
40 | if(obj.greutate>g)
| ^~~
| objs
main.cpp:40:21: error: 'g' was not declared in this scope
40 | if(obj.greutate>g)
| ^
main.cpp:42:9: error: 'dp' was not declared in this scope
42 | dp[idx][g]=dp[idx-1][g];
| ^~
main.cpp:42:12: error: 'idx' was not declared in this scope
42 | dp[idx][g]=dp[idx-1][g];
| ^~~
main.cpp:46:21: error: 'dp' was not declared in this scope
46 | int profit1=dp[idx-1][g];
| ^~
main.cpp:46:24: error: 'idx' was not declared in this scope
46 | int profit1=dp[idx-1][g];
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !