Borderou de evaluare (job #3372409)

Utilizator mitoceanuci@gmail.comMitoceanu Ciprian [email protected] Data 3 noiembrie 2026 18:26:01
Problema Alice în Țara Minunilor Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

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
110ms1208kbKilled by Signal 110
210ms1212kbKilled by Signal 110
310ms1208kbKilled by Signal 110
410ms1212kbKilled by Signal 110
510ms1204kbKilled by Signal 110
610ms1212kbKilled by Signal 110
710ms1212kbKilled by Signal 110
810ms1216kbKilled by Signal 110
910ms1232kbKilled by Signal 110
1010ms1224kbKilled by Signal 110
110ms1220kbKilled by Signal 110
121ms1224kbKilled by Signal 110
131ms1220kbKilled by Signal 110
141ms1220kbKilled by Signal 110
151ms1220kbKilled by Signal 110
161ms1224kbKilled by Signal 110
171ms1449kbKilled by Signal 110
181ms1441kbKilled by Signal 110
191ms1265kbKilled by Signal 110
201ms1441kbKilled by Signal 110
211ms1441kbKilled by Signal 110
221ms1339kbKilled by Signal 110
231ms1323kbKilled by Signal 110
241ms1314kbKilled by Signal 110
251ms1273kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?