Detalii evaluare #55118224

Rezumat problemă

#3974 IRDDS

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 #55118224 Utilizator Păștin Ligia (Ligia10)
Fișier irdds.cpp Dimensiune 2.80 KB
Data încărcării 26 Decembrie 2024, 21:34 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

irdds.cpp: In function 'int main()':
irdds.cpp:7:5: error: 'cin' was not declared in this scope
     cin >> n >> m >> c;

     ^
irdds.cpp:7:5: note: suggested alternative:
In file included from irdds.cpp:1:0:
/usr/include/c++/4.8/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
irdds.cpp:10:30: error: 'sort' was not declared in this scope
         sort(a + 1, a + n + 1);

                              ^
irdds.cpp:10:30: note: suggested alternative:
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:5483:5: note:   'std::sort'
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
     ^
irdds.cpp:23:17: error: 'cout' was not declared in this scope
                 cout<<a[i]<<" ";

                 ^
irdds.cpp:23:17: note: suggested alternative:
In file included from irdds.cpp:1:0:
/usr/include/c++/4.8/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
irdds.cpp:36:9: error: 'cout' was not declared in this scope
         cout<<a[i]<<" ";

         ^
irdds.cpp:36:9: note: suggested alternative:
In file included from irdds.cpp:1:0:
/usr/include/c++/4.8/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
irdds.cpp:50:18: error: 'cout' was not declared in this scope
                  cout<<a[i]<<" ";

                  ^
irdds.cpp:50:18: note: suggested alternative:
In file included from irdds.cpp:1:0:
/usr/include/c++/4.8/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
irdds.cpp:58:17: error: 'cout' was not declared in this scope
                 cout<<a[i]<<" ";

                 ^
irdds.cpp:58:17: note: suggested alternative:
In file included from irdds.cpp:1:0:
/usr/include/c++/4.8/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
irdds.cpp:65:21: error: 'cout' was not declared in this scope
                     cout<<b[j]<<" ";

                     ^
irdds.cpp:65:21: note: suggested alternative:
In file included from irdds.cpp:1:0:
/usr/include/c++/4.8/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
irdds.cpp:71:13: error: 'cout' was not declared in this scope
             cout<<a[i]<<" ";

             ^
irdds.cpp:71:13: note: suggested alternative:
In file included from irdds.cpp:1:0:
/usr/include/c++/4.8/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
irdds.cpp:76:13: error: 'cout' was not declared in this scope
             cout<<b[j]<<" ";

             ^
irdds.cpp:76:13: note: suggested alternative:
In file included from irdds.cpp:1:0:
/usr/include/c++/4.8/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
irdds.cpp:104:13: error: 'cout' was not declared in this scope
             cout << intersectie[i] << " ";

             ^
irdds.cpp:104:13: note: suggested alternative:
In file included from irdds.cpp:1:0:
/usr/include/c++/4.8/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
irdds.cpp:146:13: error: 'cout' was not declared in this scope
             cout<<v[i]<<" ";

             ^
irdds.cpp:146:13: note: suggested alternative:
In file included from irdds.cpp:1:0:
/usr/include/c++/4.8/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^

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