Help running "Hello world" with sublime, in command prompt.

When I try to run this code;

#include <stdio.h>

int main(){

	printf("Hello world");
    
    return 0;

}

I get some serious errors in the command prompt, here;

314: error: stray '@' in program
hello.c:209:3316: error: null character(s) ignored [-Werror]
hello.c:209:3340: error: null character(s) ignored [-Werror]
hello.c:209:3367: error: stray '@' in program
hello.c:209:3369: error: null character(s) ignored [-Werror]
hello.c:209:3385: error: null character(s) ignored [-Werror]
hello.c:209:3420: error: stray '@' in program
hello.c:209:3422: error: null character(s) ignored [-Werror]
hello.c:209:3447: error: null character(s) ignored [-Werror]
hello.c:209:3471: error: null character(s) ignored [-Werror]
hello.c:209:3488: error: null character(s) ignored [-Werror]
hello.c:209:3503: error: null character(s) ignored [-Werror]
hello.c:209:3514: error: null character(s) ignored [-Werror]
hello.c:209:3524: error: null character(s) ignored [-Werror]
hello.c:209:3538: error: null character(s) ignored [-Werror]
hello.c:209:3551: error: null character(s) ignored [-Werror]
hello.c:209:3572: error: null character(s) ignored [-Werror]
hello.c:209:3590: error: null character(s) ignored [-Werror]
hello.c:209:3604: error: null character(s) ignored [-Werror]
hello.c:209:3632: error: null character(s) ignored [-Werror]
hello.c:209:3649: error: stray '@' in program
hello.c:209:3651: error: null character(s) ignored [-Werror]
hello.c:209:3675: error: null character(s) ignored [-Werror]
hello.c:209:3691: error: null character(s) ignored [-Werror]
hello.c:209:3713: error: null character(s) ignored [-Werror]
hello.c:209:3737: error: null character(s) ignored [-Werror]
hello.c:209:3750: error: stray '@' in program
hello.c:209:3752: error: null character(s) ignored [-Werror]
hello.c:209:3781: error: stray '@' in program
hello.c:209:3783: error: null character(s) ignored [-Werror]
hello.c:209:3805: error: stray '@' in program
hello.c:209:3807: error: null character(s) ignored [-Werror]
hello.c:209:3830: error: stray '@' in program
hello.c:209:3832: error: null character(s) ignored [-Werror]
hello.c:209:3852: error: stray '@' in program
hello.c:209:3854: error: null character(s) ignored [-Werror]
hello.c:209:3871: error: null character(s) ignored [-Werror]
hello.c:209:3905: error: null character(s) ignored [-Werror]
hello.c:209:3927: error: null character(s) ignored [-Werror]
hello.c:209:3952: error: null character(s) ignored [-Werror]
hello.c:209:3963: error: null character(s) ignored [-Werror]
hello.c:209:3979: error: null character(s) ignored [-Werror]
hello.c:209:3993: error: null character(s) ignored [-Werror]
hello.c:209:4003: error: null character(s) ignored [-Werror]
hello.c:209:4031: error: stray '@' in program
hello.c:209:4033: error: null character(s) ignored [-Werror]
hello.c:209:4047: error: null character(s) ignored [-Werror]
cc1.exe: all warnings being treated as errors

C:\Users\weewi>

Can any of you guys help me identify the problem please, I only started coding today. Thanks.

Hey @Jamie117!
Welcome to the Forum!

i think this can help you

1 Like

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.