Code for max length biotonic

sir i have error in my code im unable to find itt link to code is https://ide.codingblocks.com/s/73767

tanna u r only checking for decreasing and increasing u also have to check for first increasing and then decreasing sequence also u r using and o(n^2) approach which will gave u tle try to optimize it futhur