Pagini recente » Borderou de evaluare (job #3323947) | Borderou de evaluare (job #3355700) | Borderou de evaluare (job #3333192) | Borderou de evaluare (job #3324977) | Borderou de evaluare (job #3333718)
Borderou de evaluare (job #3333718)
Raport evaluator
Compilare:
main.cpp: In function 'int calc(std::string&, std::string&, std::string&)':
main.cpp:32:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for(int i = 0; i < s2.length(); i ++)
| ~~^~~~~~~~~~~~~
main.cpp:41:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(int i = maxx; i < s2.length(); i ++)
| ~~^~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/stl_iterator.h:85,
from /usr/include/c++/12.2.1/bits/stl_algobase.h:67,
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 decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = int; _Args = {const int&}]',
inlined from 'static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = int; _Args = {const int&}; _Tp = int]' at /usr/include/c++/12.2.1/bits/alloc_traits.h:518:21,
inlined from 'constexpr void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const int&}; _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/vector.tcc:462:28,
inlined from 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:1287:21,
inlined from 'int main()' at main.cpp:110:18:
/usr/include/c++/12.2.1/bits/stl_construct.h:97:14: warning: 'pozj' may be used uninitialized [-Wmaybe-uninitialized]
97 | { return ::new((void*)__location) _Tp(std::forward<_Args>(__args)...); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:102:27: note: 'pozj' was declared here
102 | int minn = 1e9, pozi, pozj, mask = (1 << n) - 1;
| ^~~~
main.cpp:113:41: warning: 'pozi' may be used uninitialized [-Wmaybe-uninitialized]
113 | rez.push_back(t[pozi][pozj][mask]);
| ~~~~~~~~~~~~~~~~~~^
main.cpp:102:21: note: 'pozi' was declared here
102 | int minn = 1e9, pozi, pozj, mask = (1 << n) - 1;
| ^~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 1ms | 557kb | OK! | 10 |
| 2 | 0ms | 557kb | OK! | 10 |
| 3 | 1ms | 872kb | OK! | 10 |
| 4 | 1ms | 823kb | OK! | 10 |
| 5 | 9ms | 2916kb | OK! | 10 |
| 6 | 24ms | 2662kb | OK! | 10 |
| 7 | 374ms | 12967kb | Wrong asnwer | 0 |
| 8 | 369ms | 66932kb | Memory limit exceeded | 0 |
| 9 | 485ms | 13938kb | Wrong asnwer | 0 |
| 10 | 586ms | 66899kb | Memory limit exceeded | 0 |
| Punctaj total | 60 |