Author Topic: "Syntax error: "(" unexpected", in obviously correct hello world code  (Read 2162 times)

Offline zubr

  • Single posting newcomer
  • *
  • Posts: 1
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;}

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1634
Re: "Syntax error: "(" unexpected", in obviously correct hello world code
« Reply #1 on: March 31, 2024, 01:54:15 pm »
Follow this guide from the FAQ.