Problem lis
User AaravRastogi
Submission Time 2025-12-19 15:05:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp:2:12: error: expected ‘:’ before ‘static’
2 | private static Integer[][] memo;
| ^~~~~~~
| :
lis.cpp:2:20: error: ‘Integer’ does not name a type
2 | private static Integer[][] memo;
| ^~~~~~~
lis.cpp:4:41: error: ‘String’ has not been declared
4 | static int longestCommonSubsequence(String s1, String s2) {
| ^~~~~~
lis.cpp:4:52: error: ‘String’ has not been declared
4 | static int longestCommonSubsequence(String s1, String s2) {
| ^~~~~~
lis.cpp:9:12: error: expected ‘:’ before ‘static’
9 | private static int solve(String s1, String s2, int i, int j) {
| ^~~~~~~
| :
lis.cpp:9:30: error: ‘String’ has not been declared
9 | private static int solve(String s1, String s2, int i, int j) {