Line 5: no ; at the end of main, that makes it a declaration instead of a definition.
Line 6 and 7: You can't declare variables here if you want global variables then put them before main, if you want variables local to main put them after the {
Line 12: Strange and unnecessary { with matching partner on line 14
Line 12: Comparison of john to name. Works because both are integers but john is uninitialised so the results are unpredictable.
Line 12: if (name == john) ... else if (name != john) second condition is unrequired, if name isn't equal to john if necessarily must be not equal to john just use if (name == john) ... else
Line 12: Code squished onto 1 line makes it unreadable
Program: variables john and name suggest they are used to hold peoples names but they are integers and therefore hold numbers. Variable typing is wrong or variable naming convention is confusing.