#3974
Se dau 2
mulţimi de numere naturale. Să se afișeze mulţimea rezultată în urma efectuării unei operații.
Problema | IRDDS | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 8 MB
/
Stivă 4 MB
|
Id soluție | #58005875 | Utilizator | |
Fișier | irdds.cpp | Dimensiune | 874 B |
Data încărcării | 07 Mai 2025, 20:27 | Scor / rezultat | Eroare de compilare |
In file included from /usr/include/c++/4.8/algorithm:62:0, from irdds.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of '_OIter std::set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter) [with _IIter1 = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _IIter2 = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _OIter = std::vector<int>]': irdds.cpp:22:64: required from here /usr/include/c++/4.8/bits/stl_algo.h:5898:6: error: no match for 'operator*' (operand type is 'std::vector<int>') *__result = *__first1; ^ /usr/include/c++/4.8/bits/stl_algo.h:5901:6: error: no match for 'operator++' (operand type is 'std::vector<int>') ++__result; ^ /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of '_OIter std::set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter) [with _IIter1 = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _IIter2 = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _OIter = std::vector<int>]': irdds.cpp:27:57: required from here /usr/include/c++/4.8/bits/stl_algo.h:5763:8: error: no match for 'operator*' (operand type is 'std::vector<int>') *__result = *__first1; ^ /usr/include/c++/4.8/bits/stl_algo.h:5768:8: error: no match for 'operator*' (operand type is 'std::vector<int>') *__result = *__first2; ^ /usr/include/c++/4.8/bits/stl_algo.h:5773:8: error: no match for 'operator*' (operand type is 'std::vector<int>') *__result = *__first1; ^ /usr/include/c++/4.8/bits/stl_algo.h:5777:4: error: no match for 'operator++' (operand type is 'std::vector<int>') ++__result; ^ /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of '_OIter std::set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter) [with _IIter1 = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _IIter2 = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _OIter = std::vector<int>]': irdds.cpp:32:62: required from here /usr/include/c++/4.8/bits/stl_algo.h:6009:6: error: no match for 'operator*' (operand type is 'std::vector<int>') *__result = *__first1; ^ /usr/include/c++/4.8/bits/stl_algo.h:6011:6: error: no match for 'operator++' (operand type is 'std::vector<int>') ++__result; ^ /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of '_OIter std::set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter) [with _IIter1 = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _IIter2 = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _OIter = std::vector<int>]': irdds.cpp:37:72: required from here /usr/include/c++/4.8/bits/stl_algo.h:6130:6: error: no match for 'operator*' (operand type is 'std::vector<int>') *__result = *__first1; ^ /usr/include/c++/4.8/bits/stl_algo.h:6132:6: error: no match for 'operator++' (operand type is 'std::vector<int>') ++__result; ^ /usr/include/c++/4.8/bits/stl_algo.h:6136:6: error: no match for 'operator*' (operand type is 'std::vector<int>') *__result = *__first2; ^ /usr/include/c++/4.8/bits/stl_algo.h:6138:6: error: no match for 'operator++' (operand type is 'std::vector<int>') ++__result; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema IRDDS 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ă.