NZEC Error

Solution: Online Compiler and IDE - GeeksforGeeks
Problem: STDDEV Problem - CodeChef

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?