prog.c: In function ‘solve’:
prog.c:22:12: warning: implicit declaration of function ‘pow’ [-Wimplicit-function-declaration]
count[3]=pow(10,count[2]);
^~~
prog.c:22:12: warning: incompatible implicit declaration of built-in function ‘pow’
prog.c:22:12: note: include ‘<math.h>’ or provide a declaration of ‘pow’
prog.c:2:1:
+#include <math.h>
prog.c:22:12:
count[3]=pow(10,count[2]);
^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status