prog.c:3: warning: return type defaults to ‘int’
prog.c: In function ‘main’:
prog.c:8: warning: assignment from incompatible pointer type
prog.c:11: warning: format ‘%d’ expects type ‘int *’, but argument 2 has type ‘int’
prog.c:14:15: warning: multi-character character constant
prog.c:14: error: lvalue required as left operand of assignment
prog.c:11: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result