Problem | rainbowroad |
---|---|
User | PlayVoltz |
Submission Time | 2023-10-26 14:15:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rainbowroad.cpp: In function ‘int32_t main()’:
rainbowroad.cpp:52:55: error: temporary of non-literal type ‘std::vector<long long int>’ in a constant expression
52 | vector<vector<vector<int>>> dp_temp(n, vector<vector<int>(1 << K, -1));
| ^~~~~~~~~~~~~~~~~~~~~~~
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 rainbowroad.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_vec