If the compiler is advanced, you can set x to long long int.
If it is not enough, we should make a super-large multiplication calculation program according to the multiplication principle (including carry, etc.). )
I made a power calculator, which theoretically supports infinity.