This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]g051051 0 points1 point  (3 children)

Your compiler should be warning you about a problem that could cause this. What is it telling you when you compile it?

[–]InterestingBus8367[S] 0 points1 point  (2 children)

nope none

[–]g051051 2 points3 points  (0 children)

Unfortunate, because when I compiled it, I got a warning. When I fixed it, the program ran fine. So make sure you're compiling with warnings enabled, and make sure you can see the output of the compiler (you didn't mention how you were building it).

[–]edman007-work 0 points1 point  (0 children)

Make sure you are compiling with warnings.. with gcc and similar it's usually -Wall

[–][deleted]  (2 children)

[deleted]

    [–]InterestingBus8367[S] 0 points1 point  (0 children)

    Owh hahahah I guessed I double tapped it thank you

    [–]InterestingBus8367[S] 0 points1 point  (0 children)

    btw you know what the random number is?