Problem | rollercoaster |
---|---|
User | Subz3r0 |
Submission Time | 2025-06-20 14:21:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:5:20: error: wrong number of template arguments (1, should be 2)
5 | array<long long> v;
| ^
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 rollercoaster.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
| ^~~~~
rollercoaster.cpp:9:11: error: request for member ‘push_back’ in ‘v’, which is of non-class type ‘int’
9 | v.push_back(c);
| ^~~~~~~~~
rollercoaster.cpp:12:40: error: request for member ‘begin’ in ‘v’, whic