Borderou de evaluare (job #2500281)

Utilizator geo_uwuManolachi George geo_uwu Data 27 noiembrie 2019 17:39:03
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:11:7: error: 'n' was not declared in this scope i >> n >> gmax; ^ main.cpp:14:17: warning: statement has no effect [-Wunused-value] i >> greutate >> profit; ~~~~~~~~~~~~~~^~~~~~~~~ main.cpp:16:21: error: 'g' was not declared in this scope if (v[j] = v[j - g] + profit) ^ Non zero exit status: 1

Ceva nu functioneaza?