#4572
Să se scrie un program care citește un număr natural n și afișează numărul obținut prin eliminarea cifelor mai mari decât 2 și mai mici decât 6.
| Problema | Cifre26 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64913376 | Utilizator | |
| Fișier | cifre26.cpp | Dimensiune | 262 B |
| Data încărcării | 12 Iunie 2026, 10:47 | Scor/rezultat | Eroare de compilare |
cifre26.cpp: In function ‘int main()’: cifre26.cpp:12:5: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 12 | while(n>0); | ^~~~~ cifre26.cpp:13:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ 13 | if(nr==0) | ^~ cifre26.cpp:17:2: error: expected ‘while’ at end of input 17 | } | ^ cifre26.cpp:17:2: error: expected ‘(’ at end of input 17 | } | ^ | ( cifre26.cpp:17:2: error: expected primary-expression at end of input cifre26.cpp:17:2: error: expected ‘)’ at end of input 17 | } | ^ | ) cifre26.cpp:17:2: error: expected ‘;’ at end of input 17 | } | ^ | ; cifre26.cpp:17:2: error: expected ‘}’ at end of input cifre26.cpp:5:1: note: to match this ‘{’ 5 | { cin>>n; | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cifre26 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ă.