#3794
InterclasNoMemory1
Se dau două șiruri de numere naturale, cu n
, respectiv m
elemente, ordonate crescător. Să se determine al treilea șir, care să conţină, în ordine crescătoare, elementele din primele două şiruri.
Problema | InterclasNoMemory1 | Operații I/O |
file.in /file.out
|
---|---|---|---|
Limita timp | 0.25 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
Id soluție | #51195769 | Utilizator | |
Fișier | interclasnomemory1.cpp | Dimensiune | 871 B |
Data încărcării | 29 Mai 2024, 14:40 | Scor / rezultat | Eroare de compilare |
interclasnomemory1.cpp: In function 'void interclasare()': interclasnomemory1.cpp:12:5: error: 'ifstream' was not declared in this scope ifstream cin("file1.txt"); ^ interclasnomemory1.cpp:12:5: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from interclasnomemory1.cpp:8: /usr/include/c++/4.8/iosfwd:157:34: note: 'std::ifstream' typedef basic_ifstream<char> ifstream; ^ interclasnomemory1.cpp:12:14: error: expected ';' before 'cin' ifstream cin("file1.txt"); ^ interclasnomemory1.cpp:13:11: error: expected ';' before 'cin2' ifstream cin2("file2.txt"); ^ interclasnomemory1.cpp:14:2: error: 'ofstream' was not declared in this scope ofstream cout("file.out"); ^ interclasnomemory1.cpp:14:2: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from interclasnomemory1.cpp:8: /usr/include/c++/4.8/iosfwd:160:34: note: 'std::ofstream' typedef basic_ofstream<char> ofstream; ^ interclasnomemory1.cpp:14:11: error: expected ';' before 'cout' ofstream cout("file.out"); ^ interclasnomemory1.cpp:18:5: error: 'cin' was not declared in this scope cin >> n; ^ interclasnomemory1.cpp:19:5: error: 'cin2' was not declared in this scope cin2 >> m; ^ interclasnomemory1.cpp:31:13: error: 'cout' was not declared in this scope cout << x << " "; ^ interclasnomemory1.cpp:39:13: error: 'cout' was not declared in this scope cout << y << " "; ^ interclasnomemory1.cpp:50:9: error: 'cout' was not declared in this scope cout << x << " "; ^ interclasnomemory1.cpp:59:9: error: 'cout' was not declared in this scope cout << y << " "; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema InterclasNoMemory1 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ă.