Join ropes with MIn cost Problem


I am h=getting an error for this code.I am not able to understand what is the error.