Ive attached a screenshot of the error....but also when I click on the "Build and Run" button it does nothing. But if i simply click on the run button it will give me that error.
I know nothing about Macs, but as a Linux user I can tell you that running "hello world" off a prompt under bash will fail for two reasons:
a) The command line processor will parse it as two items, as you can see by the error you got, which mentions only the "hello" bit - you should have typed something like hello\ world so that bash knows here is an embedded whitespace in the file name;
b) you have to specify a full path, and not just the file name. Assuming there is an executable file called "hello world" in the current directory, in order to invoke it you should use ./hello\ world
In any event, this is not a code::blocks issue, you should take a look at how to compile and run programs under your OS regardless of the IDE first.