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
#include <stdio.h>
int main(){
printf("a");
return 0;}
Follow this guide (https://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F) from the FAQ.