Borderou de evaluare (job #1900760)

Utilizator matystroiaStroia Matei matystroia Data 3 martie 2017 16:20:19
Problema Problema rucsacului Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:18:53: error: ‘sol’ was not declared in this scope dp[j+w[i]]=max(dp[j+w[i]], dp[j]+v[i]), sol=max(sol, dp[j+w[i]]); ^ user.cpp:19:11: error: ‘sol’ was not declared in this scope fout<<sol; ^

Ceva nu functioneaza?