#3974
IRDDS
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 | #58007875 | Utilizator | |
Fișier | irdds.cpp | Dimensiune | 804 B |
Data încărcării | 07 Mai 2025, 22:33 | Scor / rezultat | Eroare de compilare |
irdds.cpp: In function 'int main()': irdds.cpp:23:62: error: no matching function for call to 'set_difference(std::vector<int>::iterator, std::vector<int>::iterator, std::vector<int>::iterator, std::vector<int>::iterator)' set_difference(a.begin(), a.end(), b.begin(), b.end()); ^ irdds.cpp:23:62: note: candidates are: In file included from /usr/include/c++/4.8/algorithm:62:0, from irdds.cpp:3: /usr/include/c++/4.8/bits/stl_algo.h:5987:5: note: template<class _IIter1, class _IIter2, class _OIter> _OIter std::set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter) set_difference(_InputIterator1 __first1, _InputIterator1 __last1, ^ /usr/include/c++/4.8/bits/stl_algo.h:5987:5: note: template argument deduction/substitution failed: irdds.cpp:23:62: note: candidate expects 5 arguments, 4 provided set_difference(a.begin(), a.end(), b.begin(), b.end()); ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from irdds.cpp:3: /usr/include/c++/4.8/bits/stl_algo.h:6048:5: note: template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare) set_difference(_InputIterator1 __first1, _InputIterator1 __last1, ^ /usr/include/c++/4.8/bits/stl_algo.h:6048:5: note: template argument deduction/substitution failed: irdds.cpp:23:62: note: candidate expects 6 arguments, 4 provided set_difference(a.begin(), a.end(), b.begin(), b.end()); ^ irdds.cpp:27:57: error: no matching function for call to 'set_union(std::vector<int>::iterator, std::vector<int>::iterator, std::vector<int>::iterator, std::vector<int>::iterator)' set_union(a.begin(), a.end(), b.begin(), b.end()); ^ irdds.cpp:27:57: note: candidates are: In file included from /usr/include/c++/4.8/algorithm:62:0, from irdds.cpp:3: /usr/include/c++/4.8/bits/stl_algo.h:5738:5: note: template<class _IIter1, class _IIter2, class _OIter> _OIter std::set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter) set_union(_InputIterator1 __first1, _InputIterator1 __last1, ^ /usr/include/c++/4.8/bits/stl_algo.h:5738:5: note: template argument deduction/substitution failed: irdds.cpp:27:57: note: candidate expects 5 arguments, 4 provided set_union(a.begin(), a.end(), b.begin(), b.end()); ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from irdds.cpp:3: /usr/include/c++/4.8/bits/stl_algo.h:5805:5: note: template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare) set_union(_InputIterator1 __first1, _InputIterator1 __last1, ^ /usr/include/c++/4.8/bits/stl_algo.h:5805:5: note: template argument deduction/substitution failed: irdds.cpp:27:57: note: candidate expects 6 arguments, 4 provided set_union(a.begin(), a.end(), b.begin(), b.end()); ^ irdds.cpp:31:64: error: no matching function for call to 'set_intersection(std::vector<int>::iterator, std::vector<int>::iterator, std::vector<int>::iterator, std::vector<int>::iterator)' set_intersection(a.begin(), a.end(), b.begin(), b.end()); ^ irdds.cpp:31:64: note: candidates are: In file included from /usr/include/c++/4.8/algorithm:62:0, from irdds.cpp:3: /usr/include/c++/4.8/bits/stl_algo.h:5872:5: note: template<class _IIter1, class _IIter2, class _OIter> _OIter std::set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter) set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, ^ /usr/include/c++/4.8/bits/stl_algo.h:5872:5: note: template argument deduction/substitution failed: irdds.cpp:31:64: note: candidate expects 5 arguments, 4 provided set_intersection(a.begin(), a.end(), b.begin(), b.end()); ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from irdds.cpp:3: /usr/include/c++/4.8/bits/stl_algo.h:5929:5: note: template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare) set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, ^ /usr/include/c++/4.8/bits/stl_algo.h:5929:5: note: template argument deduction/substitution failed: irdds.cpp:31:64: note: candidate expects 6 arguments, 4 provided set_intersection(a.begin(), a.end(), b.begin(), b.end()); ^ irdds.cpp:35:72: error: no matching function for call to 'set_symmetric_difference(std::vector<int>::iterator, std::vector<int>::iterator, std::vector<int>::iterator, std::vector<int>::iterator)' set_symmetric_difference(a.begin(), a.end(), b.begin(), b.end()); ^ irdds.cpp:35:72: note: candidates are: In file included from /usr/include/c++/4.8/algorithm:62:0, from irdds.cpp:3: /usr/include/c++/4.8/bits/stl_algo.h:6106:5: note: template<class _IIter1, class _IIter2, class _OIter> _OIter std::set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter) set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, ^ /usr/include/c++/4.8/bits/stl_algo.h:6106:5: note: template argument deduction/substitution failed: irdds.cpp:35:72: note: candidate expects 5 arguments, 4 provided set_symmetric_difference(a.begin(), a.end(), b.begin(), b.end()); ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from irdds.cpp:3: /usr/include/c++/4.8/bits/stl_algo.h:6172:5: note: template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare) set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, ^ /usr/include/c++/4.8/bits/stl_algo.h:6172:5: note: template argument deduction/substitution failed: irdds.cpp:35:72: note: candidate expects 6 arguments, 4 provided set_symmetric_difference(a.begin(), a.end(), b.begin(), b.end()); ^
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ă.