#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 | #50468726 | Utilizator | |
Fișier | numere8.cpp | Dimensiune | 303 B |
Data încărcării | 10 Aprilie 2024, 17:20 | Scor / rezultat | Eroare de compilare |
numere8.cpp:5:1: error: stray '\342' in program ifstream cin(“numere8.in”); ^ numere8.cpp:5:1: error: stray '\200' in program numere8.cpp:5:1: error: stray '\234' in program numere8.cpp:5:1: error: stray '\342' in program numere8.cpp:5:1: error: stray '\200' in program numere8.cpp:5:1: error: stray '\235' in program numere8.cpp:6:1: error: stray '\342' in program ofstream cout(“numere8.out”); ^ numere8.cpp:6:1: error: stray '\200' in program numere8.cpp:6:1: error: stray '\234' in program numere8.cpp:6:1: error: stray '\342' in program numere8.cpp:6:1: error: stray '\200' in program numere8.cpp:6:1: error: stray '\235' in program numere8.cpp:15:1: error: stray '\342' in program { if(x < 10000) f[x]++; } for (int i = 9999; i >= 1; i—) { if(f[i] == 0) cout << i << “ “; } return 0; ^ numere8.cpp:15:1: error: stray '\200' in program numere8.cpp:15:1: error: stray '\224' in program numere8.cpp:15:1: error: stray '\342' in program numere8.cpp:15:1: error: stray '\200' in program numere8.cpp:15:1: error: stray '\234' in program numere8.cpp:15:1: error: stray '\342' in program numere8.cpp:15:1: error: stray '\200' in program numere8.cpp:15:1: error: stray '\234' in program numere8.cpp:5:17: error: 'numere8' was not declared in this scope ifstream cin(“numere8.in”); ^ numere8.cpp:6:18: error: 'numere8' was not declared in this scope ofstream cout(“numere8.out”); ^ numere8.cpp: In function 'int main()': numere8.cpp:15:1: error: expected ')' before '{' token { if(x < 10000) f[x]++; } for (int i = 9999; i >= 1; i—) { if(f[i] == 0) cout << i << “ “; } return 0; ^ numere8.cpp:15:46: error: 'i' was not declared in this scope { if(x < 10000) f[x]++; } for (int i = 9999; i >= 1; i—) { if(f[i] == 0) cout << i << “ “; } return 0; ^ numere8.cpp:15:58: error: expected ';' before ')' token { if(x < 10000) f[x]++; } for (int i = 9999; i >= 1; i—) { if(f[i] == 0) cout << i << “ “; } return 0; ^ numere8.cpp:16:1: error: expected '}' at end of input } ^
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ă.