Borderou de evaluare (job #3262420)

Utilizator DenisBadarauDenisBadarau DenisBadarau Data 10 decembrie 2024 10:48:21
Problema Easygraph Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void Dinamica()': main.cpp:52:16: error: 'j' was not declared in this scope 52 | dp[j] = max(dp[j], dp[k] + v[j]); | ^ main.cpp: In function 'void Init()': main.cpp:61:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 61 | for(int i = 1; i <= n;i++) | ^~~ main.cpp:62:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 62 | viz[i] = 0; a[i] = 0; | ^ main.cpp:62:23: error: 'i' was not declared in this scope 62 | viz[i] = 0; a[i] = 0; | ^ Non zero exit status: 1

Ceva nu functioneaza?