rowords.cpp: In function 'int longestCommonSubsequence(const string&, const string&)':
rowords.cpp:12:5: error: 'vector' was not declared in this scope
12 | vector<vector<int>> dp(m + 1, vector<int>(n + 1, 0));
| ^~~~~~
rowords.cpp:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
3 | #include <algorithm>
+++ |+#include <vector>
4 |
rowords.cpp:12:19: error: expected primary-expression before 'int'
12 | vector<vector<int>> dp(m + 1, vector<int>(n + 1, 0));
| ^~~
rowords.cpp:17:17: error: 'dp' was not declared in this scope
17 | dp[i][j] = dp[i - 1][j - 1] + 1;
| ^~
rowords.cpp:19:17: error: 'dp' was not declared in this scope
19 | dp[i][j] = max(dp[i - 1][j], dp[i][j - 1]);
| ^~
rowords.cpp:24:12: error: 'dp' was not declared in this scope
24 | return dp[m][n];
| ^~