Problem | lcs |
---|---|
User | yay |
Submission Time | 2025-08-16 11:57:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lcs.cpp: In function ‘int32_t main()’:
lcs.cpp:14:42: error: the value of ‘m’ is not usable in a constant expression
14 | vector<vector<int>> dp(n+1, vector<m+1>(m+1, 0));
| ^
lcs.cpp:12:9: note: ‘long long int m’ is not const
12 | int m = B.size();
| ^
lcs.cpp:14:43: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
14 | vector<vector<int>> dp(n+1, vector<m+1>(m+1, 0));
| ^
lcs.cpp:14:43: note: expected a type, got ‘(m + 1)’
lcs.cpp:14:43: error: template argument 2 is invalid