The code I made is working fine on other ide but here it is showing run error and segmentation fault

I have tested the code here, Kindly tell he problem.