Borderou de evaluare (job #2806402)

Utilizator andreea_07Andreea Georgescu andreea_07 Data 22 noiembrie 2021 16:28:37
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'std::vector<int> dijkstra(std::vector<std::pair<int, int> >*, int)': main.cpp:49:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 49 | for(int j= 0; j<muchia[m].size(); j++) | ~^~~~~~~~~~~~~~~~~ main.cpp:56:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 56 | for(int i = 2; i<=n; i++) | ^~~ main.cpp:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 59 | return dist; | ^~~~~~ main.cpp: In function 'int dist_min()': main.cpp:29:12: warning: 'poz' may be used uninitialized in this function [-Wmaybe-uninitialized] 29 | return poz; | ^~~ main.cpp: In function 'std::vector<int> dijkstra(std::vector<std::pair<int, int> >*, int)': main.cpp:47:14: warning: 'poz' may be used uninitialized in this function [-Wmaybe-uninitialized] 47 | viz[m]=1; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbOK10
22ms184kbIncorect0
36ms1511kbIncorect0
411ms1511kbIncorect0
5780ms2031kbIncorect0
61002ms2392kbTime limit exceeded0
71001ms2748kbTime limit exceeded0
81002ms4206kbTime limit exceeded0
91003ms4046kbTime limit exceeded0
101004ms5890kbTime limit exceeded0
Punctaj total10

Ceva nu functioneaza?