foo.c: In function 'main':
foo.c:7:16: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
7 | int *arr = malloc(sizeof(int) * (N+1));
| ^~~~~~
foo.c:7:16: warning: incompatible implicit declaration of built-in function 'malloc'
foo.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
1 | #include "stdio.h"
+++ |+#include <stdlib.h>
2 | int Insert(int *array, int length, const int b);
foo.c:15:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
15 | free(arr);
| ^~~~
foo.c:15:5: warning: incompatible implicit declaration of built-in function 'free'
foo.c:15:5: note: include '<stdlib.h>' or provide a declaration of 'free'
foo.c:6:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%d", &N);
| ^~~~~~~~~~~~~~~
foo.c:9:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%d", &arr[i]);
| ^~~~~~~~~~~~~~~~~~~~
foo.c:11:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
11 | scanf("%d", &value);
| ^~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务