how can we find n sqrt(m) and check whether if answer is a integer in c++ : I have tried it using static<int> and various methods but they are not working in all testcases.so can you provide full code.