0_0_38153601_14941.cpp: In function 'int edit_distance(char*, char*)':
0_0_38153601_14941.cpp:12:16: error: request for member 'size' in 'a', which is of non-class type 'char*'
int al = a.size(),bl = b.size();
^
0_0_38153601_14941.cpp:13:20: error: 'bl' was not declared in this scope
for(int i=0;i<=bl;i++) dp[0][i]=i;
^
0_0_38153601_14941.cpp:17:24: error: 'bl' was not declared in this scope
for(int j=1;j<=bl;j++)
^
0_0_38153601_14941.cpp:22:19: error: 'bl' was not declared in this scope
return dp[al][bl];
^
|