#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 | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54908393 | Utilizator | |
Fișier | fiboverif.cpp | Dimensiune | 513 B |
Data încărcării | 11 Decembrie 2024, 21:39 | Scor / rezultat | Eroare de compilare |
fiboverif.cpp:11:21: warning: missing terminating " character [enabled by default] cout << "DA ^ fiboverif.cpp:11:13: error: missing terminating " character cout << "DA ^ fiboverif.cpp:12:1: warning: missing terminating " character [enabled by default] "; ^ fiboverif.cpp:12:1: error: missing terminating " character fiboverif.cpp:23:25: warning: missing terminating " character [enabled by default] cout << "DA ^ fiboverif.cpp:23:17: error: missing terminating " character cout << "DA ^ fiboverif.cpp:24:1: warning: missing terminating " character [enabled by default] "; ^ fiboverif.cpp:24:1: error: missing terminating " character fiboverif.cpp:26:25: warning: missing terminating " character [enabled by default] cout << "NU ^ fiboverif.cpp:26:17: error: missing terminating " character cout << "NU ^ fiboverif.cpp:27:1: warning: missing terminating " character [enabled by default] "; ^ fiboverif.cpp:27:1: error: missing terminating " character fiboverif.cpp: In function 'int main()': fiboverif.cpp:7:5: error: 'cin' was not declared in this scope cin >> n; ^ fiboverif.cpp:11:13: error: 'cout' was not declared in this scope cout << "DA ^ fiboverif.cpp:13:9: error: expected primary-expression before 'else' else{ ^ fiboverif.cpp:13:9: error: expected ';' before 'else' fiboverif.cpp:31:1: error: expected '}' at end of input } ^ fiboverif.cpp:6:15: warning: unused variable 'a' [-Wunused-variable] int n, x, a=1, b=1, c; ^ fiboverif.cpp:6:20: warning: unused variable 'b' [-Wunused-variable] int n, x, a=1, b=1, c; ^ fiboverif.cpp:6:25: warning: unused variable 'c' [-Wunused-variable] int n, x, a=1, b=1, c; ^ fiboverif.cpp:31:1: error: expected '}' at end of input } ^
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ă.