Problem fibo
User krishnakanhaiyabasuribajaiya
Submission Time 2023-10-22 14:52:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘void generateFibonacci(int)’:
fibo.cpp:6:5: error: ‘vector’ was not declared in this scope
6 | vector<long long> fib(n + 1);
| ^~~~~~
fibo.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | using namespace std;
fibo.cpp:6:12: error: expected primary-expression before ‘long’
6 | vector<long long> fib(n + 1);
| ^~~~
fibo.cpp:7:5: error: ‘fib’ was not declared in this scope
7 | fib[0] = 0;
| ^~~
fibo.cpp:13:9: error: ‘cout’ was not declared in this scope
13 | cout << fib[i] << endl;
| ^~~~
fibo.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
fibo.cpp:13:27: error: ‘endl’ was