C error messages
These are the errors you meet most often in C. Pick the one that matches your error message. If the syntax itself is the problem, there is also the C reference.
warning: control reaches end of non-void function [-Wreturn-type]A function that should return a value can end without a returnerror: expected ‘;’ before ‘return’You left out the semicolon (;) at the end of a statementwarning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’A printf or scanf format (%d, %f ...) doesn't match the type of the value you passedwarning: implicit declaration of function ‘strlen’You called a function whose name the compiler has not seen yeterror: lvalue required as left operand of assignmentThe left side of = is something you can't store a value in (often = typed for ==)Segmentation fault (core dumped)Your program tried to read or write memory it must not toucherror: ‘sum’ undeclared (first use in this function)You used a variable name that has not been declaredundefined reference to `main'The body of a function you called can't be found anywhere