#1005
Se dă o listă cu numere naturale. Să se determine numerele naturale nenule cu cel mult patru cifre care nu apar în lista dată.
Problema | Numere8 | Operații I/O |
![]() numere8.in /numere8.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #56740683 | Utilizator | |
Fișier | numere8.cpp | Dimensiune | 253 B |
Data încărcării | 04 Martie 2025, 13:22 | Scor / rezultat | Eroare de compilare |
numere8.cpp:5:1: error: expected ',' or ';' before 'ofstream' ofstream g("numere8.out") ^ numere8.cpp: In function 'int main()': numere8.cpp:9:13: error: 'x' was not declared in this scope while(f>>x) ^ numere8.cpp:12:9: error: 'a' was not declared in this scope a[x]=1; ^ numere8.cpp:14:5: error: 'x' was not declared in this scope for(x=9999,x>=0,x--) ^ numere8.cpp:14:20: error: expected ';' before ')' token for(x=9999,x>=0,x--) ^ numere8.cpp:17:1: error: expected primary-expression before '}' token } ^ numere8.cpp:17:1: error: expected ';' before '}' token numere8.cpp:17:1: error: expected primary-expression before '}' token numere8.cpp:17:1: error: expected ')' before '}' token numere8.cpp:17:1: error: expected primary-expression before '}' token numere8.cpp:17:1: error: expected ';' before '}' token
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numere8 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ă.