Language: C


    int n, m, h, p, k, g, a[201], 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:4:11: error: expected declaration specifiers or '...' before string constant
    4 |     scanf("%d", &n);
      |           ^~~~
main.c:4:17: error: expected declaration specifiers or '...' before '&' token
    4 |     scanf("%d", &n);
      |                 ^
main.c:6:5: error: expected identifier or '(' before 'for'
    6 |     for(i = 0; i < n; i++) {
      |     ^~~
main.c:6:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    6 |     for(i = 0; i < n; i++) {
      |                  ^
main.c:6:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    6 |     for(i = 0; i < n; i++) {
      |                        ^~
main.c:11:11: error: expected declaration specifiers or '...' before string constant
   11 |     scanf("%d", &m);
      |           ^~~~
main.c:11:17: error: expected declaration specifiers or '...' before '&' token
   11 |     scanf("%d", &m);
      |                 ^
main.c:13:5: error: expected identifier or '(' before 'for'
   13 |     for(i = 0; i < m; i++) {
      |     ^~~
main.c:13:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   13 |     for(i = 0; i < m; i++) {
      |                  ^
main.c:13:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   13 |     for(i = 0; i < m; i++) {
      |                        ^~
main.c:18:5: warning: data definition has no type or storage class
   18 |     c = n + m;
      |     ^
main.c:18:5: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:18:9: error: initializer element is not constant
   18 |     c = n + m;
      |         ^
main.c:19:5: warning: data definition has no type or storage class
   19 |     bsort(a, c);
      |     ^~~~~
main.c:19:5: error: type defaults to 'int' in declaration of 'bsort' [-Wimplicit-int]
main.c:19:5: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
main.c:21:5: error: expected identifier or '(' before 'for'
   21 |     for(i = 0; i < c; i++) {
      |     ^~~
main.c:21:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   21 |     for(i = 0; i < c; i++) {
      |                  ^
main.c:21:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   21 |     for(i = 0; i < c; i++) {
      |                        ^~
main.c:30:5: error: expected identifier or '(' before 'for'
   30 |     for(i = 0; i < c; i++) {
      |     ^~~
main.c:30:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   30 |     for(i = 0; i < c; i++) {
      |                  ^
main.c:30:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   30 |     for(i = 0; i < c; i++) {
      |                        ^~
main.c:36:12: error: expected declaration specifiers or '...' before string constant
   36 |     printf("\n");
      |            ^~~~
main.c:38:5: error: expected identifier or '(' before 'return'
   38 |     return 0;
      |     ^~~~~~
main.c:39:1: error: expected identifier or '(' before '}' token
   39 | }
      | ^