prog.cpp: In function ‘int main()’:
prog.cpp:10:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &size);
~~~~~^~~~~~~~~~~~~
prog.cpp:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &array[i]);
~~~~~^~~~~~~~~~~~~~~~~
/usr/bin/ld: /home/Z4tIAR/ccm9vQBI.o: in function `main':
prog.cpp:(.text.startup+0x70): undefined reference to `selection_sort(int*, int)'
collect2: error: ld returned 1 exit status