User forums > Help

"Syntax error: "(" unexpected", in obviously correct hello world code

(1/1)

zubr:
Ubuntu, installed codeblocks via terminal command, created an empty file, saved it on a path, typed these codes in, build and run, then 3: Syntax error: "(" unexpected


--- Code: ---#include <stdio.h>

int main(){
    printf("a");
    return 0;}
--- End code ---

Miguel Gimenez:
Follow this guide from the FAQ.

Navigation

[0] Message Index

Go to full version