Pagini recente »
Borderou de evaluare (job #97815)
|
Borderou de evaluare (job #70364)
|
Borderou de evaluare (job #651931)
|
Borderou de evaluare (job #436895)
|
Borderou de evaluare (job #698226)
Borderou de evaluare (job #698226)
Raport evaluator
Compilare:
main.cpp: In function 'void flood(int, int)':
main.cpp:39:59: warning: array subscript 12 is above array bounds of 'int [3]' [-Warray-bounds]
39 | else if(mat[sr + dl[2]][sc + dc[2]] == 0 && sr + dl[12]>=0 && sr + dl[2]<=1 && sc + dc[2]>=0 && sc + dc[2]<=n)
| ~~~~~^
main.cpp:9:5: note: while referencing 'dl'
9 | int dl[3] = {-1, 0, 1};
| ^~
main.cpp:45:59: warning: array subscript 12 is above array bounds of 'int [3]' [-Warray-bounds]
45 | else if(mat[sr + dl[2]][sc + dc[2]] == 1 && sr + dl[12]>=0 && sr + dl[2]<=1 && sc + dc[2]>=0 && sc + dc[2]<=n)
| ~~~~~^
main.cpp:9:5: note: while referencing 'dl'
9 | int dl[3] = {-1, 0, 1};
| ^~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
114 kb
|
Incorect
|
0
|
2
|
1 ms
|
114 kb
|
Incorect
|
0
|
3
|
1 ms
|
114 kb
|
Incorect
|
0
|
4
|
2 ms
|
110 kb
|
OK
|
4
|
5
|
1 ms
|
114 kb
|
Incorect
|
0
|
6
|
1 ms
|
114 kb
|
Incorect
|
0
|
7
|
1 ms
|
114 kb
|
OK
|
4
|
8
|
2 ms
|
114 kb
|
Incorect
|
0
|
9
|
1 ms
|
110 kb
|
Incorect
|
0
|
10
|
1 ms
|
237 kb
|
Incorect
|
0
|
11
|
1 ms
|
110 kb
|
OK
|
5
|
12
|
1 ms
|
110 kb
|
OK
|
5
|
13
|
1 ms
|
110 kb
|
Incorect
|
0
|
14
|
1 ms
|
110 kb
|
Incorect
|
0
|
15
|
1 ms
|
118 kb
|
Incorect
|
0
|
16
|
1 ms
|
110 kb
|
Incorect
|
0
|
17
|
2 ms
|
114 kb
|
Incorect
|
0
|
18
|
1 ms
|
114 kb
|
Incorect
|
0
|
19
|
1 ms
|
249 kb
|
Incorect
|
0
|
20
|
26 ms
|
503 kb
|
Incorect
|
0
|
21
|
40 ms
|
765 kb
|
Incorect
|
0
|
22
|
45 ms
|
905 kb
|
Incorect
|
0
|
Punctaj total
|
18
|