Borderou de evaluare (job #3325442)

Utilizator BuzdiBuzdugan Rares Andrei Buzdi Data 25 noiembrie 2025 14:09:15
Problema Coins Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

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
1546ms34021kbWrong answer!0
2550ms34037kbWrong answer!0
3544ms33947kbWrong answer!0
4545ms33931kbWrong answer!0
5545ms33972kbWrong answer!0
6544ms34021kbWrong answer!0
7545ms33980kbWrong answer!0
8590ms34041kbWrong answer!0
9610ms34041kbWrong answer!0
10635ms34045kbWrong answer!0
Punctaj total0

Ceva nu functioneaza?