Language: C++

#include<iostream>
using namespace std;

struct time{
	int h;
	int m;
};

int main(){
/////////////??£?¨?///////////////
	int n;
	int m;
	time tmp1[100];
	time tmp2[100];
/////////////??£?¨?///////////////

/////////////????????¨1??\???///////////////
	cin >> n;
	for(int i=0;i<n;i++)
		cin >> tmp1[i].h >> tmp1[i].m;
/////////////????????¨1??\???///////////////

	tmp1[n].h=25;	//??????
	
/////////////????????¨2??\???///////////////
	cin >> m;
	for(int i=0;i<m;i++)
		cin >> tmp2[i].h >> tmp2[i].m;
/////////////????????¨2??\???///////////////

	tmp2[m].h=25;	//??????
	
/////////////??£?¨?///////////////
	time ans[200];
	int cnt1=0;
	int cnt2=0;
/////////////??£?¨?///////////////
	
/////////////?????????///////////////
	for(int i=0;i<n+m;i++){
		if(tmp1[cnt1].h<tmp2[cnt2].h){
			ans[i]=tmp1[cnt1];
			cnt1++;
		}
		else if(tmp1[cnt1].h==tmp2[cnt2].h){
			if(tmp1[cnt1].m<tmp2[cnt2].m){
				ans[i]=tmp1[cnt1];
				cnt1++;
			}
			else if(tmp1[cnt1].m==tmp2[cnt2].m){
				ans[i]=tmp2[cnt2];
				cnt2++;
				cnt1++;
				n--;
			}
			else{
				ans[i]=tmp2[cnt2];
				cnt2++;
			}
		}
		else{
			ans[i]=tmp2[cnt2];
			cnt2++;
		}
	}
/////////////?????????///////////////
	
/////////////??????///////////////
	for(int i=0;i<n+m;i++){
		if(ans[i].m<10)
			cout << ans[i].h << ":0" << ans[i].m << ' ';
		else
			cout << ans[i].h << ':' << ans[i].m << ' ';
	}
	cout << endl;
/////////////??????///////////////
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: expected ';' before 'tmp1'
   13 |         time tmp1[100];
      |             ^~~~~
      |             ;
a.cc:14:13: error: expected ';' before 'tmp2'
   14 |         time tmp2[100];
      |             ^~~~~
      |             ;
a.cc:20:24: error: 'tmp1' was not declared in this scope; did you mean 'tm'?
   20 |                 cin >> tmp1[i].h >> tmp1[i].m;
      |                        ^~~~
      |                        tm
a.cc:23:9: error: 'tmp1' was not declared in this scope; did you mean 'tm'?
   23 |         tmp1[n].h=25;   //??????
      |         ^~~~
      |         tm
a.cc:28:24: error: 'tmp2' was not declared in this scope; did you mean 'tm'?
   28 |                 cin >> tmp2[i].h >> tmp2[i].m;
      |                        ^~~~
      |                        tm
a.cc:31:9: error: 'tmp2' was not declared in this scope; did you mean 'tm'?
   31 |         tmp2[m].h=25;   //??????
      |         ^~~~
      |         tm
a.cc:34:13: error: expected ';' before 'ans'
   34 |         time ans[200];
      |             ^~~~
      |             ;
a.cc:42:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   42 |                         ans[i]=tmp1[cnt1];
      |                         ^~~
      |                         abs
a.cc:47:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
   47 |                                 ans[i]=tmp1[cnt1];
      |                                 ^~~
      |                                 abs
a.cc:51:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
   51 |                                 ans[i]=tmp2[cnt2];
      |                                 ^~~
      |                                 abs
a.cc:57:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
   57 |                                 ans[i]=tmp2[cnt2];
      |                                 ^~~
      |                                 abs
a.cc:62:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   62 |                         ans[i]=tmp2[cnt2];
      |                         ^~~
      |                         abs
a.cc:70:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
   70 |                 if(ans[i].m<10)
      |                    ^~~
      |                    abs