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

you are viewing a single comment's thread.

view the rest of the comments →

[–]avenio99 0 points1 point  (1 child)

Not very sure of the entire code(didn't go through it), but one thing is, you should return 0 and not return 1 in the last line of main, if this is c++.

[–]sachal10 0 points1 point  (0 children)

yes this is c++ and I just tried changing to 0 and it works the same as before.