Mai intai trebuie sa te autentifici.

Borderou de evaluare (job #3300862)

Utilizator xeni2009Matei Ioana xeni2009 Data 19 iunie 2025 16:03:13
Problema Trilant Status done
Runda Teme Pregatire ACM Unibuc 2013 Semestrul 2 Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'DijkstraResult Dijkstra(int)': main.cpp:13:27: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow] 13 | #define infinity ((1<<31) - 1) | ~~~~~~~~^~~ main.cpp:40:48: note: in expansion of macro 'infinity' 40 | vector<int> distances(number_of_nodes + 1, infinity); | ^~~~~~~~ main.cpp:55:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 55 | for(int j = 0; j < adj[current_node].size(); j++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:13:27: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow] 13 | #define infinity ((1<<31) - 1) | ~~~~~~~~^~~ main.cpp:106:25: note: in expansion of macro 'infinity' 106 | long long minCost = infinity; | ^~~~~~~~ main.cpp:13:27: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow] 13 | #define infinity ((1<<31) - 1) | ~~~~~~~~^~~ main.cpp:110:34: note: in expansion of macro 'infinity' 110 | if (resA.distances[i] != infinity && resB.distances[i] != infinity && resC.distances[i] != infinity) | ^~~~~~~~ main.cpp:13:27: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow] 13 | #define infinity ((1<<31) - 1) | ~~~~~~~~^~~ main.cpp:110:67: note: in expansion of macro 'infinity' 110 | if (resA.distances[i] != infinity && resB.distances[i] != infinity && resC.distances[i] != infinity) | ^~~~~~~~ main.cpp:13:27: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow] 13 | #define infinity ((1<<31) - 1) | ~~~~~~~~^~~ main.cpp:110:100: note: in expansion of macro 'infinity' 110 | if (resA.distances[i] != infinity && resB.distances[i] != infinity && resC.distances[i] != infinity) | ^~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
15ms397kbKilled by Signal 1100
118ms405kbKilled by Signal 110
28ms405kbKilled by Signal 1100
128ms401kbKilled by Signal 110
39ms507kbKilled by Signal 1100
1311ms901kbKilled by Signal 110
49ms507kbKilled by Signal 1100
149ms618kbKilled by Signal 110
59ms577kbKilled by Signal 1100
1510ms708kbKilled by Signal 110
695ms10915kbKilled by Signal 1100
160ms397kbKilled by Signal 110
772ms9826kbKilled by Signal 1100
170ms405kbKilled by Signal 110
859ms9105kbKilled by Signal 1100
1834ms6844kbKilled by Signal 110
984ms10645kbKilled by Signal 1100
1930ms6574kbKilled by Signal 110
1095ms10989kbKilled by Signal 1100
2030ms6598kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?