prog.c: In function ‘main’:
prog.c:5:2: warning: implicit declaration of function ‘scnaf’ [-Wimplicit-function-declaration]
scnaf("%d", &n);
^~~~~
prog.c:5:15: error: ‘n’ undeclared (first use in this function)
scnaf("%d", &n);
^
prog.c:5:15: note: each undeclared identifier is reported only once for each function it appears in