#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 | #64536766 | Utilizator | |
| Fișier | egale.cpp | Dimensiune | 274 B |
| Data încărcării | 13 Mai 2026, 08:49 | Scor/rezultat | Eroare de compilare |
egale.cpp:5:10: error: conflicting declaration ‘std::ofstream fin’ 5 | ofstream fin("egale.out"); | ^~~ egale.cpp:4:10: note: previous declaration as ‘std::ifstream fin’ 4 | ifstream fin("egale.in"); | ^~~ egale.cpp: In function ‘int main()’: egale.cpp:15:27: error: expected ‘;’ at end of input 15 | for(int i=1; i<=9 | ^ | ; egale.cpp:15:27: error: expected primary-expression at end of input egale.cpp:15:27: error: expected ‘)’ at end of input 15 | for(int i=1; i<=9 | ~ ^ | ) egale.cpp:15:27: error: expected statement at end of input egale.cpp:15:27: error: expected ‘}’ at end of input egale.cpp:14:6: note: to match this ‘{’ 14 | { | ^ egale.cpp:15:27: error: expected ‘}’ at end of input 15 | for(int i=1; i<=9 | ^ egale.cpp:9:12: note: to match this ‘{’ 9 | if(op==1) { | ^ egale.cpp:15:27: error: expected ‘}’ at end of input 15 | for(int i=1; i<=9 | ^ egale.cpp:7:1: note: to match this ‘{’ 7 | {int op; | ^
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ă.