0_0_20030989_3115.cpp: In function 'int main()': 0_0_20030989_3115.cpp:9:26: error: 'sqrt' was not declared in this scope Min=(int)sqrt(2*M)+1; ^