#242
InterclasM
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 | #51286268 | Utilizator | |
Fișier | interclasm.cpp | Dimensiune | 887 B |
Data încărcării | 04 Iunie 2024, 10:29 | Scor / rezultat | Eroare de compilare |
interclasm.cpp:5:1: error: expected ',' or ';' before 'ofstream' ofstream cout("interclasm.out") ^ interclasm.cpp: In function 'int main()': interclasm.cpp:10:10: error: 'x' was not declared in this scope cin>>x; ^ interclasm.cpp:11:10: error: 'n' was not declared in this scope cin>>n; ^ interclasm.cpp:13:14: error: 'a' was not declared in this scope cin>>a[i]; ^ interclasm.cpp:14:10: error: 'm' was not declared in this scope cin>>m; ^ interclasm.cpp:16:14: error: 'b' was not declared in this scope cin>>b[i]; ^ interclasm.cpp:19:12: error: 'a' was not declared in this scope if(a[i]<b[j]) ^ interclasm.cpp:19:17: error: 'b' was not declared in this scope if(a[i]<b[j]) ^ interclasm.cpp:22:17: error: 'cout' was not declared in this scope cout<<a[i]<<" "; ^ interclasm.cpp:28:17: error: 'cout' was not declared in this scope cout<<b[j]<<" "; ^ interclasm.cpp:34:16: error: 'a' was not declared in this scope if(a[i]%x==0) ^ interclasm.cpp:35:17: error: 'cout' was not declared in this scope cout<<a[i]<<" "; ^ interclasm.cpp:39:16: error: 'b' was not declared in this scope if(b[j]%x==0) ^ interclasm.cpp:40:17: error: 'cout' was not declared in this scope cout<<b[j]<<" "; ^
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ă.