| Problem | gecko |
|---|---|
| User | R9q5P8 |
| Submission Time | 2025-10-27 11:53:55 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
gecko.cpp: In function ‘int main()’:
gecko.cpp:14:9: error: temporary of non-literal type ‘std::vector<int>’ in a constant expression
14 | vector<vector<int>(cols, 0)>(rows) numGrid;
| ^~~~~~~~~~~~~~~~~~~~
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:14:29: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
14 | vector<vector<int>(cols, 0)>(rows) numGrid;
| ^
gecko.cpp:14:29: note: expected a type, got ‘std::vector<int>(((std::ve