Root √ problem
So I made a basic calculator which can do + - * / ^ √ with 2 numbers can be chosen by user. They all worked perfectly fine except the √. Well in this calculator, any root numbers (odd and even number) of a negative number can't be solved on this calculator, which is not true (Example: square root (√) of -4 or fourth root (4√) of -16 is indeed can't be solved but cubic root (3√) of -64 or fifth root (5√) of -1024 can be solved but in this calculator it is not possible) (I used a way to make "custom" root number beside square or cubic root: "pow(x , 1/y)" ). Summary: Odd root number of negative numbers can be solved but in this calculator it just doesn't do it. So i want to know if there is any way to fix this. Here goes the code: https://code.sololearn.com/cs2saqeQUvLH/?ref=app