User forums => Help => Topic started by: zubr on March 31, 2024, 12:26:49 pm
Title: "Syntax error: "(" unexpected", in obviously correct hello world code
Post by: zubr on March 31, 2024, 12:26:49 pm
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;}
Title: Re: "Syntax error: "(" unexpected", in obviously correct hello world code
Post by: Miguel Gimenez on March 31, 2024, 01:54:15 pm
Follow this guide (https://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F) from the FAQ.