#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 | #51975307 | Utilizator | |
Fișier | interclasm.cpp | Dimensiune | 841 B |
Data încărcării | 13 Septembrie 2024, 16:16 | Scor / rezultat | Eroare de compilare |
interclasm.cpp:2:7: error: expected nested-name-specifier before 'namesapce' using namesapce std; ^ interclasm.cpp:2:7: error: 'namesapce' has not been declared interclasm.cpp:2:17: error: expected ';' before 'std' using namesapce std; ^ interclasm.cpp:2:17: error: 'std' does not name a type interclasm.cpp:3:1: error: 'ifstream' does not name a type ifstream cin(""); ^ interclasm.cpp:4:1: error: 'ofstream' does not name a type ofstream cout(""); ^ interclasm.cpp: In function 'int main()': interclasm.cpp:8:5: error: 'cin' was not declared in this scope cin>>x; ^ interclasm.cpp:12:14: error: 'v' was not declared in this scope cin>>v; ^ interclasm.cpp:14:10: error: 'k' was not declared in this scope {k++; ^ interclasm.cpp:20:11: error: 'v' was not declared in this scope {cin>>v; ^ interclasm.cpp:22:7: error: 'l' was not declared in this scope {l++; ^ interclasm.cpp:25:13: error: 'd' was not declared in this scope i=1;j=1;d=0; ^ interclasm.cpp:26:14: error: 'k' was not declared in this scope while(i<=k && j<=l) ^ interclasm.cpp:26:22: error: 'l' was not declared in this scope while(i<=k && j<=l) ^ interclasm.cpp:29:10: error: 'c' was not declared in this scope c[++d]=a[i++]; ^ interclasm.cpp:32:14: error: 'c' was not declared in this scope c[++k]=b[j++]; ^ interclasm.cpp:35:13: error: 'c' was not declared in this scope c[++d]=a[i++]; ^ interclasm.cpp:39:15: error: 'k' was not declared in this scope while(i<=k) ^ interclasm.cpp:40:8: error: 'c' was not declared in this scope c[++d]=a[i++]; ^ interclasm.cpp:41:14: error: 'l' was not declared in this scope while(j<=l) ^ interclasm.cpp:42:9: error: 'c' was not declared in this scope c[++d]=b[j++]; ^ interclasm.cpp:43:16: error: 'k' was not declared in this scope for(i=1;i<=k;i++) ^ interclasm.cpp:44:9: error: 'cout' was not declared in this scope cout<<a[i]; ^ interclasm.cpp:45:16: error: 'l' was not declared in this scope for(j=1;j<=l;j++) ^ interclasm.cpp:46:9: 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ă.