medians.c: In function 'main':
medians.c:7:9: error: unknown type name 'bool'
static bool used[2 * MAXN];
^
medians.c:10:16: error: 'true' undeclared (first use in this function)
used[2 * n] = true;
^
medians.c:10:16: note: each undeclared identifier is reported only once for each function it appears in
medians.c:17:19: error: 'v' undeclared (first use in this function)
a[2 * i - 2] = v[minimum], used[minimum] = true;
^
medians.c:17:29: warning: left-hand operand of comma expression has no effect [-Wunused-value]
a[2 * i - 2] = v[minimum], used[minimum] = true;
^
medians.c:19:29: warning: left-hand operand of comma expression has no effect [-Wunused-value]
a[2 * i - 1] = v[maximum], used[maximum] = true;
^
medians.c:22:21: error: 'false' undeclared (first use in this function)
if(used[b[i]] == false) {
^
medians.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
medians.c:12:30: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 1; i <= n; i++) scanf("%d", &b[i]);
^