Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
4 August 2023, 22:10 |
c++14 |
100.0 |
main.cpp: In function ‘int main()’:
main.cpp:78:28: warning: iteration 30 invokes undefined behavior [-Waggressive-loop-optimizations]
78 | for(i=0;i<=30;i++)ap[i]=-1;
| ~~~~~^~~
main.cpp:78:14: note: within this loop
78 | for(i=0;i<=30;i++)ap[i]=-1;
| ~^~~~
main.cpp:78:28: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’ forming offset [120, 123] is out of the bounds [0, 120] of object ‘ap’ with type ‘int [30]’ [-Warray-bounds]
78 | for(i=0;i<=30;i++)ap[i]=-1;
| ~~~~~^~~
main.cpp:8:94: note: ‘ap’ declared here
8 | int colour_number, best_effort[5000], sub[2][5000], nsub[2], q[21][21], qtr[21][21], nr[30], ap[30];
| ^~
Test |
Mesaj evaluator |
Timp execuție |
Memorie |
Scor |
|---|---|---|---|---|
|
1
|
correct |
0,0 |
176KB |
5,0 |
|
2
|
correct |
0,0 |
176KB |
5,0 |
|
3
|
correct |
0,0 |
176KB |
5,0 |
|
4
|
correct |
0,001 |
176KB |
5,0 |
|
5
|
correct |
0,0 |
176KB |
5,0 |
|
6
|
correct |
0,001 |
176KB |
5,0 |
|
7
|
correct |
0,0 |
176KB |
5,0 |
|
8
|
correct |
0,001 |
176KB |
5,0 |
|
9
|
correct |
0,0 |
176KB |
5,0 |
|
10
|
correct |
0,001 |
176KB |
5,0 |
|
11
|
correct |
0,001 |
176KB |
5,0 |
|
12
|
correct |
0,0 |
176KB |
5,0 |
|
13
|
correct |
0,0 |
176KB |
5,0 |
|
14
|
correct |
0,0 |
176KB |
5,0 |
|
15
|
correct |
0,0 |
176KB |
5,0 |
|
16
|
correct |
0,0 |
176KB |
5,0 |
|
17
|
correct |
0,0 |
176KB |
5,0 |
|
18
|
correct |
0,001 |
176KB |
5,0 |
|
19
|
correct |
0,001 |
176KB |
5,0 |
|
20
|
correct |
0,001 |
176KB |
5,0 |