Borderou de evaluare (job #2878226)

Utilizator indianu_talpa_iuteTisca Catalin indianu_talpa_iute Data 26 martie 2022 10:57:07
Problema Problema rucsacului Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void rezolvare()': main.cpp:22:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 22 | for (int i = 1; i <= n; i++) | ^~~ main.cpp:25:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 25 | for (int j = obiecte[i].w; j <= g; j++) { | ^~~ main.cpp:25:30: error: 'i' was not declared in this scope 25 | for (int j = obiecte[i].w; j <= g; j++) { | ^ Non zero exit status: 1

Ceva nu functioneaza?