prog.c: In function ‘main’:
prog.c:17:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
float tips:
^
prog.c:17:12: error: expected expression before ‘:’ token
prog.c:26:46: warning: format ‘%f’ expects argument of type ‘double’, but argument 3 has type ‘float (*)(int)’ [-Wformat=]
printf("A 15 percent tips of %d would be: %f\n", intValue, tips);
^
prog.c: At top level:
prog.c:28:1: error: expected identifier or ‘(’ before ‘return’
return 0;
^~~~~~
prog.c:29:1: error: expected identifier or ‘(’ before ‘}’ token
}
^
prog.c: In function ‘tip’:
prog.c:31:8: warning: type of ‘intValue’ defaults to ‘int’ [-Wimplicit-int]
float tip(intValue)
^~~