#1923
Afişaţi, în ordine crescătoare, toate numerele dintr-un anumit interval care au toate cifrele egale.
Pregătire clasa a IX-a, C.N. "Frații Buzești" - Craiova
| Problema | egale | Operații I/O |
egale.in/egale.out
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 8 MB
/
Stivă 8 MB
|
| Id soluție | #64536349 | Utilizator | |
| Fișier | egale.cpp | Dimensiune | 803 B |
| Data încărcării | 13 Mai 2026, 08:41 | Scor/rezultat | Eroare de compilare |
egale.cpp:3:1: error: ‘ifstream’ does not name a type 3 | ifstream fin ("egale.in"); | ^~~~~~~~ egale.cpp:4:5: error: ‘ofstream’ does not name a type 4 | ofstream fout ("egale.out"); | ^~~~~~~~ egale.cpp: In function ‘int main()’: egale.cpp:10:5: error: ‘fin’ was not declared in this scope 10 | fin>>op; | ^~~ egale.cpp:18:17: error: ‘fout’ was not declared in this scope 18 | fout<<i*p<<" "; | ^~~~ egale.cpp:16:13: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 16 | for (int i=1;i<=9;++i) | ^~~ egale.cpp:19:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 19 | p=p*10+1; | ^ egale.cpp:21:9: error: ‘fout’ was not declared in this scope 21 | fout<<"\n"; | ^~~~ egale.cpp:30:21: error: ‘fout’ was not declared in this scope 30 | fout<<cif; | ^~~~ egale.cpp:31:17: error: ‘fout’ was not declared in this scope 31 | fout<<" "; | ^~~~ egale.cpp:34:9: error: ‘fout’ was not declared in this scope 34 | fout<<"\n"; | ^~~~ egale.cpp:36:6: error: expected ‘}’ at end of input 36 | } | ^ egale.cpp:8:1: note: to match this ‘{’ 8 | { | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema egale 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ă.