Borderou de evaluare (job #2944933)

Utilizator Cosmin2004_InfoMoldoveanu Cosmin Cosmin2004_Info Data 23 noiembrie 2022 09:26:20
Problema Sever Status done
Runda arhiva-vianu Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:70:28: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] 70 | int mid = L[i] + R[i] >> 1; | ~~~~~^~~~~~ main.cpp: In function 'void reset()': main.cpp:85:20: warning: array subscript 400010 is outside array bounds of 'll [200005]' {aka 'long long int [200005]'} [-Warray-bounds] 85 | void reset() { fill(t, t + 2 * N, 0); } | ~~~~^~~~~~~~~~~~~~~~~ main.cpp:9:4: note: at offset 3200080 into object 't' of size 1600040 9 | ll t[N]; | ^ 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 = long long int*; _Tp = int]', inlined from 'constexpr void std::__fill_a(_FIte, _FIte, const _Tp&) [with _FIte = long long 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 = long long int*; _Tp = int]' at /usr/include/c++/12.2.1/bits/stl_algobase.h:998:20, inlined from 'void reset()' at main.cpp:85:20: /usr/include/c++/12.2.1/bits/stl_algobase.h:922:18: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [1600040, 3200079] is out of the bounds [0, 1600040] of object 't' with type 'll [200005]' {aka 'long long int [200005]'} [-Warray-bounds] 922 | *__first = __tmp; | ~~~~~~~~~^~~~~~~ main.cpp: In function 'void reset()': main.cpp:9:4: note: 't' declared here 9 | ll t[N]; | ^ In function 'void reset()', inlined from 'int main()' at main.cpp:68:14: main.cpp:85:20: warning: array subscript 400010 is outside array bounds of 'll [200005]' {aka 'long long int [200005]'} [-Warray-bounds] 85 | void reset() { fill(t, t + 2 * N, 0); } | ~~~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:9:4: note: at offset 3200080 into object 't' of size 1600040 9 | ll t[N]; | ^ In function 'constexpr typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type std::__fill_a1(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = long long int*; _Tp = int]', inlined from 'constexpr void std::__fill_a(_FIte, _FIte, const _Tp&) [with _FIte = long long 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 = long long int*; _Tp = int]' at /usr/include/c++/12.2.1/bits/stl_algobase.h:998:20, inlined from 'void reset()' at main.cpp:85:20, inlined from 'int main()' at main.cpp:68:14: /usr/include/c++/12.2.1/bits/stl_algobase.h:922:18: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [1600040, 3200079] is out of the bounds [0, 1600040] of object 't' with type 'll [200005]' {aka 'long long int [200005]'} [-Warray-bounds] 922 | *__first = __tmp; | ~~~~~~~~~^~~~~~~ main.cpp: In function 'int main()': main.cpp:9:4: note: 't' declared here 9 | ll t[N]; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
19ms4268kbOK715
219ms4628kbOK8
3642ms35930kbOK1020
4780ms46804kbOK10
5172ms12132kbOK1135
6315ms20553kbOK12
7345ms32645kbOK12
81365ms46579kbOK1030
91063ms58130kbOK10
101295ms60051kbOK10
Punctaj total100

Ceva nu functioneaza?