#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 | #16696005 | Utilizator | |
Fișier | numere8.cpp | Dimensiune | 338 B |
Data încărcării | 16 Septembrie 2019, 22:03 | Scor / rezultat | Eroare de compilare |
numere8.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <fstream> ^ numere8.cpp:2:1: error: stray '\302' in program using namespace std; ^ numere8.cpp:2:1: error: stray '\240' in program numere8.cpp:2:1: error: stray '\302' in program numere8.cpp:2:1: error: stray '\240' in program numere8.cpp:3:1: error: stray '\302' in program int x,i,v[10020]; ^ numere8.cpp:3:1: error: stray '\240' in program numere8.cpp:4:1: error: stray '\302' in program int main() ^ numere8.cpp:4:1: error: stray '\240' in program numere8.cpp:6:1: error: stray '\302' in program ifstream f("numere8.in"); ^ numere8.cpp:6:1: error: stray '\240' in program numere8.cpp:6:1: error: stray '\302' in program numere8.cpp:6:1: error: stray '\240' in program numere8.cpp:6:1: error: stray '\302' in program numere8.cpp:6:1: error: stray '\240' in program numere8.cpp:6:1: error: stray '\302' in program numere8.cpp:6:1: error: stray '\240' in program numere8.cpp:6:1: error: stray '\302' in program numere8.cpp:6:1: error: stray '\240' in program numere8.cpp:7:1: error: stray '\302' in program ofstream g("numere8.out"); ^ numere8.cpp:7:1: error: stray '\240' in program numere8.cpp:7:1: error: stray '\302' in program numere8.cpp:7:1: error: stray '\240' in program numere8.cpp:7:1: error: stray '\302' in program numere8.cpp:7:1: error: stray '\240' in program numere8.cpp:7:1: error: stray '\302' in program numere8.cpp:7:1: error: stray '\240' in program numere8.cpp:7:1: error: stray '\302' in program numere8.cpp:7:1: error: stray '\240' in program numere8.cpp:8:1: error: stray '\302' in program while(f>>x) ^ numere8.cpp:8:1: error: stray '\240' in program numere8.cpp:8:1: error: stray '\302' in program numere8.cpp:8:1: error: stray '\240' in program numere8.cpp:8:1: error: stray '\302' in program numere8.cpp:8:1: error: stray '\240' in program numere8.cpp:8:1: error: stray '\302' in program numere8.cpp:8:1: error: stray '\240' in program numere8.cpp:9:1: error: stray '\302' in program if(x<=9999) v[x]=1; ^ numere8.cpp:9:1: error: stray '\240' in program numere8.cpp:9:1: error: stray '\302' in program numere8.cpp:9:1: error: stray '\240' in program numere8.cpp:9:1: error: stray '\302' in program numere8.cpp:9:1: error: stray '\240' in program numere8.cpp:9:1: error: stray '\302' in program numere8.cpp:9:1: error: stray '\240' in program numere8.cpp:9:1: error: stray '\302' in program numere8.cpp:9:1: error: stray '\240' in program numere8.cpp:9:1: error: stray '\302' in program numere8.cpp:9:1: error: stray '\240' in program numere8.cpp:10:1: error: stray '\302' in program for(i=9999;i>=1;i--) ^ numere8.cpp:10:1: error: stray '\240' in program numere8.cpp:10:1: error: stray '\302' in program numere8.cpp:10:1: error: stray '\240' in program numere8.cpp:10:1: error: stray '\302' in program numere8.cpp:10:1: error: stray '\240' in program numere8.cpp:10:1: error: stray '\302' in program numere8.cpp:10:1: error: stray '\240' in program numere8.cpp:11:1: error: stray '\302' in program if(v[i]==0) g<<i<<" "; ^ numere8.cpp:11:1: error: stray '\240' in program numere8.cpp:11:1: error: stray '\302' in program numere8.cpp:11:1: error: stray '\240' in program numere8.cpp:11:1: error: stray '\302' in program numere8.cpp:11:1: error: stray '\240' in program numere8.cpp:11:1: error: stray '\302' in program numere8.cpp:11:1: error: stray '\240' in program numere8.cpp:11:1: error: stray '\302' in program numere8.cpp:11:1: error: stray '\240' in program numere8.cpp:11:1: error: stray '\302' in program numere8.cpp:11:1: error: stray '\240' in program numere8.cpp:11:1: error: stray '\302' in program numere8.cpp:11:1: error: stray '\240' in program numere8.cpp:11:1: error: stray '\302' in program numere8.cpp:11:1: error: stray '\240' in program numere8.cpp:12:1: error: stray '\302' in program f.close(); ^ numere8.cpp:12:1: error: stray '\240' in program numere8.cpp:12:1: error: stray '\302' in program numere8.cpp:12:1: error: stray '\240' in program numere8.cpp:12:1: error: stray '\302' in program numere8.cpp:12:1: error: stray '\240' in program numere8.cpp:12:1: error: stray '\302' in program numere8.cpp:12:1: error: stray '\240' in program numere8.cpp:13:1: error: stray '\302' in program g.close(); ^ numere8.cpp:13:1: error: stray '\240' in program numere8.cpp:13:1: error: stray '\302' in program numere8.cpp:13:1: error: stray '\240' in program numere8.cpp:13:1: error: stray '\302' in program numere8.cpp:13:1: error: stray '\240' in program numere8.cpp:13:1: error: stray '\302' in program numere8.cpp:13:1: error: stray '\240' in program numere8.cpp:14:1: error: stray '\302' in program return 0; ^ numere8.cpp:14:1: error: stray '\240' in program numere8.cpp:14:1: error: stray '\302' in program numere8.cpp:14:1: error: stray '\240' in program numere8.cpp:14:1: error: stray '\302' in program numere8.cpp:14:1: error: stray '\240' in program numere8.cpp:14:1: error: stray '\302' in program numere8.cpp:14:1: error: stray '\240' in program numere8.cpp:14:1: error: stray '\302' in program numere8.cpp:14:1: error: stray '\240' in program numere8.cpp: In function 'int main()': numere8.cpp:6:9: error: 'ifstream' was not declared in this scope ifstream f("numere8.in"); ^ numere8.cpp:6:19: error: expected ';' before 'f' ifstream f("numere8.in"); ^ numere8.cpp:7:9: error: 'ofstream' was not declared in this scope ofstream g("numere8.out"); ^ numere8.cpp:7:19: error: expected ';' before 'g' ofstream g("numere8.out"); ^ numere8.cpp:8:15: error: 'f' was not declared in this scope while(f>>x) ^ numere8.cpp:11:28: error: 'g' was not declared in this scope if(v[i]==0) g<<i<<" "; ^ numere8.cpp:12:9: error: 'f' was not declared in this scope f.close(); ^ numere8.cpp:13:9: error: 'g' was not declared in this scope g.close(); ^
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ă.