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

Compile Error

fibo.cpp: In function ‘int main()’:
fibo.cpp:9:17: error: wrong number of template arguments (1, should be 2)
9 | array<long long> fib(n + 1);
| ^
In file included from fibo.cpp:2:
/usr/include/c++/9/array:94:12: note: provided for ‘template<class _Tp, long unsigned int _Nm> struct std::array’
94 | struct array
| ^~~~~
fibo.cpp:10:10: error: invalid types ‘int[int]’ for array subscript
10 | fib[0] = 0;
| ^
fibo.cpp:12:14: error: invalid types ‘int[int]’ for array subscript
12 | fib[1] = 1;
| ^
fibo.cpp:16:14: error: invalid types ‘int[int]’ for array subscript
16 | fib[i] = (fib[i - 1] + fib[i - 2]);
| ^
fibo.cpp:16:28: error: invalid types ‘int[int]’ for array subscript
16 | fib[i] = (fib[i - 1] + fib[i - 2]);
| ^
fibo.cpp:16:41: error: inv