Main.cc: In function 'int main()': Main.cc:9:8: error: expected '(' before 'delx' if delx<0: ^ Main.cc:11:8: error: expected '(' before 'dely' if dely<0: ^ Main.cc:13:8: error: expected '(' before 'delx' if delx>dely: ^ Main.cc:15:5: error: 'else' without a previous 'if' else ^ Main.cc:7:9: warning: unused variable 'delx' [-Wunused-variable] int delx = a-c; ^