Language: C++

#include<iostream>
using namespace std;

struct time{
	int h,m;
};

int main(){
/////////////??£?¨?///////////////
	int n,m;
	time tmp1[100],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,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:11:13: error: expected ';' before 'tmp1'
   11 |         time tmp1[100],tmp2[100];
      |             ^~~~~
      |             ;
a.cc:17:24: error: 'tmp1' was not declared in this scope; did you mean 'tm'?
   17 |                 cin >> tmp1[i].h >> tmp1[i].m;
      |                        ^~~~
      |                        tm
a.cc:20:9: error: 'tmp1' was not declared in this scope; did you mean 'tm'?
   20 |         tmp1[n].h=25;   //??????
      |         ^~~~
      |         tm
a.cc:25:24: error: 'tmp2' was not declared in this scope; did you mean 'tm'?
   25 |                 cin >> tmp2[i].h >> tmp2[i].m;
      |                        ^~~~
      |                        tm
a.cc:28:9: error: 'tmp2' was not declared in this scope; did you mean 'tm'?
   28 |         tmp2[m].h=25;   //??????
      |         ^~~~
      |         tm
a.cc:31:13: error: expected ';' before 'ans'
   31 |         time ans[200];
      |             ^~~~
      |             ;
a.cc:38:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   38 |                         ans[i]=tmp1[cnt1];
      |                         ^~~
      |                         abs
a.cc:43:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
   43 |                                 ans[i]=tmp1[cnt1];
      |                                 ^~~
      |                                 abs
a.cc:47:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
   47 |                                 ans[i]=tmp2[cnt2];
      |                                 ^~~
      |                                 abs
a.cc:53:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
   53 |                                 ans[i]=tmp2[cnt2];
      |                                 ^~~
      |                                 abs
a.cc:58:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   58 |                         ans[i]=tmp2[cnt2];
      |                         ^~~
      |                         abs
a.cc:66:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
   66 |                 if(ans[i].m<10)
      |                    ^~~
      |                    abs