#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 | tastatură/ecran |
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 8 MB
/
Stivă 4 MB
|
Id soluție | #55118224 | Utilizator | |
Fișier | irdds.cpp | Dimensiune | 2.80 KB |
Data încărcării | 26 Decembrie 2024, 21:34 | Scor / rezultat | Eroare de 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 ^
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ă.