prog.c: In function ‘main’:
prog.c:29:12: warning: implicit declaration of function ‘getTenIntegers’ [-Wimplicit-function-declaration]
int *p = getTenIntegers();
^~~~~~~~~~~~~~
prog.c:29:12: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
prog.c: In function ‘getIntegers’:
prog.c:15:10: warning: function returns address of local variable [-Wreturn-local-addr]
return p;
^
prog.c:5:7: note: declared here
int a[MAX];
^
/home/sUZKlk/cc7yNMqM.o: In function `main':
prog.c:(.text.startup+0x7): undefined reference to `getTenIntegers'
collect2: error: ld returned 1 exit status