Borderou de evaluare (job #3260674)

Utilizator alex.cojocaruAlex Cojocaru alex.cojocaru Data 3 decembrie 2024 11:39:36
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 70

Raport evaluator

Compilare: main.cpp: In function 'void dijkstra(int, int)': main.cpp:7:23: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow] 7 | #define INF (1 << 31) - 1 | ~~~~~~~~~~^~~ main.cpp:27:19: note: in expansion of macro 'INF' 27 | dist[i] = INF; | ^~~ main.cpp: In function 'int main()': main.cpp:7:23: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow] 7 | #define INF (1 << 31) - 1 | ~~~~~~~~~~^~~ main.cpp:52:23: note: in expansion of macro 'INF' 52 | if(dist[i] == INF) | ^~~ main.cpp:44:9: warning: unused variable 'i' [-Wunused-variable] 44 | int i, j, n, m, to, from, weight; | ^ main.cpp:44:12: warning: unused variable 'j' [-Wunused-variable] 44 | int i, j, n, m, to, from, weight; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
31ms303kbOK10
42ms557kbOK10
514ms2191kbOK10
643ms3604kbOK10
752ms5296kbOK10
8149ms12750kbMemory limit exceeded0
9504ms9179kbTime limit exceeded0
10117ms12296kbMemory limit exceeded0
Punctaj total70

Ceva nu functioneaza?