#4918
O persoana are de urcat n trepte. Aflaţi in câte moduri poate urca cele n trepte.
| Problema | TreptePD | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64631222 | Utilizator | |
| Fișier | treptepd.cpp | Dimensiune | 215 B |
| Data încărcării | 19 Mai 2026, 13:46 | Scor/rezultat | Eroare de compilare |
treptepd.cpp: In function ‘long long int lepcso(long long int)’: treptepd.cpp:10:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 10 | int main() | ^~ treptepd.cpp:10:9: note: remove parentheses to default-initialize a variable 10 | int main() | ^~ | -- treptepd.cpp:10:9: note: or replace parentheses with braces to value-initialize a variable treptepd.cpp:11:1: error: a function-definition is not allowed here before ‘{’ token 11 | { | ^ treptepd.cpp:14:2: error: expected ‘}’ at end of input 14 | } | ^ treptepd.cpp:6:1: note: to match this ‘{’ 6 | { | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema TreptePD 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ă.