Run-error in two test case

why I am getting run-error in two test cases.
In what other cases I can get run time errors.

code - https://ide.codingblocks.com/s/209416

@amitsharma246813
hello Amit,
image

use long long in place of int.

because i*i can exceeds the range of int datatype and then integer overflow can happen.

still I am getting run-error