#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 | #64536441 | Utilizator | |
| Fișier | egale.cpp | Dimensiune | 654 B |
| Data încărcării | 13 Mai 2026, 08:43 | Scor/rezultat | Eroare de compilare |
egale.cpp: In function ‘int main()’: egale.cpp:16:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 16 | for(int i=1; i<=9; i++) | ^~~ egale.cpp:19:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 19 | p=p*10+1; | ^ egale.cpp:28:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 28 | for (int cif=1;cif<=9;cif++) | ^~~ egale.cpp:31:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 31 | fout<<" "; | ^~~~ egale.cpp: At global scope: egale.cpp:37:1: error: expected unqualified-id before ‘return’ 37 | return 0; | ^~~~~~ egale.cpp:39:1: error: expected declaration before ‘}’ token 39 | } | ^
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ă.