NZEC Error

Solution: https://ide.geeksforgeeks.org/9OGhKcdHbi
Problem: https://www.codechef.com/problems/STDDEV

In your solution, in line 13, if n = 1, substituting it in the denominator will attempt to divide by zero. I guess you meant to include an else starting from line 13.

Is THIS the solution you intended?