criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m,a[100],b[100],c[100],d[100];
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>a[i]>>b[i];
        cin>>m;
        for(int p=0;p<m;p++){
            cin>>c[p]>>d[p];
            if(a[i]*60+b[i]==c[p]*60+d[p]){
                cout<<a[i]<<":"<<b[i]<<" ";
            }
            else{
                if(a[i]*60+b[i]>c[p]*60+d[p]){
                cout<<a[i]<<":"<<b[i]<<" "<<c[p]<<":"<<d[p}<<" ";
                                                         }
                else{
                    cout<<c[p]<<":"<<d[p}<<" "<<a[i]<<":"<<b[i]<<" ";
                                       }
                                       }
                }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:59: error: expected ']' before '}' token
   16 |                 cout<<a[i]<<":"<<b[i]<<" "<<c[p]<<":"<<d[p}<<" ";
      |                                                           ^
      |                                                           ]
a.cc:16:59: error: expected ';' before '}' token
   16 |                 cout<<a[i]<<":"<<b[i]<<" "<<c[p]<<":"<<d[p}<<" ";
      |                                                           ^
      |                                                           ;
a.cc:16:60: error: expected primary-expression before '<<' token
   16 |                 cout<<a[i]<<":"<<b[i]<<" "<<c[p]<<":"<<d[p}<<" ";
      |                                                            ^~
a.cc:18:17: error: 'else' without a previous 'if'
   18 |                 else{
      |                 ^~~~
a.cc:19:41: error: expected ']' before '}' token
   19 |                     cout<<c[p]<<":"<<d[p}<<" "<<a[i]<<":"<<b[i]<<" ";
      |                                         ^
      |                                         ]
a.cc:19:41: error: expected ';' before '}' token
   19 |                     cout<<c[p]<<":"<<d[p}<<" "<<a[i]<<":"<<b[i]<<" ";
      |                                         ^
      |                                         ;
a.cc:19:42: error: expected primary-expression before '<<' token
   19 |                     cout<<c[p]<<":"<<d[p}<<" "<<a[i]<<":"<<b[i]<<" ";
      |                                          ^~
a.cc: At global scope:
a.cc:23:5: error: expected declaration before '}' token
   23 |     }
      |     ^
a.cc:24:5: error: expected unqualified-id before 'return'
   24 |     return 0;
      |     ^~~~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#include<algorithm>
#include<vecotr>

int main(){
	int N,h[100],m[100];
	int M,k[100],g[100];
	scanf("%d",&N);
	for(int i=0;i<N;i++)scanf("%d %d",&h[i],&m[i]);
	scanf("%d",&M);
	for(int i=0;i<N;i++)scanf("%d %d",&k[i],&g[i]);
	vector<int> t;
	for(int i=0;i<N;i++){
		t.push_back(h[i]*60+m[i]);
		t.push_back(k[i]*60+g[i]);
	}
	sort(t.begin(),t.end());
	t.erase(unique(t.begin(),t.end()),t.end());
	for(int i=0;i<t.size();i++) printf("%d:%d",t[i]/60,t[i]%60);
}

Compiler output:
a.cc:3:9: fatal error: vecotr: No such file or directory
    3 | #include<vecotr>
      |         ^~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
#include<algorithm>
#include<vector>
using namespace std;

