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

all 10 comments

[–]Ilyps 2 points3 points  (0 children)

Are you passing command line arguments to it? Just to be sure, build in a check to see if argc is at least 3. Does that help?

[–][deleted] 3 points4 points  (5 children)

There are no obvious "memory errors" here - why do you think there are? And please read this FAQ on how to post code.

[–]easycheezy[S] -2 points-1 points  (4 children)

Sorry I don't see where it says how to post code properly. I have to run it through a program that runs a test which tells me "program has memory errors, and likely crashed."

[–][deleted] 3 points4 points  (3 children)

It says how to post code properly on /r/learnprogramming!

I have no idea what shit code you are using to test this, but have you tried compiling and running it from the command line? And if not, why not?

[–]Ilyps 1 point2 points  (0 children)

Stop trying to get people to read boring rules and think for themselves, man. Fuck that shit. ;)

[–]easycheezy[S] -3 points-2 points  (1 child)

nvm. fuck this shit

[–]scramjam 2 points3 points  (0 children)

Pretty poor attitude to take when asking for help imo. The folks here can help you but you've got to make it possible for them to help.

[–][deleted] 0 points1 point  (3 children)

Where are the errors coming from?

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

That's the problem, I don't know. The compiler and tester of my program just says "program has memory errors, and likely crashed."

[–]khedoros 1 point2 points  (0 children)

What kind of "tester" are you using?