Borderou de evaluare (job #2814053)
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 | 2625kb | OK | 10 |
2 | 6ms | 2490kb | OK | 10 |
3 | 6ms | 2498kb | OK | 10 |
4 | 6ms | 2605kb | OK | 10 |
5 | 16ms | 3321kb | OK | 10 |
6 | 49ms | 4321kb | OK | 10 |
7 | 68ms | 4857kb | OK | 10 |
8 | 110ms | 5795kb | OK | 10 |
9 | 78ms | 6029kb | OK | 10 |
10 | 154ms | 6623kb | OK | 10 |
Punctaj total | 100 |