Borderou de evaluare (job #3204614)

Utilizator TomaBToma Brihacescu TomaB Data 17 februarie 2024 10:40:13
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'void dijkstra(int)': main.cpp:16:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 16 | if (d[i] < min && use[i] == 0) | ^~ main.cpp:19:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 19 | use[nod]=1; | ^~~ main.cpp:24:30: warning: 'nod' may be used uninitialized [-Wmaybe-uninitialized] 24 | if (d[nod] + cost < d[vecin]) | ~~~~~^ main.cpp:14:21: note: 'nod' was declared here 14 | int min=oo, nod; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbIncorect0
31ms303kbIncorect0
42ms303kbIncorect0
5188ms1081kbIncorect0
6502ms1552kbTime limit exceeded0
7502ms2289kbTime limit exceeded0
8502ms4059kbTime limit exceeded0
9501ms3964kbTime limit exceeded0
10501ms5791kbTime limit exceeded0
Punctaj total10

Ceva nu functioneaza?