Pagini recente » Cod sursa (job #1925688) | Borderou de evaluare (job #1415691) | Borderou de evaluare (job #2038365) | Borderou de evaluare (job #1983823) | Borderou de evaluare (job #3325442)
Borderou de evaluare (job #3325442)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:33:9: warning: array subscript 4194305 is outside array bounds of 'int [4194304]' [-Warray-bounds]
33 | fill(dp_win, dp_win + (1 << NMAX) + 1, -1);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:14:5: note: at offset 16777220 into object 'dp_win' of size 16777216
14 | int dp_win[1 << NMAX];
| ^~~~~~
main.cpp:50:9: warning: array subscript 4194305 is outside array bounds of 'int [4194304]' [-Warray-bounds]
50 | fill(dp, dp + (1 << NMAX) + 1, -1);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:13:5: note: at offset 16777220 into object 'dp' of size 16777216
13 | int dp[1 << NMAX];
| ^~
In file included from /usr/include/c++/12.2.1/bits/specfun.h:45,
from /usr/include/c++/12.2.1/cmath:1935,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:41,
from main.cpp:1:
In function 'constexpr typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type std::__fill_a1(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = int*; _Tp = int]',
inlined from 'constexpr void std::__fill_a(_FIte, _FIte, const _Tp&) [with _FIte = int*; _Tp = int]' at /usr/include/c++/12.2.1/bits/stl_algobase.h:968:21,
inlined from 'constexpr void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = int*; _Tp = int]' at /usr/include/c++/12.2.1/bits/stl_algobase.h:998:20,
inlined from 'int main()' at main.cpp:33:9:
/usr/include/c++/12.2.1/bits/stl_algobase.h:922:18: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [16777216, 16777219] is out of the bounds [0, 16777216] of object 'dp_win' with type 'int [4194304]' [-Warray-bounds]
922 | *__first = __tmp;
| ~~~~~~~~~^~~~~~~
main.cpp: In function 'int main()':
main.cpp:14:5: note: 'dp_win' declared here
14 | int dp_win[1 << NMAX];
| ^~~~~~
In function 'constexpr typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type std::__fill_a1(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = int*; _Tp = int]',
inlined from 'constexpr void std::__fill_a(_FIte, _FIte, const _Tp&) [with _FIte = int*; _Tp = int]' at /usr/include/c++/12.2.1/bits/stl_algobase.h:968:21,
inlined from 'constexpr void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = int*; _Tp = int]' at /usr/include/c++/12.2.1/bits/stl_algobase.h:998:20,
inlined from 'int main()' at main.cpp:50:9:
/usr/include/c++/12.2.1/bits/stl_algobase.h:922:18: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [16777216, 16777219] is out of the bounds [0, 16777216] of object 'dp' with type 'int [4194304]' [-Warray-bounds]
922 | *__first = __tmp;
| ~~~~~~~~~^~~~~~~
main.cpp: In function 'int main()':
main.cpp:13:5: note: 'dp' declared here
13 | int dp[1 << NMAX];
| ^~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 546ms | 34021kb | Wrong answer! | 0 |
| 2 | 550ms | 34037kb | Wrong answer! | 0 |
| 3 | 544ms | 33947kb | Wrong answer! | 0 |
| 4 | 545ms | 33931kb | Wrong answer! | 0 |
| 5 | 545ms | 33972kb | Wrong answer! | 0 |
| 6 | 544ms | 34021kb | Wrong answer! | 0 |
| 7 | 545ms | 33980kb | Wrong answer! | 0 |
| 8 | 590ms | 34041kb | Wrong answer! | 0 |
| 9 | 610ms | 34041kb | Wrong answer! | 0 |
| 10 | 635ms | 34045kb | Wrong answer! | 0 |
| Punctaj total | 0 |