My code works perfectly when I run it through check50, and if I compare the strings using "./score FILE1 FILE2" with the words "cat" and "ate" the number of operations returned is 2 - which is correct. It also handles strings of different lengths perfectly. However, if I do the same thing except on the web app, it comes out like this:
also, if I try to input strings of differing length, I get:
I have no idea where I should look in my code to fix this issue. I'm sure it has nothing to do with matrix.html as this happens even if it is empty. I guess it could be related to index.html but I'm not sure where. Any help is appreciated!