Compiling Code on Linux Server Seems to Run Differently : <p>I couldn't think of a good way to name this question, as the description of the issue is pretty lengthy.  Basically, the issue I'm having is, code that I wrote in Xcode on my mac isn't running the same after I upload to a linux server for my school.  I've never had this issue before.  Its not a syntax issue, which is something that I might run into (IE maybe I dont need to include a certain header file on Xcode that needs to be included to run on the linux server, so I get an error when I try to compile there), but its a logic error.  One specific if-else statement is evaluating entirely wrong.  It works correctly in Xcode, but with the same .cc file uploaded to the linux server and compiled with a makefile, it has a totally different result, using the same exact input that was used in Xcode.  I even open the .cc file with emacs after uploading to make sure none of the code has been altered from a botched upload, but nothing has changed at all.  This is very strange.  I've never ran into this sort of issue before.  I'd like to provide the code, but it might be entirely too long, so I need to break it down into a smaller example.  For now, I'd like to know if this is something anyone else has ever ran into.  The assignment deals with graph theory.  I'm typing in 'A' and 'B' to draw edges between two vertices.  You can see it works from the Xcode build, but not from the Linux build.</p>

<p><a href="https://i.stack.imgur.com/2Tpjd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2Tpjd.png" alt="Program Ran From Xcode Build In Terminal"></a>
<a href="https://i.stack.imgur.com/PJNI9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PJNI9.png" alt="Program Ran after Compiling on Linux Server and Being Ran"></a></p>
