#256
FiboVerif
Se dau n
numere naturale. Să se verifice despre fiecare dacă este termen al şirului lui Fibonacci.
Problema | FiboVerif | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51351065 | Utilizator | |
Fișier | fiboverif.cpp | Dimensiune | 1013 B |
Data încărcării | 09 Iunie 2024, 23:14 | Scor / rezultat | Eroare de compilare |
fiboverif.cpp:2:10: error: stray '#' in program Problema #255 – Fibonacci – Rezolvari PBInfo ^ fiboverif.cpp:2:1: error: stray '\342' in program Problema #255 – Fibonacci – Rezolvari PBInfo ^ fiboverif.cpp:2:1: error: stray '\200' in program fiboverif.cpp:2:1: error: stray '\223' in program fiboverif.cpp:2:1: error: stray '\342' in program fiboverif.cpp:2:1: error: stray '\200' in program fiboverif.cpp:2:1: error: stray '\223' in program fiboverif.cpp:4:1: error: stray '\304' in program Se consideră şirul Fibonacci, definit astfel: f1=1 , f2=1 , fn=fn-1+fn-2 , dacă n>2. ^ fiboverif.cpp:4:1: error: stray '\203' in program fiboverif.cpp:4:1: error: stray '\305' in program fiboverif.cpp:4:1: error: stray '\237' in program fiboverif.cpp:4:1: error: stray '\304' in program fiboverif.cpp:4:1: error: stray '\203' in program fiboverif.cpp:6:1: error: stray '\305' in program Cerinţa ^ fiboverif.cpp:6:1: error: stray '\243' in program fiboverif.cpp:7:1: error: stray '\304' in program Se dă un număr natural n. Să se afişeze în ordine crescătoare, primii n termeni ai şirului lui Fibonacci. ^ fiboverif.cpp:7:1: error: stray '\203' in program fiboverif.cpp:7:1: error: stray '\304' in program fiboverif.cpp:7:1: error: stray '\203' in program fiboverif.cpp:7:1: error: stray '\304' in program fiboverif.cpp:7:1: error: stray '\203' in program fiboverif.cpp:7:1: error: stray '\305' in program fiboverif.cpp:7:1: error: stray '\237' in program fiboverif.cpp:7:1: error: stray '\303' in program fiboverif.cpp:7:1: error: stray '\256' in program fiboverif.cpp:7:1: error: stray '\304' in program fiboverif.cpp:7:1: error: stray '\203' in program fiboverif.cpp:7:1: error: stray '\305' in program fiboverif.cpp:7:1: error: stray '\237' in program fiboverif.cpp:10:1: error: stray '\310' in program Programul citește de la tastatură numărul n. ^ fiboverif.cpp:10:1: error: stray '\231' in program fiboverif.cpp:10:1: error: stray '\304' in program fiboverif.cpp:10:1: error: stray '\203' in program fiboverif.cpp:10:1: error: stray '\304' in program fiboverif.cpp:10:1: error: stray '\203' in program fiboverif.cpp:12:1: error: stray '\305' in program Date de ieşire ^ fiboverif.cpp:12:1: error: stray '\237' in program fiboverif.cpp:13:1: error: stray '\310' in program Programul afișează pe ecran primii n termeni ai şirului lui Fibonacci, în ordine crescătoare, separați printr-un spaţiu. ^ fiboverif.cpp:13:1: error: stray '\231' in program fiboverif.cpp:13:1: error: stray '\304' in program fiboverif.cpp:13:1: error: stray '\203' in program fiboverif.cpp:13:1: error: stray '\305' in program fiboverif.cpp:13:1: error: stray '\237' in program fiboverif.cpp:13:1: error: stray '\303' in program fiboverif.cpp:13:1: error: stray '\256' in program fiboverif.cpp:13:1: error: stray '\304' in program fiboverif.cpp:13:1: error: stray '\203' in program fiboverif.cpp:13:1: error: stray '\310' in program fiboverif.cpp:13:1: error: stray '\233' in program fiboverif.cpp:13:1: error: stray '\305' in program fiboverif.cpp:13:1: error: stray '\243' in program fiboverif.cpp:15:1: error: stray '\305' in program Restricţii şi precizări ^ fiboverif.cpp:15:1: error: stray '\243' in program fiboverif.cpp:15:1: error: stray '\305' in program fiboverif.cpp:15:1: error: stray '\237' in program fiboverif.cpp:15:1: error: stray '\304' in program fiboverif.cpp:15:1: error: stray '\203' in program fiboverif.cpp:16:1: error: stray '\342' in program 1 ≤ n ≤ 40 ^ fiboverif.cpp:16:1: error: stray '\211' in program fiboverif.cpp:16:1: error: stray '\244' in program fiboverif.cpp:16:1: error: stray '\342' in program fiboverif.cpp:16:1: error: stray '\211' in program fiboverif.cpp:16:1: error: stray '\244' in program fiboverif.cpp:21:1: error: stray '\310' in program Date de ieșire ^ fiboverif.cpp:21:1: error: stray '\231' in program fiboverif.cpp:2:1: error: 'Problema' does not name a type Problema #255 – Fibonacci – Rezolvari PBInfo ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FiboVerif 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ă.