Detalii evaluare #58005875

Rezumat problemă

IRDDS

#3974

Se dau 2 mulţimi de numere naturale. Să se afișeze mulţimea rezultată în urma efectuării unei operații.

Detalii

Problema IRDDS Operații I/O tastatură/ecran
Limita timp 0.3 secunde Limita memorie Total: 8 MB / Stivă 4 MB
Id soluție #58005875 Utilizator Andras Catalina (AndrasCatalina)
Fișier irdds.cpp Dimensiune 874 B
Data încărcării 07 Mai 2025, 20:27 Scor / rezultat Eroare de compilare

Evaluare

Mesaj 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;
      ^

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema IRDDS face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.

Du-te sus!