#3960
intersectie_siruri
Dându-se mai multe șiruri crescătoare de numere naturale, fiecare astfel de șir terminându-se cu numărul 0
, se cere să se afișeze în ordine strict crescătoare, numerele comune tuturor șirurilor.
ad-hoc
Problema | intersectie_siruri | Operații I/O |
intersectie.in /intersectie.out
|
---|---|---|---|
Limita timp | 0.4 secunde | Limita memorie |
Total: 2 MB
/
Stivă 1 MB
|
Id soluție | #49313265 | Utilizator | |
Fișier | intersectie_siruri.cpp | Dimensiune | 986 B |
Data încărcării | 25 Februarie 2024, 22:04 | Scor / rezultat | Eroare de compilare |
intersectie_siruri.cpp:4:1: error: stray '\342' in program ifstream fin(“intersectie.in”); ^ intersectie_siruri.cpp:4:1: error: stray '\200' in program intersectie_siruri.cpp:4:1: error: stray '\234' in program intersectie_siruri.cpp:4:1: error: stray '\342' in program intersectie_siruri.cpp:4:1: error: stray '\200' in program intersectie_siruri.cpp:4:1: error: stray '\235' in program intersectie_siruri.cpp:5:1: error: stray '\342' in program ofstream fout(“intersectie.out”); ^ intersectie_siruri.cpp:5:1: error: stray '\200' in program intersectie_siruri.cpp:5:1: error: stray '\234' in program intersectie_siruri.cpp:5:1: error: stray '\342' in program intersectie_siruri.cpp:5:1: error: stray '\200' in program intersectie_siruri.cpp:5:1: error: stray '\235' in program intersectie_siruri.cpp:39:13: error: stray '\342' in program fout<<“nu exista”; ^ intersectie_siruri.cpp:39:13: error: stray '\200' in program intersectie_siruri.cpp:39:13: error: stray '\234' in program intersectie_siruri.cpp:39:13: error: stray '\342' in program intersectie_siruri.cpp:39:13: error: stray '\200' in program intersectie_siruri.cpp:39:13: error: stray '\235' in program intersectie_siruri.cpp:49:9: error: stray '\342' in program fout<<a[i]<<“ “; ^ intersectie_siruri.cpp:49:9: error: stray '\200' in program intersectie_siruri.cpp:49:9: error: stray '\234' in program intersectie_siruri.cpp:49:9: error: stray '\342' in program intersectie_siruri.cpp:49:9: error: stray '\200' in program intersectie_siruri.cpp:49:9: error: stray '\234' in program intersectie_siruri.cpp:4:17: error: 'intersectie' was not declared in this scope ifstream fin(“intersectie.in”); ^ intersectie_siruri.cpp:5:18: error: 'intersectie' was not declared in this scope ofstream fout(“intersectie.out”); ^ intersectie_siruri.cpp: In function 'int main()': intersectie_siruri.cpp:39:22: error: 'nu' was not declared in this scope fout<<“nu exista”; ^ intersectie_siruri.cpp:39:25: error: expected ';' before 'exista' fout<<“nu exista”; ^ intersectie_siruri.cpp:49:28: error: expected primary-expression before ';' token fout<<a[i]<<“ “; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema intersectie_siruri 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ă.