Problem | gecko |
---|---|
User | AltheaZ |
Submission Time | 2023-07-14 16:48:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gecko.cpp: In function ‘int main()’:
gecko.cpp:23:9: error: temporary of non-literal type ‘std::vector<int>’ in a constant expression
23 | vector<vector<int>(w)>tiles(h);
| ^~~~~~~~~~~~~~
In file included from /usr/include/c++/9/vector:67,
from gecko.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:386:11: note: ‘std::vector<int>’ is not literal because:
386 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/9/bits/stl_vector.h:386:11: note: ‘std::vector<int>’ has a non-trivial destructor
gecko.cpp:23:23: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
23 | vector<vector<int>(w)>tiles(h);
| ^
gecko.cpp:23:23: note: expected a type, got ‘std::vector<int>(((std::vector<int>::size_type)w), std::