#242
Se dă un număr natural x
și două șiruri a
și b
, cu n
, respectiv m
elemente, numere naturale, ordonate strict crescător. Să se afișeze, în ordine crescătoare, multiplii lui x
care se află doar în unul dintre cele două șiruri.
Variante Bacalaureat 2009
Problema | InterclasM | Operații I/O |
![]() interclasm.in /interclasm.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58063587 | Utilizator | |
Fișier | interclasm.cpp | Dimensiune | 988 B |
Data încărcării | 12 Mai 2025, 11:58 | Scor / rezultat | Eroare de compilare |
interclasm.cpp:6:17: warning: missing terminating " character [enabled by default] ifstream in("interclasm.in ^ interclasm.cpp:6:5: error: missing terminating " character ifstream in("interclasm.in ^ interclasm.cpp: In function 'int main()': interclasm.cpp:7:17: error: expected ',' or '...' before '(' token ofstream out("interclasm.out"); ^ interclasm.cpp:7:35: error: expected ')' before ';' token ofstream out("interclasm.out"); ^ interclasm.cpp:8:11: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'int' to binary 'operator>>' in >> x; ^ interclasm.cpp:9:11: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'int' to binary 'operator>>' in >> n; ^ interclasm.cpp:12:18: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'int' to binary 'operator>>' in >> a[i]; ^ interclasm.cpp:13:11: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'int' to binary 'operator>>' in >> m; ^ interclasm.cpp:16:18: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'int' to binary 'operator>>' in >> b[j]; ^ interclasm.cpp:52:13: error: 'out' was not declared in this scope out << c[i] << " "; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema InterclasM 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ă.