Borderou de evaluare (job #2864545)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:107:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
107 | for (int i=0; i<kotelezovarosok.size(); i++)
| ~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void dijsktra(int, int)':
main.cpp:45:15: warning: iteration 2001 invokes undefined behavior [-Waggressive-loop-optimizations]
45 | tav[i]=184467440737095516;
| ~~~~~~^~~~~~~~~~~~~~~~~~~
main.cpp:43:20: note: within this loop
43 | for (int i=0; i<=2001; i++)
| ~^~~~~~
main.cpp:49:16: warning: iteration 2001 invokes undefined behavior [-Waggressive-loop-optimizations]
49 | jart[i]=false;
| ~~~~~~~^~~~~~
main.cpp:47:20: note: within this loop
47 | for (int i=0; i<=2001; i++)
| ~^~~~~~
main.cpp:49:16: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 2001 is out of the bounds [0, 2001] of object 'jart' with type 'bool [2001]' [-Warray-bounds]
49 | jart[i]=false;
| ~~~~~~~^~~~~~
main.cpp:31:6: note: 'jart' declared here
31 | bool jart[2001];
| ^~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | Incorect | 0 |
2 | 2ms | 184kb | Incorect | 0 |
3 | 2ms | 184kb | OK | 5 |
4 | 2ms | 184kb | Incorect | 0 |
5 | 2ms | 184kb | Incorect | 0 |
6 | 2ms | 184kb | Incorect | 0 |
7 | 4ms | 376kb | Incorect | 0 |
8 | 2ms | 184kb | Incorect | 0 |
9 | 2ms | 184kb | Incorect | 0 |
10 | 2ms | 184kb | Incorect | 0 |
11 | 6ms | 417kb | Incorect | 0 |
12 | 6ms | 405kb | Incorect | 0 |
13 | 6ms | 335kb | Incorect | 0 |
14 | 11ms | 454kb | Incorect | 0 |
15 | 11ms | 487kb | Incorect | 0 |
16 | 21ms | 589kb | Incorect | 0 |
17 | 25ms | 712kb | Incorect | 0 |
18 | 30ms | 741kb | Incorect | 0 |
19 | 50ms | 1093kb | Incorect | 0 |
20 | 2ms | 184kb | Incorect | 0 |
Punctaj total | 5 |