Borderou de evaluare (job #3293668)

Utilizator Samoila_AlexandruSamoilaAlexandru Samoila_Alexandru Data 12 aprilie 2025 11:25:38
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void dijkstra(int, int)': main.cpp:4:29: warning: suggest parentheses around '-' inside '>>' [-Wparentheses] 4 | #define inf 0xFFFFFFFF >> 1 - 1 | ~~^~~ main.cpp:15:32: note: in expansion of macro 'inf' 15 | d = vector<int>(n + 1, inf); | ^~~ main.cpp:24:21: warning: unused variable 'cost' [-Wunused-variable] 24 | int cost = pq.top().first; | ^~~~ main.cpp: In function 'int main()': main.cpp:4:29: warning: suggest parentheses around '-' inside '>>' [-Wparentheses] 4 | #define inf 0xFFFFFFFF >> 1 - 1 | ~~^~~ main.cpp:58:28: note: in expansion of macro 'inf' 58 | if(d[i] == inf) | ^~~ main.cpp:58:25: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'unsigned int' [-Wsign-compare] 58 | if(d[i] == inf)
Test Timp executie Memorie folosita Mesaj Punctaj/test
121ms12599kbMemory limit exceeded0
221ms12570kbMemory limit exceeded0
321ms12746kbMemory limit exceeded0
421ms12763kbMemory limit exceeded0
521ms12554kbMemory limit exceeded0
621ms12566kbMemory limit exceeded0
721ms12541kbMemory limit exceeded0
821ms12619kbMemory limit exceeded0
921ms12521kbMemory limit exceeded0
1021ms12566kbMemory limit exceeded0
Punctaj total0

Ceva nu functioneaza?