Pagini recente » Cod sursa (job #1751449) | Cod sursa (job #2012210) | Borderou de evaluare (job #159640) | Borderou de evaluare (job #2621016) | Borderou de evaluare (job #2814046)
Borderou de evaluare (job #2814046)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:34:12: warning: unused variable 'E' [-Wunused-variable]
34 | int V, E;
| ^
main.cpp:31:17: warning: iteration 100004 invokes undefined behavior [-Waggressive-loop-optimizations]
31 | dist[i] = -1;
| ~~~~~~~~^~~~
main.cpp:30:22: note: within this loop
30 | for(int i = 1; i <= nmax; ++i)
| ~~^~~~~~~
main.cpp:44:17: warning: iteration 100004 invokes undefined behavior [-Waggressive-loop-optimizations]
44 | dist[i] = -1;
| ~~~~~~~~^~~~
main.cpp:43:22: note: within this loop
43 | for(int i = 1; i <= nmax; ++i)
| ~~^~~~~~~
main.cpp:31:17: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400020, 400023] is out of the bounds [0, 400020] of object 'dist' with type 'int [100005]' [-Warray-bounds]
31 | dist[i] = -1;
| ~~~~~~~~^~~~
main.cpp:6:5: note: 'dist' declared here
6 | int dist[nmax] = {-1};
| ^~~~
main.cpp:44:17: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400020, 400023] is out of the bounds [0, 400020] of object 'dist' with type 'int [100005]' [-Warray-bounds]
44 | dist[i] = -1;
| ~~~~~~~~^~~~
main.cpp:6:5: note: 'dist' declared here
6 | int dist[nmax] = {-1};
| ^~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 6ms | 2641kb | OK | 10 |
| 2 | 6ms | 2564kb | OK | 10 |
| 3 | 6ms | 2555kb | OK | 10 |
| 4 | 6ms | 2633kb | OK | 10 |
| 5 | 15ms | 3375kb | OK | 10 |
| 6 | 44ms | 4321kb | OK | 10 |
| 7 | 68ms | 4857kb | OK | 10 |
| 8 | 111ms | 5795kb | OK | 10 |
| 9 | 78ms | 6029kb | OK | 10 |
| 10 | 154ms | 6623kb | OK | 10 |
| Punctaj total | 100 |