compilation is succsessful but giving no output on console
Replace nodes with sumof greater nodes
output is not shown in console because it is giving segmentation fault
this is because int mid=s+e/2; you forgot to put braces
you should have to write like int mid=(s+e)/2;