Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

JavaScript 16


ghostraider100's Avatar
Member
0 0

Hi there, I have successfully coded my Brute forcer using C++ to find the sum. But I have a problem in that. The sum which is generated while it is running after a some loops the value changed to negative. My question is that:

Does -ve(negative) value comes during this brute forcing?

and

Inorder to neglect my value being negative i've changed int to UINT, does this affects the code?


stranac's Avatar
Member
0 0

It's pretty obvious from the js function the value cannot be negative, so signed/unsigned really does not matter.

Considering that, I'd say your coding wasn't really successful. You probably just overlooked something or made a simple mistake.

If you want, I could take a look at your code and try helping.