0_0_16648258_18547.cpp: In function 'int main()': 0_0_16648258_18547.cpp:11:29: error: 'sqrt' was not declared in this scope if (sqrt(num - i*i - j*j) - (int)sqrt(num - i*i - j*j) == 0) ^