prog.c: In function ‘main’:
prog.c:5:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘scanf’
scanf("%d", n);
^~~~~
prog.c:5:14: error: ‘n’ undeclared (first use in this function)
scanf("%d", n);
^
prog.c:5:14: note: each undeclared identifier is reported only once for each function it appears in