Language: C++

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;
static const int N = 1000 ;
int lcs( string X , string Y) {
int c[ N + 1 ][ N + 1 ] ; 
int m = X.size() ; 
int n = Y.size() ; 
int max1 = 0 ;
X = ' ' + X ;
Y = ' ' + Y ;

  for(int i = 1 ; i <= m ; i++) c[i][0] = 0 ;
  
  for(int j = 1 ; j <= n ; j++) c[0][j] = 0 ;

  for(int i = 1 ; i <= m ; i++) {
    for(int j = 1; j <= n; j++){
      if (X[i] == Y[j]) {
         c[i][j]=c[i -1][j - 1] + 1;
?????????}

      else {
         c[i][j] = max(c[i - 1][j], c[i][j - 1]);
       }
       max1 = max(max1, c[i][j] ) ;
     }
   }
 return max1 ;
}

int main(){
  string s1 , s2 ;
  int n ; cin >> n ;
  for ( int i = 0 ; i < n ; i++ ) {
      cin >> s1 >> s2 ;
 
      cout<<lcs(s1 , s2) << endl ;
  }
  
  return 0 ;
}

Compiler output:
a.cc: In function 'int lcs(std::string, std::string)':
a.cc:23:1: error: expected primary-expression before '?' token
   23 | ?????????}
      | ^
a.cc:23:2: error: expected primary-expression before '?' token
   23 | ?????????}
      |  ^
a.cc:23:3: error: expected primary-expression before '?' token
   23 | ?????????}
      |   ^
a.cc:23:4: error: expected primary-expression before '?' token
   23 | ?????????}
      |    ^
a.cc:23:5: error: expected primary-expression before '?' token
   23 | ?????????}
      |     ^
a.cc:23:6: error: expected primary-expression before '?' token
   23 | ?????????}
      |      ^
a.cc:23:7: error: expected primary-expression before '?' token
   23 | ?????????}
      |       ^
a.cc:23:8: error: expected primary-expression before '?' token
   23 | ?????????}
      |        ^
a.cc:23:9: error: expected primary-expression before '?' token
   23 | ?????????}
      |         ^
a.cc:23:10: error: expected primary-expression before '}' token
   23 | ?????????}
      |          ^
a.cc:23:10: error: expected ':' before '}' token
   23 | ?????????}
      |          ^
      |          :
a.cc:23:10: error: expected primary-expression before '}' token
a.cc:23:10: error: expected ':' before '}' token
   23 | ?????????}
      |          ^
      |          :
a.cc:23:10: error: expected primary-expression before '}' token
a.cc:23:10: error: expected ':' before '}' token
   23 | ?????????}
      |          ^
      |          :
a.cc:23:10: error: expected primary-expression before '}' token
a.cc:23:10: error: expected ':' before '}' token
   23 | ?????????}
      |          ^
      |          :
a.cc:23:10: error: expected primary-expression before '}' token
a.cc:23:10: error: expected ':' before '}' token
   23 | ?????????}
      |          ^
      |          :
a.cc:23:10: error: expected primary-expression before '}' token
a.cc:23:10: error: expected ':' before '}' token
   23 | ?????????}
      |          ^
      |          :
a.cc:23:10: error: expected primary-expression before '}' token
a.cc:23:10: error: expected ':' before '}' token
   23 | ?????????}
      |          ^
      |          :
a.cc:23:10: error: expected primary-expression before '}' token
a.cc:23:10: error: expected ':' before '}' token
   23 | ?????????}
      |          ^
      |          :
a.cc:23:10: error: expected primary-expression before '}' token
a.cc:23:10: error: expected ':' before '}' token
   23 | ?????????}
      |          ^
      |          :
a.cc:23:10: error: expected primary-expression before '}' token