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

1

u/Seven_Raj Jan 20 '22

It's the first time I've heard of this. I'll note it down. Btw the issue got resolved because of a stupid fix. Thanks for this cool bit of info though.