#1005
Numere8
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 | #49402112 | Utilizator | |
Fișier | numere8.cpp | Dimensiune | 366 B |
Data încărcării | 29 Februarie 2024, 08:33 | Scor / rezultat | Eroare de compilare |
numere8.cpp:2:1: error: 'ifstream' does not name a type ifstream f ("numere8.in"); ^ numere8.cpp:3:1: error: 'ofstream' does not name a type ofstream g ("numere8.out"); ^ numere8.cpp:4:7: error: expected nested-name-specifier before 'namepace' using namepace std; ^ numere8.cpp:4:7: error: 'namepace' has not been declared numere8.cpp:4:16: error: expected ';' before 'std' using namepace std; ^ numere8.cpp:4:16: error: 'std' does not name a type numere8.cpp: In function 'int main()': numere8.cpp:9:17: warning: right operand of comma operator has no effect [-Wunused-value] for (i = 1, i <= n, i++) ^ numere8.cpp:9:26: error: expected ';' before ')' token for (i = 1, i <= n, i++) ^ numere8.cpp:14:3: error: expected primary-expression before 'while' while (!f.eof ()) ^ numere8.cpp:14:3: error: expected ';' before 'while' numere8.cpp:14:3: error: expected primary-expression before 'while' numere8.cpp:14:3: error: expected ')' before 'while' numere8.cpp:14:11: error: 'f' was not declared in this scope while (!f.eof ()) ^ numere8.cpp:23:3: error: 'g' was not declared in this scope g<<i; ^ numere8.cpp:26:3: error: 'f' was not declared in this scope f.eof (); ^ numere8.cpp:27:3: error: 'g' was not declared in this scope g.eof (); ^
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ă.