int main(){
	int N,h[100],m[100];
	int M,k[100],g[100];
	scanf("%d",&N);
	for(int i=0;i<N;i++)scanf("%d %d",&h[i],&m[i]);
	scanf("%d",&M);
	for(int i=0;i<M;i++)scanf("%d %d",&k[i],&g[i]);
	vector<int> t;
	for(int i=0;i<N;i++) t.push_back(h[i]*60+m[i]);
	for(int i=0;i<M;i++) t.push_back(k[i]*60+g[i]);
	sort(t.begin(),t.end());
	t.erase(unique(t.begin(),t.end()),t.end());
	for(int i=0;i<t.size();i++) printf("%d:%02d ",t[i]/60,t[i]%60);
	print("\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'print' was not declared in this scope; did you mean 'rint'?
   19 |         print("\n");
      |         ^~~~~
      |         rint
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
    int n,m,iimo1[101],iimo2[101],turu1[101],turu2[101],co1=0,co2=0;
    cin>>n;
    for(int i=0;i<n;i++)cin>>iimo1[i]>>iimo2[i];
    cin>>m;
    for(int i=0;i<m;i++)cin>>turu1[i]>>turu2[i];
    for(int i=0;n==co1&&m==co2;i++){
        if(i!=0)cout<<" ";
        if(iimo1[co1]>turu1[co2]||n==co1){
            cout<<turu1[co2]<<":";
            if(turu2[co2]<10)cout<<"0"<<turu2[co2];
            else cout<<turu2[co2];
            co2++;
        }
        else if(iimo1[co1]<turu1[co2]||m==co2){
            cout<<iimo1[co1]<<":";
            if(iimo2[co1]<10)cout<<"0"<<iimo2[co1];
            else cout<<iimo2[co1];
            co1++;
        }
        else if(iimo2[co1]>turu2[co2]){
            cout<<turu1[co2]<<":";
            if(turu2[co2]<10)cout<<"0"<<turu2[co2];
            else cout<<turu2[co2];
            co2++;
        }
        else if(iimo2[co1]>turu2[co2]){{
            cout<<iimo1[co1]<<":";
            if(iimo2[co1]<10)cout<<"0"<<iimo2[co1];
            else cout<<iimo2[co1];
            co1++;
        }
        else{
            cout<<iimo1[co1]<<":";
            if(iimo2[co1]<10)cout<<"0"<<iimo2[co1];
            else cout<<iimo2[co1];
            co1++;
            co2++;
        }
    }
    cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:9: error: expected '}' before 'else'
   37 |         else{
      |         ^~~~
a.cc:31:39: note: to match this '{'
   31 |         else if(iimo2[co1]>turu2[co2]){{
      |                                       ^
Language: C++

#include <vector>
#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
    int n, m, p, q; vector<int> t;
    
    cin >> n; for(int i = 0; i < n; i++) { cin >> p >> q; t.push_back(p * 60 + q); }
    cin >> m; for(int i = 0; i < m; i++) { cin >> p >> q; t.push_back(p * 60 + q); }
    
    sort(t.begin(), t.end());
    
    int count_ = 0;
    
    for(int i = 1; i < t.size(); i++)
    {
        if(t[i - 1] != t[i])
        {
            if(count_) { printf(" "); }
            
            printf("%d:%02d", t[i - 1] / 60, t[i - 1] % 60);
            
            count++;
        }
    }
    
    printf("%d:%02d\n", t[n + m - 1] / 60, t[n + m - 1] % 60);
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:18: error: no post-increment operator for type
   26 |             count++;
      |                  ^~
Language: C++

#include<iostream>
#include<queue>
#include<cstdio>
using namespace std;
int main(){
	int n=0;
	int i=0;
	priority_queue<int,vector<int>,greater<int> > q1;
	int a=0;
	int b=0;
	int j=0;
	int m=-1;
	for(i=0;i<2;i++){
		cin>>n;
		for(j=0;j<n;j++){
			cin>>a>>b;
			a=a*60+b;
			q1.push(a);
		}
	}
	while(q1.empty()==false){
		a=q1.top();
		q1.pop();
		if(a==m)continue;
		m=a;
		b=a%60;
		a/=60;
		printf("%d:%2d",a,b)
		if(!q1.empty())cout<<" ";
	}
	cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:37: error: expected ';' before 'if'
   28 |                 printf("%d:%2d",a,b)
      |                                     ^
      |                                     ;
   29 |                 if(!q1.empty())cout<<" ";
      |                 ~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int N,M;
	cin >> N;
	int h[N],m[N];
	for(int i=0; i<N; i++)
		cin >>h[i]>>m[i];

	cin >> M;
	int k[M],g[M];
	for(int i=0; i<M; i++)
		cin >>k[i]>>g[i];

	int Nc=0,Mc=0,same=0;
	for(int i=0; i<N+M; i++){
		if((h[Nc]<k[Mc]||(h[Nc]==k[Mc]&&m[Nc]<g[Nc]))||Mc==M){//飯盛のが早いか鶴賀城がもうない

			cout << h[Nc]<<':';
			if(m[Nc]<10)
				cout <<'0';
			cout <<m[Nc];
			Nc++;
			if(Nc+Mc=N+M)
				cout<<' ';
			else
				cout <<endl;
			
		}
		else if((h[Nc]>k[Mc]||(h[Nc]==k[Mc]&&m[Nc]>g[Nc]))||Nc==N){
			
			cout << k[Mc]<<':';
			if(g[Mc]<10)
				cout <<'0';
			cout <<g[Mc];
				Mc++;

			if(Nc+Mc=N+M)
				cout<<' ';
			else
				cout <<endl;
		}
		else if (h[Nc]==k[Mc]&&m[Nc]==g[Mc]){
			cout << h[Nc]<<':';
			if(m[Nc]<10)
				cout <<'0';
			cout <<m[Nc];
			Nc++;	
			Mc++;
			i++;

			if(Nc+Mc!=N+M)
				cout<<' ';
			else
				cout <<endl;
		}		
	}

	return 0;
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:25:30: error: lvalue required as left operand of assignment
   25 |                         if(Nc+Mc=N+M)
      |                            ~~^~~
a.cc:39:30: error: lvalue required as left operand of assignment
   39 |                         if(Nc+Mc=N+M)
      |                            ~~^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
        int N,M;
        int h[],m[],k[],g[],a[],b[];

        cin>>N;

        for(int i=0;i<N;i++){
                cin>>h[i]<<m[i];
                a[i]=(h[i]*60)+m[i];
        }

        cin>>M;

        for(int j=0;j<M;j++){
                cin>>k[j]>>g[j];
                b[j]=(k[j]*60)+g[j];
        }




        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: storage size of 'h' isn't known
    6 |         int h[],m[],k[],g[],a[],b[];
      |             ^
a.cc:6:17: error: storage size of 'm' isn't known
    6 |         int h[],m[],k[],g[],a[],b[];
      |                 ^
a.cc:6:21: error: storage size of 'k' isn't known
    6 |         int h[],m[],k[],g[],a[],b[];
      |                     ^
a.cc:6:25: error: storage size of 'g' isn't known
    6 |         int h[],m[],k[],g[],a[],b[];
      |                         ^
a.cc:6:29: error: storage size of 'a' isn't known
    6 |         int h[],m[],k[],g[],a[],b[];
      |                             ^
a.cc:6:33: error: storage size of 'b' isn't known
    6 |         int h[],m[],k[],g[],a[],b[];
      |                                 ^
Language: C++

#include<iostream>
using namespace std;

int main (){
	int N,M,L;
	int tmp1,tmp2;
	int h[200];
	int m[200];
	int k[200];
	int g[200];
	int c=100,d=100;
	for(int i=0;i<c;i++){
		cin>>N>>h[i]>>m[i];
		if(c!=N)  c=N;
	}
	for(int j=0;j<d;j++){
		cin>>M>>k[j]>>g[j];
		if(d!=M)  d=M;
	}
	int T[M+N]; int t[M+N];
	for(int x=0;x<M+1;x++){
		h[N+x+1]=k[x];
		m[N+x+1]=g[x];	
	}
	for(int l=0;l<M+N;l++){
		if(h[l]>h[l+1]){
			tmp1=h[l];
			h[l]=h[l+1];
			h[l+1]=tmp1;
			tmp2=m[l];
			m[l]=m[l+1];
			m[l+1]=tmp2;
		}else if(h[l]==h[l]){
			if(m[l]>m[l+1]){
				tmp2=m[l];
			m[l]=m[l+1];
			m[l+1]=tmp2;
			}
			
		}
	}
	for(int y=0;i<M+N;y++){
		cout<<h[y]<<":";
		if(m[y]=0){
		 	cout<<00;
		 else{
		 	cout<<m[y];
		 }
		 cout<<' ';
	}
	

	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:21: error: 'i' was not declared in this scope
   42 |         for(int y=0;i<M+N;y++){
      |                     ^
a.cc:46:18: error: expected '}' before 'else'
   46 |                  else{
      |                  ^~~~
a.cc:44:27: note: to match this '{'
   44 |                 if(m[y]=0){
      |                           ^
Language: C++

#include<iostream>
using namespace std;

int main (){
	int N,M,L;
	int tmp1,tmp2;
	int h[200];
	int m[200];
	int k[200];
	int g[200];
	int c=100,d=100;
	for(int i=0;i<c;i++){
		cin>>N>>h[i]>>m[i];
		if(c!==N)  c=N;
	}
	for(int j=0;j<d;j++){
		cin>>M>>k[j]>>g[j];
		if(d!==M)  d=M;
	}
	for(int x=0;x<M;x++){
		h[N+x+1]=k[x];
		m[N+x+1]=g[x];	
	}
	for(int l=0;l<M+N;l++){
		if(h[l]>h[l+1]){
			tmp1=h[l];
			h[l]=h[l+1];
			h[l+1]=tmp1;
			tmp2=m[l];
			m[l]=m[l+1];
			m[l+1]=tmp2;
		}else if(h[l]==h[l]){
			if(m[l]>m[l+1]){
				tmp2=m[l];
			m[l]=m[l+1];
			m[l+1]=tmp2;
			}
			
		}
	}
	for(int y=0;y<M+N;y++){
		cout<<h[y]<<":";
		if(m[y]==0){
		 	cout<<00;
		 }else{
		 	cout<<m[y];
		 }
		 cout<<' ';
	}
	

	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: expected primary-expression before '=' token
   14 |                 if(c!==N)  c=N;
      |                       ^
a.cc:18:23: error: expected primary-expression before '=' token
   18 |                 if(d!==M)  d=M;
      |                       ^
Language: C++

#include <iostream>
using namespace std;


void BubbleSort(int S[], int N)
{
	bool flg;

	do{
		flg = false;

		for(int i=0; i<N-1; i++){
			if(S[i]>S[i+1]){
				int tmp = S[i];
				S[i] = S[i+1];
				S[i+1] = tmp;

				flg = true;
			}
		}
	}while(flg);
}

int main(){

  int N,h[N],m[N],min[N];
  cin >> N;

  for(int i=0;i<N;i++){
    cin >> h[i] >> m[i];
    min[i]=h[i]*60+m[i];
  }


  int M,k[M],g[M],min[M];
  cin >> M;

  for(int i=0;i<M;i++){
    cin >> k[i] >> g[i];
    min[i+N]=k[i]*60+k[i];
  }

  int L=N+M;
  BubbleSort(min,L)

int hour[L],minute[L];
  for(int i=0;i<L;i++){
      hour[i]=min[i]/60;
      minute[i]=min[i]%60;
      cout << hour[i];

      if(minute[i]<10){
        cout << "0" << minute[i] << endl;
      }else{
        cout << minute[i] <<endl;
      }
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:19: error: conflicting declaration 'int min [M]'
   35 |   int M,k[M],g[M],min[M];
      |                   ^~~
a.cc:26:19: note: previous declaration as 'int min [N]'
   26 |   int N,h[N],m[N],min[N];
      |                   ^~~
a.cc:44:20: error: expected ';' before 'int'
   44 |   BubbleSort(min,L)
      |                    ^
      |                    ;
   45 | 
   46 | int hour[L],minute[L];
      | ~~~                 
a.cc:48:7: error: 'hour' was not declared in this scope
   48 |       hour[i]=min[i]/60;
      |       ^~~~
a.cc:49:7: error: 'minute' was not declared in this scope
   49 |       minute[i]=min[i]%60;
      |       ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
int N=0,M=0;

cin>>N;
int h[N],m[N];
for(int i=0; i<N; i++) cin>>h[i]>>m[i];

cin>>M;
int k[M],g[M],all[M+N];
for(int i=0; i<M; i++) cin>>k[i]>>g[i];

for(int i=0; i<M+N; i++){
 if(i<N) all[i]=h[i]*60+m[i];
 else all[i]=k[i-N]*60+g[i-N];
}

for(int i=0; i<M+N-1; i++){
 for(int j=M+N-1; j>i; j--){
   int tmp=0;
   if(all[j]<all[j-1]){
     tmp=all[j-1];
     all[j-1]=all[j];
     all[j]=tmp;
    }
  }
}

for(int i=0; i<M+N-1; i++){
 if(all[i]%60<10) cout<<all[i]/60<<':'<<0<<all[i]%60<<' ';
 else cout<<all[i]/60<<':'<<all[i]%60<<' ';
}
 if(all[i]%60<10) cout<<all[i]/60<<':'<<0<<all[i]%60;
 else cout<<all[i]/60<<':'<<all[i]%60;
cout<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:9: error: 'i' was not declared in this scope
   35 |  if(all[i]%60<10) cout<<all[i]/60<<':'<<0<<all[i]%60;
      |         ^
Language: C++

#include <iostream>
using namespace std;

struct bus{
    unsigned h;
    unsigned m;
};

int main(){
  unsigned N=0;
  cin >> N;
  bus bus[N+100];
  for(unsigned i=0;i<N;i++){
     cin >> bus[i].h >> bus[i].m;
  }
  unsigned M=0;
  cin >> M;
  for(unsigned j=0;j<M;j++){
     cin >> bus[N+j].h >> bus[N+j].m;
   }
  for(unsigned k=0;k<N+M;k++){
    for(unsigned l=N+M;l>k;l--){
     unsigned a=0,b=0;
       if(bus[l-1].h>bus[l].h){
           a=bus[l].h; 
           b=bus[l].m;
           bus[l].h=bus[l-1].h;
           bus[l].m=bus[l-1].m;
           bus[l-1].h=a; 
           bus[l-1].m=b;
        }
    }
  }
  for(unsigned k=0;k<N+M;k++){
    for(unsigned l=N+M;l>k;l--){
     unsigned a=0;
       if((bus[l-1].m>bus[l].m)&&(bus[l-1].h==BUS[l].h)){
           
           b=bus[l].m;
           
           bus[l].m=bus[l-1].m;
          
           bus[l-1].m=b;
        }
    }
  }
  int s=0;
 for(unsigned m=0;m<N+M;m++){
     for(int n=0;n<N+M;n++){
      if(bus[m].h==bus[m+1].h){
           bus[m+n].h=bus[m+n+1].h;
           bus[m+n].m=bus[m+n+1].m; 
           s++;
      }
    }
  }
 if(s>0){
     for(unsigned o=0;o<N+M-1;o++){
       if(o<N+M-2){
           cout << bus[o].h << ":";
           if(bus[o].m<10){
             cout << "0" << bus[o].m << ' ';
           }else{
             cout << bus[o].m << ' ';
         }
       }else{
           cout << bus[o].h << ":";
           if(bus[o].m<10){
             cout << "0" << bus[o].m << endl;
           }else{
             cout << bus[o].m << endl;
            }
         }
     }
  }
  if(s==0){
     for(unsigned p=0;p<N+M;p++){
       if(p<N+M-1){
           cout << bus[p].h << ":";
           if(bus[p].m<10){
             cout << "0" << bus[p].m << ' ';
           }else{
             cout << bus[p].m << ' ';
         }
       }else{
           cout << bus[p].h << ":";
           if(bus[p].m<10){
             cout << "0" << bus[p].m << endl;
           }else{
             cout << bus[p].m << endl;
            }
         }
     }
  }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:47: error: 'BUS' was not declared in this scope
   37 |        if((bus[l-1].m>bus[l].m)&&(bus[l-1].h==BUS[l].h)){
      |                                               ^~~
a.cc:39:12: error: 'b' was not declared in this scope
   39 |            b=bus[l].m;
      |            ^
Language: C++

#include<stdio.h>
int main()
{
	int N,M,sum, h[24], m[60],a,b;
	scanf_s("%d", &N);
	for (int i = 0; i < N; i++) {
		scanf_s("%d %d", &h[i], &m[i]);
	}
	scanf_s("%d", &M);
	sum = N + M;
	for (int i = N; i < sum; i++) {
		scanf_s("%d %d", &h[i], &m[i]);
	}
	for (int i = 0; i < sum; i++) {
		for (int j = i; j < sum; j++) {
			if (h[i] > h[j]) {
				a = h[i];
				h[i] = h[j];
				h[j] = a;
				b = m[i];
				m[i] = m[j];
				m[j] = b;
			}
			if (m[i] == m[j]) {
				if (m[i] > m[j]) {
					b= m[i];
					m[i] = m[j];
					m[j] = b;
				}
			}
		}
	}
	for (int i = 0; i < sum; i++) {
		printf("%d", h[i]);
		printf(":");
		if (m[i] < 10) {
			printf("0");
		}
		printf("%d\n", m[i]);
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%d", &N);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
#include <vector>
#include <iomanip>
using namespace std;

int N, M;

int main() {
  vector<int> out;

  cin >> N;
  for (int i=0; i<N; i++) {
    int h, m;
    cin >> h >> m;
    out.push_back(h*60 + m);
  }
  cin >> M;
  for (int i=0; i<M; i++) {
    int h, m;
    cin >> h >> m;
    out.push_back(h*60 + m);
  }
  sort(out.begin(), out.end());
  out.erase( unique( out.begin(), out.end() ), out.end() );

  bool first = true;
  for (auto x : out) {
    if (!first) cout << " ";
    first = false;
    cout << setfill('0') << setw(2) << x/60 << ":" << setfill('0') << setw(2) << x%60;
  }
  cout << "\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   23 |   sort(out.begin(), out.end());
      |   ^~~~
      |   short
a.cc:24:14: error: 'unique' was not declared in this scope
   24 |   out.erase( unique( out.begin(), out.end() ), out.end() );
      |              ^~~~~~
Language: C++

#include<iostream>
using namespace std;

int main() {
	int N, M, a, b, c, d, f, x, y, Z, w;
	w = 0;
	cin >> N;
	int*h = new int[N];
	int*m = new int[N];
	for (a = 0; a < N; a++) {
		cin >> h[a] >> m[a];
	}
	cin >> M;
	int*k = new int[M];
	int*g = new int[M];
	for (b = 0; b < M; b++) {
		cin >> k[b] >> g[b];
	}
	for (a = 0; a < N; a++) {
		for (b = 0; b < M; b++) {
			if (h[a] > k[b]) {
				x = h[a];
				h[a] = k[b];
				k[b] = x;
				y = m[a];
				m[a] = g[b];
				g[b] = y;
			}
			else if (h[a] == k[b]) {
				if (m[a] > g[b]) {
					x = h[a];
					h[a] = k[b];
					k[b] = x;
					y = m[a];
					m[a] = g[b];
					g[b] = y;
				}
			}
		}
	}
	Z = N + M;
	int*q = new int[Z];
	int*r = new int[Z];
	for (a = 0; a < N; a++) {
		q[a] = h[a];
		r[a] = m[a];
	}
	for (b = 0; b < M; b++) {
		q[b+N] = k[b];
		r[b+N] = g[b];
	}
	for (c = 0; c < Z; c++) {
		for (d = c+1; d < Z; d++) {
			if (q[c] == q[d] && r[c] == r[d]) {
				for (f = d; f < Z; f++) {
					q[f] = q[f + 1];
					r[f] = r[f + 1];
				}
				w = w + 1;
			}
		}
	}
	for (c = 0; c < Z-w; c++) {
		cout << q[c] << ":";
		if (r[c] < 10) {
			cout << 0;
		}
		cout << r[c] ;
		if (c < Z - w - 1) {
			cout << " ";
		}

	}

	

	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:77:18: error: expected '}' at end of input
   77 |         return 0;
      |                  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++


struct Time {
	int hour;
	int minute;
};

vector<Time> get_input() {
	int n;
	cin >> n;
	vector<Time> ninput(n);
	for (int i = 0; i < n; i++) {
		cin >> ninput[i].hour;
		cin >> ninput[i].minute;
	}
	return ninput;
}

bool operator<(Time a, Time b) {
	if (a.hour < b.hour) {
		return true;
	} else if (a.hour > b.hour) {
		return false;
	} else {
		if (a.minute < b.minute) {
			return true;
		} else {
			return false;
		}
	}
}

void print_time(Time t) {
	printf("%d:%02d", t.hour, t.minute);
}

int main() {
	vector<Time> ninput = get_input();
	vector<Time> minput = get_input();
	copy(minput.begin(), minput.end(), back_inserter(ninput));
	sort(ninput.begin(), ninput.end());
	print_time(ninput[0]);
	for (int i = 1; i < ninput.size(); i++) {
		cout << " ";
		print_time(ninput[i]);
	}
	cout << endl;
}

Compiler output:
a.cc:7:1: error: 'vector' does not name a type
    7 | vector<Time> get_input() {
      | ^~~~~~
a.cc: In function 'void print_time(Time)':
a.cc:33:9: error: 'printf' was not declared in this scope
   33 |         printf("%d:%02d", t.hour, t.minute);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | 
a.cc: In function 'int main()':
a.cc:37:9: error: 'vector' was not declared in this scope
   37 |         vector<Time> ninput = get_input();
      |         ^~~~~~
a.cc:37:20: error: expected primary-expression before '>' token
   37 |         vector<Time> ninput = get_input();
      |                    ^
a.cc:37:22: error: 'ninput' was not declared in this scope
   37 |         vector<Time> ninput = get_input();
      |                      ^~~~~~
a.cc:37:31: error: 'get_input' was not declared in this scope
   37 |         vector<Time> ninput = get_input();
      |                               ^~~~~~~~~
a.cc:38:20: error: expected primary-expression before '>' token
   38 |         vector<Time> minput = get_input();
      |                    ^
a.cc:38:22: error: 'minput' was not declared in this scope
   38 |         vector<Time> minput = get_input();
      |                      ^~~~~~
a.cc:39:44: error: 'back_inserter' was not declared in this scope
   39 |         copy(minput.begin(), minput.end(), back_inserter(ninput));
      |                                            ^~~~~~~~~~~~~
a.cc:39:9: error: 'copy' was not declared in this scope
   39 |         copy(minput.begin(), minput.end(), back_inserter(ninput));
      |         ^~~~
a.cc:40:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   40 |         sort(ninput.begin(), ninput.end());
      |         ^~~~
      |         short
a.cc:43:17: error: 'cout' was not declared in this scope
   43 |                 cout << " ";
      |                 ^~~~
a.cc:46:9: error: 'cout' was not declared in this scope
   46 |         cout << endl;
      |         ^~~~
a.cc:46:17: error: 'endl' was not declared in this scope
   46 |         cout << endl;
      |                 ^~~~
Language: C++

#include<stdio.h>
int main(void)
{
	int n,m,h[200],temp,k,cnt,g,i,j;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d",&k,&g);
		h[i]=k*60+g;
	}
	scanf("%d",&m);
	for(i<n+m;i++){
		scanf("%d %d",&k,&g);
		h[i]=k*60+g;
	}
	cnt=m+n;
	for(i=0;i<n+m-1;i++){
		for(j=0;j<n+m;j++){
			if(h[i]>h[j]){
				temp=h[i];
				h[i]=h[j];
				h[j]=temp;
			}
		}
	}
	for(i=0;i<n+m-1;i++){
		if(h[i]==h[i+1]){
			i++;
			cnt-=1;
		}
	}
	for(i=0;i<cnt-1;i++){
		printf("%d:%02d",h[i]/60,h[i]%60);
	}
	printf("%d:%02d",h[cnt-1]/60,h[i-1]%60);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expected ';' before ')' token
   11 |         for(i<n+m;i++){
      |                      ^
      |                      ;
Language: C++

#include <iostream>
using namespace std;
int main(){
	int N1;
	int h[101];
	int m[101];
	cin>>N1;
	for(int i=0;i<N1;i++)
		cin>>h[i]>>m[i];	
	h[N1]=24; m[N1]=0;
	int N2;
	int k[101];
	int g[101];
	cin>>N2;
	for(int i=0;i<N2;i++)
		cin>>k[i]>>g[i];
	k[N2]=24; g[N2]=0;
	for(int i=0,j=0;i<N1 || j<N2;){
		if(h[i]==k[j]&& m[i]==g[j]){
			cout<<h[i]<<':'<<m[i]/10<<m[i]%10;
			i++; j++;
		}
		else if(h[i]<k[j]||(h[i]==k[j] && m[i]<g[j])){
			cout<<h[i]<<':'<<m[i]/10<<m[i]%10;
			i++;
		}
		else{
			cout<<k[j]<<':'<<g[j]/10<<g[j]%10;
			j++;
		}
		/*if(i==N1&&j==N2)
			cout<<endl;*/
		else
			cout<<' ';
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:17: error: 'else' without a previous 'if'
   33 |                 else
      |                 ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
	int N1;
	int h[101];
	int m[101];
	cin>>N1;
	for(int i=0;i<N1;i++)
		cin>>h[i]>>m[i];	
	h[N1]=24; m[N1]=0;
	int N2;
	int k[101];
	int g[101];
	cin>>N2;
	for(int i=0;i<N2;i++)
		cin>>k[i]>>g[i];
	k[N2]=24; g[N2]=0;
	for(int i=0,j=0;i<N1 || j<N2;){
		if(h[i]==k[j]&& m[i]==g[j]){
			cout<<h[i]<<':'<<m[i]/10<<m[i]%10;
			i++; j++;
		}
		else if(h[i]<k[j]||(h[i]==k[j] && m[i]<g[j])){
			cout<<h[i]<<':'<<m[i]/10<<m[i]%10;
			i++;
		}
		else{
			cout<<k[j]<<':'<<g[j]/10<<g[j]%10;
			j++;
		}
		
		else
			cout<<' ';
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:17: error: 'else' without a previous 'if'
   32 |                 else
      |                 ^~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    int z[24][60],n,a,b,k=0;
    for(int i=0;i<24;i++)for(int j=0;j<60;j++)z[i][j]=0;
    for(int w=0;w<2;w++){
        cin>>n;
        for(int i=0;i<n;i++){
            cin>>a>>b;
            z[a][b]=1;
        }
    }
    for(int i=0;i<24;i++){
        for(int j=0;j<60;j++){
            if(z[i][j]==1){
                if(k)cout<<" ";
                if(j<10){cout<<i<<":"<<"0"<<j;k++;}
                else {cout<<i<<":"<<j;k++;}
            }
        }
    }
    cout<<endl;
    return 0;
}
v

Compiler output:
a.cc:26:1: error: 'v' does not name a type
   26 | v
      | ^
Language: C++

#include <iostream>
#include <stdio.h>

using namespace std;

int main(){
	int n; cin >> n;
	int hm[100][2];
	for(int i = 0; i < n; i++){
		cin >> hm[i][0];
		cin >> hm[i][1]; 
	}
	int m; cin >> m;
	int kg[100][2];
	for(int i = 0; i < m; i++){
		cin >> kg[i][0];
		cin >> kg[i][1];
	}
	int result[200][2];

	for(int k = 0; k < 2 * n; k++){
		int i = 0;
		int j = 0;
		if(hm[i][0] < kg[j][0]){
			result[k][0] = hm[i][0];
			result[k][1] = hm[i][1];
			i++;
		}else if(hm[i][0] == kg[j][0] && hm[i][1] < kg[j][1]){
			result[k][0] = hm[i][0];
			result[k][0] = hm[i][1];
			i++
		}else if(hm [i][0] > kg[j][0]){
			result[k][0] = kg[j][0];
			result[k][1] = kg[j][1]
			j++;
		}else if(hm[i][0] == kg[j][0] && hm[i][1] > kg[j][1]){
			result[k][0] = kg[j][0];
			result[k][1] = kg[j][1];
			j++;
		}else if(hm[i][0] == kg[j][0] && hm[i][1] == kg[j][1]){
			result[k][0] = hm[i][0];
			result[k][1] = hm[i][0];
			i++;
			j++;
		}
	}

	for(int i = 0; i < 2 * n; i++){
		printf("%d:%2d ", result[i][0], result[i][1]);
	}
	cout << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:28: error: expected ';' before '}' token
   31 |                         i++
      |                            ^
      |                            ;
   32 |                 }else if(hm [i][0] > kg[j][0]){
      |                 ~           
a.cc:34:48: error: expected ';' before 'j'
   34 |                         result[k][1] = kg[j][1]
      |                                                ^
      |                                                ;
   35 |                         j++;
      |                         ~
Language: C++

//============================================================================
// Name        : AOJ.cpp
// Author      :
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <string>
#include <cstdio.h>
using namespace std;

int timetbl[24][26];
int main() {
	int i, j, h, m, first;
	for (i=0; i<2; ++i) {
		cin>>i>>j;
		for (; j>0; --j) {
		cin>>h>>m;
		timetbl[h][m] = 1;
		}
	}
	first = 1;
	for (i=0; i<24; ++i){
		for (j=0; j<60; ++j){
	if ( timetbl[i][j] ){
	if ( !first )
	printf(" ");
	else first =0;
	printf
	("%d:%02d", i, j);
	}
		}
	}
	cout<<endl;




	return 0;
}

Compiler output:
a.cc:11:10: fatal error: cstdio.h: No such file or directory
   11 | #include <cstdio.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

//============================================================================
// Name        : AOJ.cpp
// Author      :
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <string>
#include <cstdio.h>

int timetbl[24][26];
int main() {
	int i, j, h, m, first;
	for (i=0; i<2; ++i) {
		cin>>i>>j;
		for (; j>0; --j) {
		cin>>h>>m;
		timetbl[h][m] = 1;
		}
	}
	first = 1;
	for (i=0; i<24; ++i){
		for (j=0; j<60; ++j){
	if ( timetbl[i][j] ){
	if ( !first )
	printf(" ");
	else first =0;
	printf
	("%d:%02d", i, j);
	}
		}
	}
	cout<<endl;




	return 0;
}

Compiler output:
a.cc:11:10: fatal error: cstdio.h: No such file or directory
   11 | #include <cstdio.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;

int main(){
	int N,M,A;
	cin>>N;
	int Ih[N];
	int Im[N];
	for(int i=0;i<N;i++){
		cin>>Ih[i];
		cin>>Im[i];
	}
	cin>>M;
	int Th[M];
	int Tm[M];
	for(int i=0;i<M;i++){
		cin>>Th[i];
		cin>>Tm[i];
	}
	A=N+M;
	int Ah[A];
	int Am[A];
	for(int i=0;i<N;i++){
		Ah[i]=Ih[i];
		Am[i]=im[i];
	}
	for(int i=0;i<M;i++){
		Ah[N+i]=Th[i];
		Am[N+i]=Tm[i];
	}
	int flag=1;
	while(flag){
		flag=0;
		int tmp1,tmp2;
		for(int j=0;j<A;j++){
			if(Ah[j]>Ah[j+1]){
				tmp1=Ah[j];
				Ah[j]=Ah[j+1];
				Ah[j+1]=tmp1;
				tmp2=Am[j];
				Am[j]=Am[j+1];
				Am[j+1]=tmp2;
				flag=1;
			}else if(Ah[j]==Ah[j+1]){
				if(Am[j]<Am[j+1]){
					tmp1=Ah[j];
					Ah[j]=Ah[j+1];
					Ah[j+1]=tmp1;
					tmp2=Am[j];
					Am[j]=Am[j+1];
					Am[j+1]=tmp2;
					flag=1;
				}
			}
		}	
	}
	
	for(int i=0;i<A;i++){
		if(i!=A-1){
			cout<<Ah[i]<<":"<<Am[i]<<" ";
		}else{
			cout<<Ah[i]<<":"<<Am[i];
		}
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:23: error: 'im' was not declared in this scope; did you mean 'Im'?
   25 |                 Am[i]=im[i];
      |                       ^~
      |                       Im
Language: C++

#include<iostream>
using namespace std;

int main(){
 int N;
 cin>>N;
 int h[101],m[101];
 for(int i=0;i<N;i++){
	cin>>h[i]>>m[i];
 }
 h[N]=24;m[N]=0;

 int M;
 cin>>M;

 int k[101],g[101];
 for(int j=0;j<M;j++){
	cint>>k[j]>>g[j];
 }
 k[M]=24;g[M]=0;

 for(int i=0,j=0;i<N||j<M;){
	if(h[i]==k[j]&&m[i]==g[j]){
		cout<<h[i]<<';'<<m[i]/10<<m[i]%10;
		i++;j++;
	}
	else if(h[i]<k[i]||(h[i]==k[j]&&m[i]<g[j]){
		cout<<h[i]<<';'<<m[i]/10<<m[i]%10;
		i++;
	}
	else{
		cout<<k[j]<<';'<<g[j]/10<<g[j]%10;
		j++
	}
	if(i==N&&j==M){
		cout<<endl;
	}
	else {
		cout<<' ';
	}
 }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'cint' was not declared in this scope; did you mean 'uint'?
   18 |         cint>>k[j]>>g[j];
      |         ^~~~
      |         uint
a.cc:27:51: error: expected ')' before '{' token
   27 |         else if(h[i]<k[i]||(h[i]==k[j]&&m[i]<g[j]){
      |                ~                                  ^
      |                                                   )
a.cc:41:2: error: expected primary-expression before '}' token
   41 |  }
      |  ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int n[100],m[100],a,b,c,nn,mn,i;
  cin >> nn;
  for(i=0;i<nn;i++){
    cin >> b;
    n[i] = b * 100;
    cin >> b;
    n[i] += b;
  }
  cin >> mn;
  for(i=0;i<mn;i++){
    cin >> b;
    m[i] = b * 100;
    cin >> b;
    m[i] += b;
  }
  a = 0; b = 0;
  while(a > nn && c > mn){
    if(n[a] == m[nn]){
      cout << n[nn] / 100 << ':' <<  n[nn] - (n[nn] / 100 * 100);
      nn++; mn++;
    } else if(n[nn] > m[mn]){
      cout << n[nn] / 100 << ':' <<  n[nn] - (n[nn] / 100 * 100);
      nn++;
    } else {
      cout << m[mn] / 100 << ':' <<  m[mn] - (m[mn] / 100 * 100);
      mn++;
    }
  }
  

Compiler output:
a.cc: In function 'int main()':
a.cc:32:4: error: expected '}' at end of input
   32 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int n[101],m[101],a,b,c,nn,mn,i;
  cin >> nn;
  if(cin.eof())
    return 0;
  for(i=0;i<nn;i++){
    cin >> b;
    n[i] = b * 100;
    cin >> b;
    n[i] += b;
  }
  n[i] = 0;
  cin >> mn;
  for(i=0;i<mn;i++){
    cin >> b;
    m[i] = b * 100;
    cin >> b;
    m[i] += b;
  }
  m[i] = 0;
  a = 0; c = 0;
  while(a + c < m + n;){
    if(n[a] == m[c]){
      cout << n[a] / 100 << ':' <<  n[a] - (n[a] / 100 * 100);
      a++; c++;
    } else if(n[a] < m[c]){
      cout << n[a] / 100 << ':' <<  n[a] - (n[a] / 100 * 100);
      a++;
    } else {
      cout << m[c] / 100 << ':' <<  m[c] - (m[c] / 100 * 100);
      c++;
    }
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:19: error: invalid operands of types 'int [101]' and 'int [101]' to binary 'operator+'
   25 |   while(a + c < m + n;){
      |                 ~ ^ ~
      |                 |   |
      |                 |   int [101]
      |                 int [101]
a.cc:25:22: error: expected ')' before ';' token
   25 |   while(a + c < m + n;){
      |        ~             ^
      |                      )
a.cc:25:23: error: expected primary-expression before ')' token
   25 |   while(a + c < m + n;){
      |                       ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int n[101],m[101],a,b,c,nn,mn,i;
  cin >> nn;
  if(cin.eof())
    return 0;
  for(i=0;i<nn;i++){
    cin >> b;
    n[i] = b * 100;
    cin >> b;
    n[i] += b;
  }
  n[i] = 0;
  cin >> mn;
  for(i=0;i<mn;i++){
    cin >> b;
    m[i] = b * 100;
    cin >> b;
    m[i] += b;
  }
  m[i] = 0;
  a = 0; c = 0;
  while(a + c < m + n){
    if(n[a] == m[c]){
      cout << n[a] / 100 << ':' <<  n[a] - (n[a] / 100 * 100);
      a++; c++;
    } else if(n[a] < m[c]){
      cout << n[a] / 100 << ':' <<  n[a] - (n[a] / 100 * 100);
      a++;
    } else {
      cout << m[c] / 100 << ':' <<  m[c] - (m[c] / 100 * 100);
      c++;
    }
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:19: error: invalid operands of types 'int [101]' and 'int [101]' to binary 'operator+'
   25 |   while(a + c < m + n){
      |                 ~ ^ ~
      |                 |   |
      |                 |   int [101]
      |                 int [101]
Language: C++

#include <iostream>
using namespace std;

int main(){
  int N;
  cin >> N;
  int bus1[N];
  for(int i=0;i<N;i++){
    int h,m;
    cin >> h >> m;
    bus1[i]=h*60+m;
  }

  int M;
  cin >> M;
  int bus2[M];
  for(int i=0;i<M;i++){
    int h,m;
    cin >> h >> m;
    bus2[i]=h*60+m;
  }

  int n=0,m=0;
  for(int i=0;i<N+M;i++){
    if(bus1[n]<bus2[m]){
      int x=bus1[n]%60;
      cout << (bus1[n]-x)/60 << ":";
      if(x<10)
        cout << "0";
      cout << x;
      if(i!=N+M-1)
        cout << " ";
      else{
        cout << endl;
      }
      n++;
    }
    else{
      int z=bus2[m]%60;
      cout << (bus2[m]-z)/60 << ":";
      if(z<10)
        cout << "0";
      cout << z;
      if(i!=N+M-1)
        cout << " ";
      else{
        cout << endl;
      m++;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:52:2: error: expected '}' at end of input
   52 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include"bits/stdc++.h"
using namespace std;
#define Max 24*60+60+1
int main() {
	int n, m, n2[101], m2[101];
	cin >> n;
	for (int i = 0; i < 100; i++)n2[i] = Max;
	for (int i = 0; i < n; i++) {
		int h, m;
		cin >> h >> m;
		n2[i] = h * 60 + m;
	}
	cin >> m;
	for (int i = 0; i < m; i++) {
		int k, g;
		cin >> k >> g;
		n[i+n] = k * 60 + g;
	}
	sort(n2, n2 + (m+n));
	int suu = 0;
	for (int i = 0; i < m + n; i++) {
		if (n2[i] == n2[i + 1]) {
			for (int j = i+1; n2[i] == n2[j] && n2[j] != Max; j++) {
				i++;
			}
		}
		if (i != m + n - 1) {
			printf("%d:%02d ", n2[i] / 60, n2[i] % 60);
		}
		else printf("%d:%02d\n", n2[i] / 60, n2[i] % 60);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: invalid types 'int[int]' for array subscript
   17 |                 n[i+n] = k * 60 + g;
      |                  ^
Language: C++

#include<iostream>
using namespace std;
int main(void){
 int n,m,swap;
 int hour[200],min[200];
 cin>>n;
 for(int i=0;i<n;i++){
  cin>>hour[i]>>min[i];
 }
 cin>>m;
 for(i=0;i<m;i++){
  cin>>hour[n+i]>>min[n+i];
 }
 for(i=0;i<n+m-1;i++){
  for(int j=i;j<n+m;j++){
   if(hour[i]>hour[j]){
    swap=hour[i];
    hour[i]=hour[j];
    hour[j]=swap;
    swap=min[i];
    min[i]=min[j];
    min[j]=swap;
   }
   else if(hour[i]==hour[j]){
    if(min[i]>min[j]){
     swap=min[i];
     min[i]=min[j];
     min[j]=swap;
    }
   }
  }
 }
 for(i=0;i<n+m-1;i++){
  cout<<hour[i]<<":"<<min[i]<<" "<<flush;
 }
 cout<<hour[n+m-1]<<":"<<min[i]<<" "<<endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'i' was not declared in this scope
   11 |  for(i=0;i<m;i++){
      |      ^
a.cc:14:6: error: 'i' was not declared in this scope
   14 |  for(i=0;i<n+m-1;i++){
      |      ^
a.cc:33:6: error: 'i' was not declared in this scope
   33 |  for(i=0;i<n+m-1;i++){
      |      ^
a.cc:36:30: error: 'i' was not declared in this scope
   36 |  cout<<hour[n+m-1]<<":"<<min[i]<<" "<<endl;
      |                              ^
Language: C++

#include<iostream>
using namespace std;
int main(void){
 int i,n,m,swap;
 int hour[200],min[200];
 cin>>n;
 for(int i=0;i<n;i++){
  cin>>hour[i]>>min[i];
 }
 cin>>m;
 for(i=0;i<m;i++){
  cin>>hour[n+i]>>min[n+i];
 }
 for(i=0;i<n+m-1;i++){
  for(int j=i;j<n+m;j++){
   if(hour[i]>hour[j]){
    swap=hour[i];
    hour[i]=hour[j];
    hour[j]=swap;
    swap=min[i];
    min[i]=min[j];
    min[j]=swap;
   }
   else if(hour[i]==hour[j]){
    if(min[i]>min[j]){
     swap=min[i];
     min[i]=min[j];
     min[j]=swap;
    }
   }
  }
 }
 for(i=0;i<n+m-1;i++){
     if(hour[i]==hour[i+1]&&min[i]==min[i+1]){
         
     }
     else{
         cout<<hour[i]<<":"<<min[i]<<" "<<flush;
     }
 cout<<hour[n+m]<<":"<<min[n+m]<<" "<<endl;

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:2: error: expected '}' at end of input
   43 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  vector<pair<int, int>> po;
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int h, m;
    cin >> h >> m;
    po.push_back(make_pair(h, m));
  }
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int h, m;
    cin >> h >> m;
    po.push_back(make_pair(h, m));
  }

  sort(po.begin(), po.end());

  for (int i = 0; i < po.size(); ++i) {
    printf("%d:%02d%c", po[i].first, po[i].second, (i + 1 == po.size() ? '' : ' '));
  }
}



Compiler output:
a.cc:23:74: error: empty character constant
   23 |     printf("%d:%02d%c", po[i].first, po[i].second, (i + 1 == po.size() ? '' : ' '));
      |                                                                          ^~
Language: C++

#include<C:\bits\stdc++.h>
using namespace std;
int main(){
	int n,l=0,temp,t[200],h,m;
	for(int i=0;i<2;i++){
		cin >> n;
		for(int j=0;j<n;j++){
			cin >> h >> m;
			t[l]=h*60+m;
			l++;
		}
	}
	for(int i=0;i<l-1;i++){
		for(int j=i+1;j<l;j++){
			if(t[i]>t[j]){
				temp=t[i];
				t[i]=t[j];
				t[j]=temp;
			}
		}
	}
    int count=0;
	for(int i=0;i<l;i++){
        count++;
		if(i!=0 && t[i]==t[i-1]){
			i++;
            count--;
			if(i==l){
				cout << endl;
				break;
			}
		}
		cout << t[i]/60 << ":";
		if(t[i]%60<10){
			cout << 0;
		}
        if(count!=l){
            cout<<t[i]%60<<" ";
        }else{
            cout<<t[i]%60;
        }
	}
}


Compiler output:
a.cc:1:9: fatal error: C:\bits\stdc++.h: No such file or directory
    1 | #include<C:\bits\stdc++.h>
      |         ^~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,l=0,temp,t[20000],h,m;
	for(int i=0;i<2;i++){
		cin >> n;
		for(int j=0;j<n;j++){
			cin >> h >> m;
			t[l]=h*60+m;
			l++;
		}
	}
	for(int i=0;i<l-1;i++){
		for(int j=i+1;j<l;j++){
			if(t[i]>t[j]){
                swap(t[i],y[j]);
			}
		}
	}
    int count=0;
	for(int i=0;i<l;i++){
        count++;
		if(i!=0 && t[i]==t[i-1]){
			i++;
            count--;
			if(i==l){
				break;
			}
		}
		cout << t[i]/60 << ":";
		if(t[i]%60<10){
			cout << 0;
		}
        if(count!=l){
            cout<<t[i]%60<<" ";
        }else{
            cout<<t[i]%60;
        }
	}
    cout<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: 'y' was not declared in this scope
   16 |                 swap(t[i],y[j]);
      |                           ^
Language: C++

#include<C:\bits\stdc++.h>
using namespace std;
int main(){
	int n,l=0,temp,t[20000],h,m;
	for(int i=0;i<2;i++){
		cin >> n;
		for(int j=0;j<n;j++){
			cin >> h >> m;
			t[l]=h*60+m;
			l++;
		}
	}
	for(int i=0;i<l-1;i++){
		for(int j=i+1;j<l;j++){
			if(t[i]>t[j]){
                swap(t[i],t[j]);
			}
		}
	}
    int count=0;
	for(int i=0;i<l;i++){
        count++;
		if(i!=0 && t[i]==t[i-1]){
			i++;
            count--;
			if(i==l){
				break;
			}
		}
		cout << t[i]/60 << ":";
		if(t[i]%60<10){
			cout << 0;
		}
        if(count!=l){
            cout<<t[i]%60<<" ";
        }else{
            cout<<t[i]%60;
        }
	}
    cout<<endl;
}


Compiler output:
a.cc:1:9: fatal error: C:\bits\stdc++.h: No such file or directory
    1 | #include<C:\bits\stdc++.h>
      |         ^~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<C:\bits\stdc++.h>
using namespace std;
int main(){
	int n,l=0,temp,t[20000],h,m;
	for(int i=0;i<2;i++){
		cin >> n;
		for(int j=0;j<n;j++){
			cin >> h >> m;
			t[l]=h*60+m;
			l++;
		}
	}
	for(int i=0;i<l-1;i++){
		for(int j=i+1;j<l;j++){
			if(t[i]>t[j]){
                swap(t[i],t[j]);
			}
		}
	}
    int count=0;
	for(int i=0;i<l;i++){
		if(i!=0 && t[i]==t[i-1]){
			i++;
			if(i==l){
				break;
			}
		}else{count++;}
        if(count==1){
            cout << t[i]/60 << ":";
        }else{
            cout << " " << t[i]/60<< ":";
        }
		if(t[i]%60<10){
			cout << 0;
		}
        cout<<t[i]%60;
	}
    cout<<endl;
}


Compiler output:
a.cc:1:9: fatal error: C:\bits\stdc++.h: No such file or directory
    1 | #include<C:\bits\stdc++.h>
      |         ^~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <stdio.h>
#include <algorithm>
#include <vector>
using namespace std;
#define PB push_back
struct t{
    int hr;
    int mi;
    void in(){
        scanf("%d%d",&hr,&mi);
        return ;
    }
    void out(){
        if(hr<10)printf("0");
        printf("%d:",hr);
        if(mi<10)printf("0");
        printf("%d",mi);
    }
}
bool cmp(t a,t b){
    return a.hr==b.hr?a.mi<b.mi:a.hr<b.hr;
}
int main(){
    int n;
    t temp;
    vector<t> v;
    scanf("%d",&n);
    while(n--){
        temp.in();
        v.PB(temp);
    }
    scanf("%d",&n);
    while(n--){
        temp.in();
        v.PB(temp);
    }
    sort(v.begin(),v.end(),cmp);
    v[0].out();
    for(int i=1;i<v.size();i++){
        printf(" ");
        v[i].out();
    }
    printf("\n");
}


Compiler output:
a.cc:19:2: error: expected ';' after struct definition
   19 | }
      |  ^
      |  ;
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,m;
    int h[100]={},k[100]={},g[100];
    for(int i=0;i<100;i++){
        g[i]=100000;
    }
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>h[i]>>k[i];
    }
    cin>>m;
    for(int i=n;i<n+m;i++){
        cin>>h[i]>>k[i];
    }
    for(int i=0;i<n+m;i++){
        g[i]=h[i]*60+k[i];
        sort(g,g+n+m);
    }

    for(int i=0;i<n+m;i++){
        if(g[i]==g[i+1]) continue;
        cout<<g[i]/60<<":";
        if(g[i]%60<10) cout<<"0"<<g[i]%60;
        else cout<<g[i]%60;
        if(i!=n+m-1) cout<<" ";
    }
    cout<<endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   19 |         sort(g,g+n+m);
      |         ^~~~
      |         short
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
    int n,m;
    vector<pair<int,int> > a;
    
    cin>>n;
    while(n--){
        int k,g;
        cin>>k>>g;
        a.push_back(make_pair(k,g));
    }
    
    cinn>>m;
    while(m--){
        int k,g;
        cin>>k>>g;
        a.push_back(make_pair(k,g));
    }
    
    sort(a.begin(),a.end());
    a.erase(unique(a.begin().a.end()),a.end());
    
    for(size_t i =0;i<a.aize();i++){
        printf("%d:%02d",a[i].first,a.[i].second);
        if(i +1 ==a.size())putchar('\n');
        else putchar(' ');
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'cinn' was not declared in this scope
   16 |     cinn>>m;
      |     ^~~~
a.cc:24:30: error: 'std::vector<std::pair<int, int> >::iterator' has no member named 'a'
   24 |     a.erase(unique(a.begin().a.end()),a.end());
      |                              ^
a.cc:26:25: error: 'class std::vector<std::pair<int, int> >' has no member named 'aize'; did you mean 'size'?
   26 |     for(size_t i =0;i<a.aize();i++){
      |                         ^~~~
      |                         size
a.cc:27:39: error: expected unqualified-id before '[' token
   27 |         printf("%d:%02d",a[i].first,a.[i].second);
      |                                       ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
    int n,m;
    vector< pair<int,int> > a;
    
    cin>>n;
    while(n--){
        int k,g;
        cin>>k>>g;
        a.push_back(make_pair(k,g));
    }
    
    cin>>m;
    while(m--){
        int k,g;
        cin>>k>>g;
        a.push_back(make_pair(k,g));
    }
    
    sort(a.begin(),a.end());
    a.erase(unique(a.begin().a.end()),a.end());
    
    for(size_t i =0;i<a.aize();i++){
        printf("%d:%02d",a[i].first,a.[i].second);
        if(i +1 ==a.size())putchar('\n');
        else putchar(' ');
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:30: error: 'std::vector<std::pair<int, int> >::iterator' has no member named 'a'
   24 |     a.erase(unique(a.begin().a.end()),a.end());
      |                              ^
a.cc:26:25: error: 'class std::vector<std::pair<int, int> >' has no member named 'aize'; did you mean 'size'?
   26 |     for(size_t i =0;i<a.aize();i++){
      |                         ^~~~
      |                         size
a.cc:27:39: error: expected unqualified-id before '[' token
   27 |         printf("%d:%02d",a[i].first,a.[i].second);
      |                                       ^