Borderou de evaluare (job #3224113)

Utilizator TrifoitaBejenescu-Babusanu Stefan Trifoita Data 14 aprilie 2024 19:14:35
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void read_graph()': main.cpp:25:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=] 25 | scanf("%d %d %d", x, y, c); | ~^ ~ | | | | int* int main.cpp:25:16: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=] 25 | scanf("%d %d %d", x, y, c); | ~^ ~ | | | | int* int main.cpp:25:19: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'int' [-Wformat=] 25 | scanf("%d %d %d", x, y, c); | ~^ ~ | | | | int* int main.cpp: In function 'void dijkstra()': main.cpp:44:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 44 | for (int i = 0; i < Graph[node].size(); ++i) { | ~~^~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void read_graph()': main.cpp:25:10: warning: 'x' may be used uninitialized [-Wmaybe-uninitialized] 25 | scanf("%d %d %d", x, y, c); | ~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:17:7: note: 'x' was declared here 17 | int x, | ^ main.cpp:25:10: warning: 'y' may be used uninitialized [-Wmaybe-uninitialized] 25 | scanf("%d %d %d", x, y, c); | ~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:18:7: note: 'y' was declared here 18 | y, | ^ main.cpp:25:10: warning: 'c' may be used uninitialized [-Wmaybe-uninitialized] 25 | scanf("%d %d %d", x, y, c); | ~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:19:7: note: 'c' was declared here 19 | c; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
110ms405kbKilled by Signal 110
210ms401kbKilled by Signal 110
310ms401kbKilled by Signal 110
410ms397kbKilled by Signal 110
510ms397kbKilled by Signal 110
610ms401kbKilled by Signal 110
710ms397kbKilled by Signal 110
810ms397kbKilled by Signal 110
910ms401kbKilled by Signal 110
1010ms401kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?