0_0_16648264_6229.cpp: In function 'int main()': 0_0_16648264_6229.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) ^