Borderou de evaluare (job #2944342)

Utilizator cadmium_Voicu Mihai Valeriu cadmium_ Data 22 noiembrie 2022 13:37:18
Problema Pisici Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int, int)': main.cpp:23:12: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 23 | for(auto [x, w] : g[node]) { | ^ main.cpp:31:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 31 | for(auto &[add, x] : v) { | ^ main.cpp:36:6: error: redeclaration of 'll accum' 36 | ll accum = inf; | ^~~~~ main.cpp:29:6: note: 'll accum' previously declared here 29 | ll accum = 0; | ^~~~~ main.cpp:37:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 37 | for(auto &[add, x] : v) { | ^ main.cpp:38:11: warning: operation on 'accum' may be undefined [-Wsequence-point] 38 | accum = min(accum, x + (accum += add)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:56:18: warning: unused variable 'x' [-Wunused-variable] 56 | for(int i = 1, x; i < n; i++) | ^ Non zero exit status: 1

Ceva nu functioneaza?