Problem | gecko |
---|---|
User | AltheaZ |
Submission Time | 2023-07-14 16:48:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gecko.cpp: In function ‘int main()’:
gecko.cpp:22:10: error: ‘W’ was not declared in this scope
22 | cin>>h>>W;
| ^
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);
| ^