Language: C

                temp = a[j];
                a[j] = a[j - 1];
                a[j - 1] = temp;
            }
        }
    }
}

int main(void)
{

    int n, m, h, p, k, g, a[200], i, c, j;

    scanf("%d", &n);

    for(i = 0; i < n; i++) {
        scanf("%d %d", &h, &p);
        a[i] = h * 60 + p;
    }

    scanf("%d", &m);

    for(i = 0; i < m; i++) {
        scanf("%d %d", &k, &g);
        a[n + i] = k * 60 + g;
    }

    c = n + m;
    bsort(a, c);

    for(i = 0; i < c; i++) {
        if(a[i] == a[i + 1]) {
            for(j = 0; j < c; j++)
                a[i + j] = a[i + j + 1];
            c--;
            i--;
        }
    }

    for(i = 0; i < c; i++) {
        printf("%d:%.2d", a[i] / 60, a[i] % 60);
        if(i != c - 1)
            printf(" ");
    }

    printf("\n");

    return 0;
}

Compiler output:
main.c:1:17: warning: data definition has no type or storage class
    1 |                 temp = a[j];
      |                 ^~~~
main.c:1:17: error: type defaults to 'int' in declaration of 'temp' [-Wimplicit-int]
main.c:1:24: error: 'a' undeclared here (not in a function)
    1 |                 temp = a[j];
      |                        ^
main.c:1:26: error: 'j' undeclared here (not in a function)
    1 |                 temp = a[j];
      |                          ^
main.c:2:17: warning: data definition has no type or storage class
    2 |                 a[j] = a[j - 1];
      |                 ^
main.c:2:17: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:3:17: warning: data definition has no type or storage class
    3 |                 a[j - 1] = temp;
      |                 ^
main.c:3:17: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:4:13: error: expected identifier or '(' before '}' token
    4 |             }
      |             ^
main.c:5:9: error: expected identifier or '(' before '}' token
    5 |         }
      |         ^
main.c:6:5: error: expected identifier or '(' before '}' token
    6 |     }
      |     ^
main.c:7:1: error: expected identifier or '(' before '}' token
    7 | }
      | ^
main.c: In function 'main':
main.c:14:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   14 |     scanf("%d", &n);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 |                 temp = a[j];
main.c:14:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   14 |     scanf("%d", &n);
      |     ^~~~~
main.c:14:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:29:5: error: implicit declaration of function 'bsort' [-Wimplicit-function-declaration]
   29 |     bsort(a, c);
      |     ^~~~~
main.c:41:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   41 |         printf("%d:%.2d", a[i] / 60, a[i] % 60);
      |         ^~~~~~
main.c:41:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:41:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:41:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:46:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   46 |     printf("\n");
      |     ^~~~~~
main.c:46:5: note: include '<stdio.h>' or provide a declaration of 'printf'