Problem | collectmushrooms |
---|---|
User | Dynonychus |
Submission Time | 2024-01-10 23:44:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
collectmushrooms.cpp:6:8: error: temporary of non-literal type ‘std::vector<long long int>’ in a constant expression
6 | vector<vector<int>(2849485)> arr((2849485);
| ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
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 collectmushrooms.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:386:11: note: ‘std::vector<long long 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<long long int>’ has a non-trivial destructor
collectmushrooms.cpp:6:28: error: type/value mismatch at arg