Pagini recente » Borderou de evaluare (job #2740237) | Borderou de evaluare (job #2117745) | Borderou de evaluare (job #1784329) | Borderou de evaluare (job #198711) | Borderou de evaluare (job #3256498)
Borderou de evaluare (job #3256498)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:70:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<str>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | while(cnt < b[nr].size() && b[nr][cnt].D == i)
| ~~~~^~~~~~~~~~~~~~
main.cpp:57:13: warning: unused variable 'q' [-Wunused-variable]
57 | int q = (nr+1)*rad;
| ^
main.cpp:55:13: warning: array subscript 100002 is outside array bounds of 'int [100001]' [-Warray-bounds]
55 | fill(freq,freq+NMAX+1+1,0);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:21:5: note: at offset 400008 into object 'freq' of size 400004
21 | int freq[NMAX+1];
| ^~~~
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:55:13:
/usr/include/c++/12.2.1/bits/stl_algobase.h:922:18: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400004, 400007] is out of the bounds [0, 400004] of object 'freq' with type 'int [100001]' [-Warray-bounds]
922 | *__first = __tmp;
| ~~~~~~~~~^~~~~~~
main.cpp: In function 'int main()':
main.cpp:21:5: note: 'freq' declared here
21 | int freq[NMAX+1];
| ^~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 4ms | 1081kb | Incorect | 0 | 0 |
2 | 4ms | 1081kb | Incorect | 0 | 0 |
3 | 14ms | 1703kb | Incorect | 0 | 0 |
4 | 14ms | 1695kb | Incorect | 0 |
5 | 19ms | 1900kb | Incorect | 0 |
6 | 23ms | 2129kb | Incorect | 0 | 0 |
7 | 39ms | 3502kb | Incorect | 0 |
8 | 44ms | 3624kb | Incorect | 0 |
9 | 54ms | 3502kb | Incorect | 0 |
10 | 54ms | 3657kb | Incorect | 0 |
Punctaj total | 0 |