Language: C++

// 0298
#include <iostream>
#include <vector>
using namespace std;

struct time{
	int h;
	int m;
};

void merge(vector<time> bus1, vector<time> bus2, vector<time> &bus){
	int i=0, j=0, check;
	while(i+j < bus1.size()+bus2.size()){
		if(i == bus1.size()){
			check = 2;
		}else if(j == bus2.size()){
			check = 1;
		}else if(bus1[i].h > bus2[j].h){
			check = 2;
		}else if(bus1[i].h < bus2[j].h){
			check = 1;
		}else{
			if(bus1[i].m > bus2[j].m)
				check = 2;
			else if(bus1[i].m < bus2[j].m)
				check = 1;
			else
				check = 0;
		}

		if(check == 1){
			bus.push_back(bus1[i]);
			i++;
		}else if(check == 2){
			bus.push_back(bus2[j]);
			j++;
		}else if(check == 0){
			bus.push_back(bus1[i]);
			i++;
			j++;
		}
	}
}

int main(){
	int N, M, hour, min;
	vector<time> bus1, bus2, bus;
	time t;

	cin>>N;
	for(int i=0;i<N;i++){
		cin>>hour>>min;
		t.h = hour;
		t.m = min;
		bus1.push_back(t);
	}

	cin>>M;
	for(int j=0;j<M;j++){
		cin>>hour>>min;
		t.h = hour;
		t.m = min;
		bus2.push_back(t);
	}

	merge(bus1, bus2, bus);

	for(int k=0;k<bus.size();k++){
		if(k != 0)
			cout<<" ";
		cout<<bus[k].h<<":";
		
		if(bus[k].m < 10)
			cout<<"0";
		cout<<bus[k].m;
	}
	cout<<endl;

	return 0;
}

Compiler output:
a.cc:11:23: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
   11 | void merge(vector<time> bus1, vector<time> bus2, vector<time> &bus){
      |                       ^
a.cc:11:23: note:   expected a type, got 'time'
a.cc:11:23: error: template argument 2 is invalid
a.cc:11:42: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
   11 | void merge(vector<time> bus1, vector<time> bus2, vector<time> &bus){
      |                                          ^
a.cc:11:42: note:   expected a type, got 'time'
a.cc:11:42: error: template argument 2 is invalid
a.cc:11:61: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
   11 | void merge(vector<time> bus1, vector<time> bus2, vector<time> &bus){
      |                                                             ^
a.cc:11:61: note:   expected a type, got 'time'
a.cc:11:61: error: template argument 2 is invalid
a.cc: In function 'void merge(int, int, int&)':
a.cc:13:26: error: request for member 'size' in 'bus1', which is of non-class type 'int'
   13 |         while(i+j < bus1.size()+bus2.size()){
      |                          ^~~~
a.cc:13:38: error: request for member 'size' in 'bus2', which is of non-class type 'int'
   13 |         while(i+j < bus1.size()+bus2.size()){
      |                                      ^~~~
a.cc:14:30: error: request for member 'size' in 'bus1', which is of non-class type 'int'
   14 |                 if(i == bus1.size()){
      |                              ^~~~
a.cc:16:36: error: request for member 'size' in 'bus2', which is of non-class type 'int'
   16 |                 }else if(j == bus2.size()){
      |                                    ^~~~
a.cc:18:30: error: invalid types 'int[int]' for array subscript
   18 |                 }else if(bus1[i].h > bus2[j].h){
      |                              ^
a.cc:18:42: error: invalid types 'int[int]' for array subscript
   18 |                 }else if(bus1[i].h > bus2[j].h){
      |                                          ^
a.cc:20:30: error: invalid types 'int[int]' for array subscript
   20 |                 }else if(bus1[i].h < bus2[j].h){
      |                              ^
a.cc:20:42: error: invalid types 'int[int]' for array subscript
   20 |                 }else if(bus1[i].h < bus2[j].h){
      |                                          ^
a.cc:23:32: error: invalid types 'int[int]' for array subscript
   23 |                         if(bus1[i].m > bus2[j].m)
      |                                ^
a.cc:23:44: error: invalid types 'int[int]' for array subscript
   23 |                         if(bus1[i].m > bus2[j].m)
      |                                            ^
a.cc:25:37: error: invalid types 'int[int]' for array subscript
   25 |                         else if(bus1[i].m < bus2[j].m)
      |                                     ^
a.cc:25:49: error: invalid types 'int[int]' for array subscript
   25 |                         else if(bus1[i].m < bus2[j].m)
      |                                                 ^
a.cc:32:29: error: request for member 'push_back' in 'bus', which is of non-class type 'int'
   32 |                         bus.push_back(bus1[i]);
      |                             ^~~~~~~~~
a.cc:32:43: error: invalid types 'int[int]' for array subscript
   32 |                         bus.push_back(bus1[i]);
      |                                           ^
a.cc:35:29: error: request for member 'push_back' in 'bus', which is of non-class type 'int'
   35 |                         bus.push_back(bus2[j]);
      |                             ^~~~~~~~~
a.cc:35:43: error: invalid types 'int[int]' for array subscript
   35 |                         bus.push_back(bus2[j]);
      |                                           ^
a.cc:38:29: error: request for member 'push_back' in 'bus', which is of non-class type 'int'
   38 |                         bus.push_back(bus1[i]);
      |                             ^~~~~~~~~
a.cc:38:43: error: invalid types 'int[int]' for array subscript
   38 |                         bus.push_back(bus1[i]);
      |                                           ^
a.cc: In function 'int main()':
a.cc:47:20: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
   47 |         vector<time> bus1, bus2, bus;
      |                    ^
a.cc:47:20: note:   expected a type, got 'time'
a.cc:47:20: error: template argument 2 is invalid
a.cc:48:13: error: expected ';' before 't'
   48 |         time t;
      |             ^~
      |             ;
a.cc:53:17: error: 't' was not declared in this scope
   53 |                 t.h = hour;
      |                 ^
a.cc:55:22: error: request for member 'push_back' in 'bus1', which is of non-class type 'int'
   55 |                 bus1.push_back(t);
      |                      ^~~~~~~~~
a.cc:61:17: error: 't' was not declared in this scope
   61 |                 t.h = hour;
      |                 ^
a.cc:63:22: error: request for member 'push_back' in 'bus2', which is of non-class type 'int'
   63 |                 bus2.push_back(t);
      |                      ^~~~~~~~~
a.cc:68:27: error: request for member 'size' in 'bus', which is of non-class type 'int'
   68 |         for(int k=0;k<bus.size();k++){
      |                           ^~~~
a.cc:71:26: error: invalid types 'int[int]' for array subscript
   71 |                 cout<<bus[k].h<<":";
      |                          ^
a.cc:73:23: error: invalid types 'int[int]' for array subscript
   73 |                 if(bus[k].m < 10)
      |                       ^
a.cc:75:26: error: invalid types 'int[int]' for array subscript
   75 |                 cout<<bus[k].m;
      |                          ^