Non-portable code
Opened this issue · 1 comments
Sainan commented
The following line of code is not valid ISO C++:
int verif[size1 + 1][size2 + 1]; // Verification matrix i.e. 2D array which will store the calculated distance.
As such, it does not compile with all compilers. For example, MSVC can not compile this.
rsnitsch commented
Correct. You can replace that line with:
vector<vector<int>> verif(size1 + 1, vector<int>(size2 + 1));