r/CodingHelp • • Jan 20 '22

[C++] mingw32-make.exe: *** [ALL] Error 2

Post image
23 Upvotes

19 comments sorted by

View all comments

2

u/markocic Jan 20 '22

From what I can see your equation is not written correctly. Also you should switch x to be a double instead of int. Function pow() and sqrt() return double value and it can't be stored like an int.

3

u/[deleted] Jan 20 '22

Seconded. Trying to store a double as an int will give an error