I want to build a 2D array (or vector), which I can use as function input.
So far, I have the following code, but it does not work. It gives the following error:
2d.cpp: In function ‘int main()’:
2d.cpp:16: error: variable-sized object ‘M’ may not be initialized
But it works if I make it like : M[10][10] = {{0}}, but the problem is that the size is dependent on the length of strings seq1 and seq2.
I used the C++ array, but solution with <vector> are also ok (and perhaps better?)