#1385
Joc6
Dom’ Profesor Unu și Dom’ Profesor Doi au găsit o matrice cu n
linii numerotate de la 1
la n
și n
coloane numerotate de la 1
la n
și elemente numere naturale. Semnificativ marcați de algoritmul de determinare a celui mai lung subșir crescător, au inventat pe loc un joc:
Determinați scorului fiecărui Dom’ Profesor și stabiliți câștigătorul.
Problema | Joc6 | Operații I/O |
joc6.in /joc6.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53964596 | Utilizator | |
Fișier | joc6.cpp | Dimensiune | 1.35 KB |
Data încărcării | 16 Noiembrie 2024, 10:14 | Scor / rezultat | Eroare de compilare |
joc6.cpp: In instantiation of 'size_t length_increasing_subsequence(Iterator, Iterator) [with Iterator = __gnu_cxx::__normal_iterator<const int*, std::vector<int> >; size_t = unsigned int]': joc6.cpp:43:82: required from here joc6.cpp:16:18: error: no match for 'operator=' (operand types are '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' and 'const int') ++it = *first; ^ joc6.cpp:16:18: note: candidates are: In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/sstream:38, from /usr/include/c++/4.8/complex:45, from /usr/include/c++/4.8/ccomplex:38, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52, from joc6.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:708:11: note: __gnu_cxx::__normal_iterator<int*, std::vector<int> >& __gnu_cxx::__normal_iterator<int*, std::vector<int> >::operator=(const __gnu_cxx::__normal_iterator<int*, std::vector<int> >&) class __normal_iterator ^ /usr/include/c++/4.8/bits/stl_iterator.h:708:11: note: no known conversion for argument 1 from 'const int' to 'const __gnu_cxx::__normal_iterator<int*, std::vector<int> >&' /usr/include/c++/4.8/bits/stl_iterator.h:708:11: note: __gnu_cxx::__normal_iterator<int*, std::vector<int> >& __gnu_cxx::__normal_iterator<int*, std::vector<int> >::operator=(__gnu_cxx::__normal_iterator<int*, std::vector<int> >&&) /usr/include/c++/4.8/bits/stl_iterator.h:708:11: note: no known conversion for argument 1 from 'const int' to '__gnu_cxx::__normal_iterator<int*, std::vector<int> >&&' joc6.cpp: In instantiation of 'size_t length_increasing_subsequence(Iterator, Iterator) [with Iterator = std::reverse_iterator<__gnu_cxx::__normal_iterator<int*, std::vector<int> > >; size_t = unsigned int]': joc6.cpp:45:82: required from here joc6.cpp:16:18: error: no match for 'operator=' (operand types are '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' and 'int') ++it = *first; ^ joc6.cpp:16:18: note: candidates are: In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/sstream:38, from /usr/include/c++/4.8/complex:45, from /usr/include/c++/4.8/ccomplex:38, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52, from joc6.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:708:11: note: __gnu_cxx::__normal_iterator<int*, std::vector<int> >& __gnu_cxx::__normal_iterator<int*, std::vector<int> >::operator=(const __gnu_cxx::__normal_iterator<int*, std::vector<int> >&) class __normal_iterator ^ /usr/include/c++/4.8/bits/stl_iterator.h:708:11: note: no known conversion for argument 1 from 'int' to 'const __gnu_cxx::__normal_iterator<int*, std::vector<int> >&' /usr/include/c++/4.8/bits/stl_iterator.h:708:11: note: __gnu_cxx::__normal_iterator<int*, std::vector<int> >& __gnu_cxx::__normal_iterator<int*, std::vector<int> >::operator=(__gnu_cxx::__normal_iterator<int*, std::vector<int> >&&) /usr/include/c++/4.8/bits/stl_iterator.h:708:11: note: no known conversion for argument 1 from 'int' to '__gnu_cxx::__normal_iterator<int*, std::vector<int> >&&'
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Joc6 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.