Borderou de evaluare (job #3262110)

Utilizator Andrei1209Andrei Mircea Andrei1209 Data 8 decembrie 2024 19:45:03
Problema Colectie Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:201:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 201 | for ( i = 0; i < comba[soli].size(); ++i ) | ~~^~~~~~~~~~~~~~~~~~~~ main.cpp:203:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 203 | for ( i = 0; i < combb[solj].size(); ++i ) | ~~^~~~~~~~~~~~~~~~~~~~ main.cpp:149:12: warning: unused variable 'x' [-Wunused-variable] 149 | int i, x, j; | ^ main.cpp: In function 'bool cmp(ura, ura)': main.cpp:128:1: warning: control reaches end of non-void function [-Wreturn-type] 128 | } | ^ In file included from /usr/include/c++/12.2.1/vector:64, from main.cpp:2: In member function 'constexpr std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>]', inlined from 'int main()' at main.cpp:203:42: /usr/include/c++/12.2.1/bits/stl_vector.h:988:66: warning: 'solj' may be used uninitialized [-Wmaybe-uninitialized] 988 | { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } | ~~~~~~~~~~~~~~^~~~~~~~ main.cpp: In function 'int main()': main.cpp:179:15: note: 'solj' was declared here 179 | int soli, solj, sol = n + 12; | ^~~~ In member function 'constexpr std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>]', inlined from 'int main()' at main.cpp:201:42: /usr/include/c++/12.2.1/bits/stl_vector.h:988:66: warning: 'soli' may be used uninitialized [-Wmaybe-uninitialized] 988 | { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } | ~~~~~~~~~~~~~~^~~~~~~~ main.cpp: In function 'int main()': main.cpp:179:9: note: 'soli' was declared here 179 | int soli, solj, sol = n + 12; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms2654kbOK!10
23ms2654kbOK!10
33ms2654kbOK!10
43ms2654kbOK!10
519ms7897kbOK!10
688ms19202kbOK!10
788ms19234kbOK!10
8107ms25645kbOK!10
9112ms25645kbOK!10
10108ms25452kbOK!10
Punctaj total100

Ceva nu functioneaza?