Problem fibo
User estkn
Submission Time 2025-03-14 14:03:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘int main()’:
fibo.cpp:9:2: error: ‘array’ was not declared in this scope
9 | array<long long> fib(n + 1);
| ^~~~~
fibo.cpp:3:1: note: ‘std::array’ is defined in header ‘<array>’; did you forget to ‘#include <array>’?
2 | #include <vector>
+++ |+#include <array>
3 | using namespace std;
fibo.cpp:9:8: error: expected primary-expression before ‘long’
9 | array<long long> fib(n + 1);
| ^~~~
fibo.cpp:10:5: error: ‘fib’ was not declared in this scope
10 | fib[0] = 0;
| ^~~