Lcs with 3 strings code problem

codeLink: https://ide.codingblocks.com/s/188103
please correct it and specify my error