Borderou de evaluare (job #2040240)

Utilizator osiaccrCristian Osiac osiaccr Data 15 octombrie 2017 15:36:28
Problema Peste Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:1: error: expected unqualified-id before ‘long’ long long s, aux[DEF], best[DEF]; ^ user.cpp: In function ‘int main()’: user.cpp:27:9: error: ‘s’ was not declared in this scope s += v[i].second; ^ user.cpp:28:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (H.size () > k) { ^ user.cpp:32:9: error: ‘aux’ was not declared in this scope aux[v[i].first] = max (s, aux[v[i].first]); ^ user.cpp:37:13: error: ‘best’ was not declared in this scope best[i] = max (best[i], best[i - j] + aux[j]); ^ user.cpp:37:51: error: ‘aux’ was not declared in this scope best[i] = max (best[i], best[i - j] + aux[j]); ^ user.cpp:41:13: error: ‘best’ was not declared in this scope fout << best[TMAX]; ^

Ceva nu functioneaza?