Problem | fibo |
---|---|
User | estkn |
Submission Time | 2025-03-14 14:04:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘int main()’:
fibo.cpp:8:17: error: wrong number of template arguments (1, should be 2)
8 | array<long long> fib(n + 1);
| ^
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from fibo.cpp:1:
/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:9:10: error: invalid types ‘int[int]’ for array subscript
9 | fib[0] = 0;
| ^
fibo.cpp:11:14: error: invalid types ‘int[int]’ for array subscript
11 | fib[1] = 1;
| ^
fibo.cpp:15:14: erro