#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 | #49313298 | Utilizator | |
Fișier | intersectie_siruri.cpp | Dimensiune | 980 B |
Data încărcării | 25 Februarie 2024, 22:06 | Scor / rezultat | Eroare de compilare |
intersectie_siruri.cpp:4:1: error: stray '\342' in program ifstream in(“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 out(“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 out<<“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 out<<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:16: error: 'intersectie' was not declared in this scope ifstream in(“intersectie.in”); ^ intersectie_siruri.cpp:5:17: error: 'intersectie' was not declared in this scope ofstream out(“intersectie.out”); ^ intersectie_siruri.cpp: In function 'int main()': intersectie_siruri.cpp:9:12: error: 'fin' was not declared in this scope while (fin>>x && x!=0) ^ intersectie_siruri.cpp:39:21: error: 'nu' was not declared in this scope out<<“nu exista”; ^ intersectie_siruri.cpp:39:24: error: expected ';' before 'exista' out<<“nu exista”; ^ intersectie_siruri.cpp:49:27: error: expected primary-expression before ';' token out<<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ă.