Borderou de evaluare (job #3268222)

Utilizator ArthurrrfubinacaARthur Paun Arthurrrfubinaca Data 14 ianuarie 2025 00:21:43
Problema Ubuntzei Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void dijkstra(int)': main.cpp:7:13: warning: overflow in conversion from 'double' to 'std::vector<int>::value_type' {aka 'int'} changes value from '1.0e+18' to '2147483647' [-Woverflow] 7 | #define inf 1e18 | ^~~~ main.cpp:30:32: note: in expansion of macro 'inf' 30 | vector<int> distances(Nmax,inf); | ^~~ main.cpp: In function 'int main()': main.cpp:7:13: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow] 7 | #define inf 1e18 | ^~~~ main.cpp:92:29: note: in expansion of macro 'inf' 92 | dp[conf][i+1] = inf; | ^~~ main.cpp: In function 'void dijkstra(int)': main.cpp:28:15: warning: iteration 20005 invokes undefined behavior [-Waggressive-loop-optimizations] 28 | viz[j]=0; | ~~~~~~^~ main.cpp:26:18: note: within this loop 26 | for(int j=0;j<=Nmax;j++) | ^ main.cpp:28:15: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 20005 is out of the bounds [0, 20005] of object 'viz' with type 'bool [20005]' [-Warray-bounds] 28 | viz[j]=0; | ~~~~~~^~ main.cpp:25:10: note: 'viz' declared here 25 | bool viz[Nmax]; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbIncorect0
30ms303kbIncorect0
40ms303kbIncorect0
50ms303kbIncorect0
60ms303kbIncorect0
70ms557kbIncorect0
80ms557kbIncorect0
91ms557kbIncorect0
101ms819kbIncorect0
112ms1081kbIncorect0
1212ms569kbKilled by Signal 110
1312ms630kbKilled by Signal 110
1411ms659kbKilled by Signal 70
1516ms675kbKilled by Signal 110
1617ms753kbKilled by Signal 110
1717ms782kbKilled by Signal 110
189ms806kbKilled by Signal 70
1918ms880kbKilled by Signal 110
200ms303kbIncorect0
Punctaj total0

Ceva nu functioneaza?