Code giving run error please check

The following code is giving run error for 3/4 test cases but working fine for all the other, please tell me my mistakes.

@namangarg2000 corrected runtime


no need for findnode removed it .
and you have to print in sorted order ( wrong answer coming for that only)

still giving 2 test cases as wrong answers

@namangarg2000
i wrote this above
and you have to print in sorted order ( wrong answer coming for that only)
store in vector sort and print
if v.size()==0 cout 0

print all the nodes in sorted order??

@namangarg2000 yes its req

still failing 1 test case, even added a check for a non existing nodes. https://ide.codingblocks.com/s/294539 please check

https://ide.codingblocks.com/s/294547 this is the new ide

@namangarg2000 use continue not break corrected