#994
FiboVerif1
Se dă un şir cu n
elemente, numere naturale. Să se afişeze elementele şirului care sunt termeni ai şirului lui Fibonacci.
Problema | FiboVerif1 | Operații I/O |
fiboverif1.in /fiboverif1.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #13800104 | Utilizator | |
Fișier | fiboverif1.cpp | Dimensiune | 401 B |
Data încărcării | 10 Februarie 2019, 14:49 | Scor / rezultat | Eroare de compilare |
fiboverif1.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <fstream> ^ fiboverif1.cpp:3:1: error: stray '\302' in program using namespace std; ^ fiboverif1.cpp:3:1: error: stray '\240' in program fiboverif1.cpp:3:1: error: stray '\302' in program fiboverif1.cpp:3:1: error: stray '\240' in program fiboverif1.cpp:4:1: error: stray '\302' in program int n, i, x, k; ^ fiboverif1.cpp:4:1: error: stray '\240' in program fiboverif1.cpp:4:1: error: stray '\302' in program fiboverif1.cpp:4:1: error: stray '\240' in program fiboverif1.cpp:4:1: error: stray '\302' in program fiboverif1.cpp:4:1: error: stray '\240' in program fiboverif1.cpp:4:1: error: stray '\302' in program fiboverif1.cpp:4:1: error: stray '\240' in program fiboverif1.cpp:5:1: error: stray '\302' in program int main() ^ fiboverif1.cpp:5:1: error: stray '\240' in program fiboverif1.cpp:7:1: error: stray '\302' in program ifstream f("fiboverif1.in"); ^ fiboverif1.cpp:7:1: error: stray '\240' in program fiboverif1.cpp:7:1: error: stray '\302' in program fiboverif1.cpp:7:1: error: stray '\240' in program fiboverif1.cpp:7:1: error: stray '\302' in program fiboverif1.cpp:7:1: error: stray '\240' in program fiboverif1.cpp:7:1: error: stray '\302' in program fiboverif1.cpp:7:1: error: stray '\240' in program fiboverif1.cpp:7:1: error: stray '\302' in program fiboverif1.cpp:7:1: error: stray '\240' in program fiboverif1.cpp:8:1: error: stray '\302' in program ofstream g("fiboverif1.out"); ^ fiboverif1.cpp:8:1: error: stray '\240' in program fiboverif1.cpp:8:1: error: stray '\302' in program fiboverif1.cpp:8:1: error: stray '\240' in program fiboverif1.cpp:8:1: error: stray '\302' in program fiboverif1.cpp:8:1: error: stray '\240' in program fiboverif1.cpp:8:1: error: stray '\302' in program fiboverif1.cpp:8:1: error: stray '\240' in program fiboverif1.cpp:8:1: error: stray '\302' in program fiboverif1.cpp:8:1: error: stray '\240' in program fiboverif1.cpp:9:1: error: stray '\302' in program f >> n; ^ fiboverif1.cpp:9:1: error: stray '\240' in program fiboverif1.cpp:9:1: error: stray '\302' in program fiboverif1.cpp:9:1: error: stray '\240' in program fiboverif1.cpp:9:1: error: stray '\302' in program fiboverif1.cpp:9:1: error: stray '\240' in program fiboverif1.cpp:9:1: error: stray '\302' in program fiboverif1.cpp:9:1: error: stray '\240' in program fiboverif1.cpp:9:1: error: stray '\302' in program fiboverif1.cpp:9:1: error: stray '\240' in program fiboverif1.cpp:9:1: error: stray '\302' in program fiboverif1.cpp:9:1: error: stray '\240' in program fiboverif1.cpp:10:1: error: stray '\302' in program for(i = 1; i <= n; i ++) ^ fiboverif1.cpp:10:1: error: stray '\240' in program fiboverif1.cpp:10:1: error: stray '\302' in program fiboverif1.cpp:10:1: error: stray '\240' in program fiboverif1.cpp:10:1: error: stray '\302' in program fiboverif1.cpp:10:1: error: stray '\240' in program fiboverif1.cpp:10:1: error: stray '\302' in program fiboverif1.cpp:10:1: error: stray '\240' in program fiboverif1.cpp:10:1: error: stray '\302' in program fiboverif1.cpp:10:1: error: stray '\240' in program fiboverif1.cpp:10:1: error: stray '\302' in program fiboverif1.cpp:10:1: error: stray '\240' in program fiboverif1.cpp:10:1: error: stray '\302' in program fiboverif1.cpp:10:1: error: stray '\240' in program fiboverif1.cpp:10:1: error: stray '\302' in program fiboverif1.cpp:10:1: error: stray '\240' in program fiboverif1.cpp:10:1: error: stray '\302' in program fiboverif1.cpp:10:1: error: stray '\240' in program fiboverif1.cpp:10:1: error: stray '\302' in program fiboverif1.cpp:10:1: error: stray '\240' in program fiboverif1.cpp:10:1: error: stray '\302' in program fiboverif1.cpp:10:1: error: stray '\240' in program fiboverif1.cpp:11:1: error: stray '\302' in program { ^ fiboverif1.cpp:11:1: error: stray '\240' in program fiboverif1.cpp:11:1: error: stray '\302' in program fiboverif1.cpp:11:1: error: stray '\240' in program fiboverif1.cpp:11:1: error: stray '\302' in program fiboverif1.cpp:11:1: error: stray '\240' in program fiboverif1.cpp:11:1: error: stray '\302' in program fiboverif1.cpp:11:1: error: stray '\240' in program fiboverif1.cpp:12:1: error: stray '\302' in program f >> x; ^ fiboverif1.cpp:12:1: error: stray '\240' in program fiboverif1.cpp:12:1: error: stray '\302' in program fiboverif1.cpp:12:1: error: stray '\240' in program fiboverif1.cpp:12:1: error: stray '\302' in program fiboverif1.cpp:12:1: error: stray '\240' in program fiboverif1.cpp:12:1: error: stray '\302' in program fiboverif1.cpp:12:1: error: stray '\240' in program fiboverif1.cpp:12:1: error: stray '\302' in program fiboverif1.cpp:12:1: error: stray '\240' in program fiboverif1.cpp:12:1: error: stray '\302' in program fiboverif1.cpp:12:1: error: stray '\240' in program fiboverif1.cpp:12:1: error: stray '\302' in program fiboverif1.cpp:12:1: error: stray '\240' in program fiboverif1.cpp:12:1: error: stray '\302' in program fiboverif1.cpp:12:1: error: stray '\240' in program fiboverif1.cpp:12:1: error: stray '\302' in program fiboverif1.cpp:12:1: error: stray '\240' in program fiboverif1.cpp:12:1: error: stray '\302' in program fiboverif1.cpp:12:1: error: stray '\240' in program fiboverif1.cpp:13:1: error: stray '\302' in program k = fibo(x); ^ fiboverif1.cpp:13:1: error: stray '\240' in program fiboverif1.cpp:13:1: error: stray '\302' in program fiboverif1.cpp:13:1: error: stray '\240' in program fiboverif1.cpp:13:1: error: stray '\302' in program fiboverif1.cpp:13:1: error: stray '\240' in program fiboverif1.cpp:13:1: error: stray '\302' in program fiboverif1.cpp:13:1: error: stray '\240' in program fiboverif1.cpp:13:1: error: stray '\302' in program fiboverif1.cpp:13:1: error: stray '\240' in program fiboverif1.cpp:13:1: error: stray '\302' in program fiboverif1.cpp:13:1: error: stray '\240' in program fiboverif1.cpp:13:1: error: stray '\302' in program fiboverif1.cpp:13:1: error: stray '\240' in program fiboverif1.cpp:13:1: error: stray '\302' in program fiboverif1.cpp:13:1: error: stray '\240' in program fiboverif1.cpp:13:1: error: stray '\302' in program fiboverif1.cpp:13:1: error: stray '\240' in program fiboverif1.cpp:13:1: error: stray '\302' in program fiboverif1.cpp:13:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program if(k == 1) g << x << " "; ^ fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:14:1: error: stray '\302' in program fiboverif1.cpp:14:1: error: stray '\240' in program fiboverif1.cpp:15:1: error: stray '\302' in program } ^ fiboverif1.cpp:15:1: error: stray '\240' in program fiboverif1.cpp:15:1: error: stray '\302' in program fiboverif1.cpp:15:1: error: stray '\240' in program fiboverif1.cpp:15:1: error: stray '\302' in program fiboverif1.cpp:15:1: error: stray '\240' in program fiboverif1.cpp:15:1: error: stray '\302' in program fiboverif1.cpp:15:1: error: stray '\240' in program fiboverif1.cpp:17:1: error: stray '\302' in program return 0; ^ fiboverif1.cpp:17:1: error: stray '\240' in program fiboverif1.cpp:17:1: error: stray '\302' in program fiboverif1.cpp:17:1: error: stray '\240' in program fiboverif1.cpp:17:1: error: stray '\302' in program fiboverif1.cpp:17:1: error: stray '\240' in program fiboverif1.cpp:17:1: error: stray '\302' in program fiboverif1.cpp:17:1: error: stray '\240' in program fiboverif1.cpp:17:1: error: stray '\302' in program fiboverif1.cpp:17:1: error: stray '\240' in program fiboverif1.cpp: In function 'int main()': fiboverif1.cpp:7:20: error: variable 'std::ifstream f' has initializer but incomplete type ifstream f("fiboverif1.in"); ^ fiboverif1.cpp:8:20: error: variable 'std::ofstream g' has initializer but incomplete type ofstream g("fiboverif1.out"); ^ fiboverif1.cpp:13:29: error: 'fibo' was not declared in this scope k = fibo(x); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FiboVerif1 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ă.