Borderou de evaluare (job #3372409)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:66:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | for (auto i{0}; i < cuvant.size(); i++)
| ~~^~~~~~~~~~~~~~~
main.cpp: In function 'int bfs(std::string)':
main.cpp:45:39: warning: array subscript -1 is outside array bounds of 'int [2147483647]' [-Warray-bounds]
45 | distanta[stanga[nod]] = distanta[nod] + 1;
In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
from /usr/include/c++/12.2.1/bits/allocator.h:46,
from /usr/include/c++/12.2.1/string:41,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
In member function '_Tp* std::__new_allocator<_Tp>::allocate(size_type, const void*) [with _Tp = int]',
inlined from 'constexpr _Tp* std::allocator< <template-parameter-1-1> >::allocate(std::size_t) [with _Tp = int]' at /usr/include/c++/12.2.1/bits/allocator.h:188:40,
inlined from 'static constexpr _Tp* std::allocator_traits<std::allocator<_CharT> >::allocate(allocator_type&, size_type) [with _Tp = int]' at /usr/include/c++/12.2.1/bits/alloc_traits.h:464:28,
inlined from 'constexpr std::_Vector_base<_Tp, _Alloc>::pointer std::_Vector_base<_Tp, _Alloc>::_M_allocate(std::size_t) [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:378:33,
inlined from 'constexpr std::_Vector_base<_Tp, _Alloc>::pointer std::_Vector_base<_Tp, _Alloc>::_M_allocate(std::size_t) [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:375:7,
inlined from 'constexpr void std::_Vector_base<_Tp, _Alloc>::_M_create_storage(std::size_t) [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:395:44,
inlined from 'constexpr std::_Vector_base<_Tp, _Alloc>::_Vector_base(std::size_t, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:332:26,
inlined from 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:566:47,
inlined from 'int bfs(std::string)' at main.cpp:16:40:
/usr/include/c++/12.2.1/bits/new_allocator.h:137:55: note: at offset -4 into object of size [4, 8589934588] allocated by 'operator new'
137 | return static_cast<_Tp*>(_GLIBCXX_OPERATOR_NEW(__n * sizeof(_Tp)));
| ^
main.cpp: In function 'int bfs(std::string)':
main.cpp:51:40: warning: array subscript -1 is outside array bounds of 'int [2147483647]' [-Warray-bounds]
51 | distanta[dreapta[nod]] = distanta[nod] + 1;
In member function '_Tp* std::__new_allocator<_Tp>::allocate(size_type, const void*) [with _Tp = int]',
inlined from 'constexpr _Tp* std::allocator< <template-parameter-1-1> >::allocate(std::size_t) [with _Tp = int]' at /usr/include/c++/12.2.1/bits/allocator.h:188:40,
inlined from 'static constexpr _Tp* std::allocator_traits<std::allocator<_CharT> >::allocate(allocator_type&, size_type) [with _Tp = int]' at /usr/include/c++/12.2.1/bits/alloc_traits.h:464:28,
inlined from 'constexpr std::_Vector_base<_Tp, _Alloc>::pointer std::_Vector_base<_Tp, _Alloc>::_M_allocate(std::size_t) [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:378:33,
inlined from 'constexpr std::_Vector_base<_Tp, _Alloc>::pointer std::_Vector_base<_Tp, _Alloc>::_M_allocate(std::size_t) [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:375:7,
inlined from 'constexpr void std::_Vector_base<_Tp, _Alloc>::_M_create_storage(std::size_t) [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:395:44,
inlined from 'constexpr std::_Vector_base<_Tp, _Alloc>::_Vector_base(std::size_t, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:332:26,
inlined from 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:566:47,
inlined from 'int bfs(std::string)' at main.cpp:16:40:
/usr/include/c++/12.2.1/bits/new_allocator.h:137:55: note: at offset -4 into object of size [4, 8589934588] allocated by 'operator new'
137 | return static_cast<_Tp*>(_GLIBCXX_OPERATOR_NEW(__n * sizeof(_Tp)));
| ^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 10ms | 1208kb | Killed by Signal 11 | 0 |
| 2 | 10ms | 1212kb | Killed by Signal 11 | 0 |
| 3 | 10ms | 1208kb | Killed by Signal 11 | 0 |
| 4 | 10ms | 1212kb | Killed by Signal 11 | 0 |
| 5 | 10ms | 1204kb | Killed by Signal 11 | 0 |
| 6 | 10ms | 1212kb | Killed by Signal 11 | 0 |
| 7 | 10ms | 1212kb | Killed by Signal 11 | 0 |
| 8 | 10ms | 1216kb | Killed by Signal 11 | 0 |
| 9 | 10ms | 1232kb | Killed by Signal 11 | 0 |
| 10 | 10ms | 1224kb | Killed by Signal 11 | 0 |
| 11 | 0ms | 1220kb | Killed by Signal 11 | 0 |
| 12 | 1ms | 1224kb | Killed by Signal 11 | 0 |
| 13 | 1ms | 1220kb | Killed by Signal 11 | 0 |
| 14 | 1ms | 1220kb | Killed by Signal 11 | 0 |
| 15 | 1ms | 1220kb | Killed by Signal 11 | 0 |
| 16 | 1ms | 1224kb | Killed by Signal 11 | 0 |
| 17 | 1ms | 1449kb | Killed by Signal 11 | 0 |
| 18 | 1ms | 1441kb | Killed by Signal 11 | 0 |
| 19 | 1ms | 1265kb | Killed by Signal 11 | 0 |
| 20 | 1ms | 1441kb | Killed by Signal 11 | 0 |
| 21 | 1ms | 1441kb | Killed by Signal 11 | 0 |
| 22 | 1ms | 1339kb | Killed by Signal 11 | 0 |
| 23 | 1ms | 1323kb | Killed by Signal 11 | 0 |
| 24 | 1ms | 1314kb | Killed by Signal 11 | 0 |
| 25 | 1ms | 1273kb | Killed by Signal 11 | 0 |
| Punctaj total | 0 |