Borderou de evaluare (job #3333715)

Utilizator GabiRB1Rafael GabiRB1 Data 14 ianuarie 2026 22:25:00
Problema ADN Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 60

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
10ms557kbOK!10
20ms557kbOK!10
31ms819kbOK!10
41ms819kbOK!10
54ms2506kbOK!10
619ms1699kbOK!10
7344ms11579kbWrong asnwer0
8368ms66879kbMemory limit exceeded0
9451ms11956kbWrong asnwer0
10580ms66740kbMemory limit exceeded0
Punctaj total60

Ceva nu functioneaza?