int int_sqrt(int s) { int temp; temp = (int)sqrt(s); if (temp * temp == s) { return temp; } else { return -1;}}
你是怎么调用这个函数的?也就是说你写的某个函数名和其他某个函数类似,并且你们的参数都一样就会报这个错误,编译器不知道说该调用哪个重载