#4906
Se dau n numere naturale nenule. Aflați câte dintre ele au cel puțin două și cel mult șase cifre și sunt puteri ale lui 10.
| Problema | numere_p10 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 4 MB
/
Stivă 2 MB
|
| Id soluție | #64769583 | Utilizator | |
| Fișier | numere_p10.cpp | Dimensiune | 239 B |
| Data încărcării | 28 Mai 2026, 22:50 | Scor/rezultat | Eroare de compilare |
numere_p10.cpp: In function ‘int main()’: numere_p10.cpp:10:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 10 | if(x==10 ; x==100 ; x==1000 ; x==10000 ; x==100000) | ^ numere_p10.cpp:10:13: warning: statement has no effect [-Wunused-value] 10 | if(x==10 ; x==100 ; x==1000 ; x==10000 ; x==100000) | ~^~~~ numere_p10.cpp:10:26: error: expected ‘)’ before ‘;’ token 10 | if(x==10 ; x==100 ; x==1000 ; x==10000 ; x==100000) | ~ ^~ | ) numere_p10.cpp:10:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 10 | if(x==10 ; x==100 ; x==1000 ; x==10000 ; x==100000) | ^~ numere_p10.cpp:10:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 10 | if(x==10 ; x==100 ; x==1000 ; x==10000 ; x==100000) | ^ numere_p10.cpp:10:30: warning: statement has no effect [-Wunused-value] 10 | if(x==10 ; x==100 ; x==1000 ; x==10000 ; x==100000) | ~^~~~~~ numere_p10.cpp:10:40: warning: statement has no effect [-Wunused-value] 10 | if(x==10 ; x==100 ; x==1000 ; x==10000 ; x==100000) | ~^~~~~~~ numere_p10.cpp:10:59: error: expected ‘;’ before ‘)’ token 10 | if(x==10 ; x==100 ; x==1000 ; x==10000 ; x==100000) | ^ | ; numere_p10.cpp:10:51: warning: statement has no effect [-Wunused-value] 10 | if(x==10 ; x==100 ; x==1000 ; x==10000 ; x==100000) | ~^~~~~~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema numere_p10 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ă.