Giving WA for problem LIS

Link to code->https://ide.codingblocks.com/s/618164

Longest Increasing Subsequence

There is some error in this code

your code is not correct

correct code