Can't able to find out what is wrong with this code

can’t able to find out what is wrong with this code , one test case is not correct

Please post your code brother

import java.util.*; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int test_case = scn.nextInt(); long[] k_th_root = new long[test_case]; for (int i = 0; i < test_case; i++) { long n = scn.nextLong(); int k = scn.nextInt(); k_th_root[i] = (int) Math.pow(n, 1.0 / k); } for (int i = 0; i < k_th_root.length; i++) { System.out.println(k_th_root[i]); } } }

try changing all the data types to long instead of int

changed all data types to long still one test case is wrong

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.