Computer Science Canada

Why will my code not compile?

Author:  QuantumPhysics [ Sat Mar 03, 2012 12:16 pm ]
Post subject:  Why will my code not compile?

What is it you are trying to achieve?
I want to understand why my code will not work. I wrote a simple 'Hello World' algorithm and it does not compile!


What is the problem you are having?
When i click the run button, the code returns errors.


Describe what you have tried to solve this problem
I dont understand what the source of the problem is... if the language is at a bug. There is nothing i can do to solve the problem.

Turing:


#include <iostream>
using namespace std;
int main (){cout << "Hello world."; return 3;}


Please specify what version of Turing you are using
4.1.1a


EDIT: Sorry, i realized that this code is used for another language. The person who told me that turing is a 'net' compiler apparently lied to me.

Author:  ProgrammingFun [ Sat Mar 03, 2012 1:04 pm ]
Post subject:  Re: Why will my code not compile?

QuantumPhysics @ Sat Mar 03, 2012 12:16 pm wrote:
EDIT: Sorry, i realized that this code is used for another language. The person who told me that turing is a 'net' compiler apparently lied to me.
What makes you think he lied? A 'net' compiler is not a 'Turing' compiler so .NET code wouldn't work anyways.

Author:  Velocity [ Sun Mar 04, 2012 1:56 am ]
Post subject:  RE:Why will my code not compile?

maybe by 'net' he means that he thought turing will run other language syntax aswell as its own.

Author:  bl0ckeduser [ Sun Mar 04, 2012 10:25 am ]
Post subject:  Re: Why will my code not compile?

To me that looks like C++ rather than one of the .NET languages (C# comes to mind) or Turing.

Author:  Velocity [ Mon Mar 05, 2012 2:14 am ]
Post subject:  RE:Why will my code not compile?

thats C++'s SDL

Author:  [Gandalf] [ Tue Mar 06, 2012 11:40 pm ]
Post subject:  Re: Why will my code not compile?

*facepalm*

No, that's not C++ SDL. SDL is a graphics library, which happens to have bindings to C++. There's not a line of SDL specific code in the OP, which is pure C++ (though it returns 3 for no apparent reason). I can only hope you meant STL, but either way this thread is not about Turing, so I'm locking it.

Author:  Tony [ Wed Mar 07, 2012 12:19 am ]
Post subject:  Re: Why will my code not compile?

Gandalf @ Tue Mar 06, 2012 11:40 pm wrote:
though it returns 3 for no apparent reason

I know a book where you can look up the meaning of that error code -- http://xkcd.com/1024/


: