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

#include<cstdio>
using namespace std;
int main(){

 	int x, y;
 	while( 1 ){
	cin >> x >> y;
 		
 	if(x == 0 && y == 0) break;
	
	if(x < y) cout << x << " " << y <<endl;
	else cout << y << " " << x <<endl;
	
	return 0;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x >> y;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:11:19: error: 'cout' was not declared in this scope
   11 |         if(x < y) cout << x << " " << y <<endl;
      |                   ^~~~
a.cc:11:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:43: error: 'endl' was not declared in this scope
   11 |         if(x < y) cout << x << " " << y <<endl;
      |                                           ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<cstdio>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:12:14: error: 'cout' was not declared in this scope
   12 |         else cout << y << " " << x <<endl;
      |              ^~~~
a.cc:12:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:38: error: 'endl' was not declared in this scope
   12 |         else cout << y << " " << x <<endl;
      |                                      ^~~~
a.cc:12:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iosteam>
using name std;
int main ()
{
	int x, y;
	cin >> x >> y;
	if ( x == 0 && y == 0 ) break;
	if ( x < y )
		cout << x << " " << y << endl;
	else ( x > y ) 
		cout << y << " " << x << endl;
}

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

#include <iosteam>
using name std;
int main ()
{
	int x, y
	while (1){
	cin >> x >> y;
	if ( x == 0 && y == 0 ) break;
}
	if ( x < y )
		cout << x << " " << y << endl;
	else ( x > y ) 
		cout << y << " " << x << endl;
}

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

#include <iosteam>
using name std;
int main ()
{
	int x, y;
	while (1){
	cin >> x >> y;
	if ( x == 0 && y == 0 ) break;
}
	if ( x < y )
		cout << x << " " << y << endl;
	else ( x > y ) 
		cout << y << " " << x << endl;
}

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

#include <iostream>
using name std;
int main ()
{
	int x, y;
	while (1){
	cin >> x >> y;
	if ( x == 0 && y == 0 ) break;
}
	if ( x < y )
		cout << x << " " << y << endl;
	else ( x > y ) 
		cout << y << " " << x << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> x >> y;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |                 cout << x << " " << y << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |                 cout << x << " " << y << endl;
      |                                          ^~~~
      |                                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:23: error: expected ';' before 'cout'
   12 |         else ( x > y )
      |                       ^
      |                       ;
   13 |                 cout << y << " " << x << endl;
      |                 ~~~~
Language: C++

#include <iostream>
using name std;
int main ()
{
	int x, y;
	while (1){
	cin >> x >> y;
	if ( x == 0 && y == 0 ) break;
	if ( x < y )
		cout << x << " " << y << endl;
	else ( x > y ) 
		cout << y << " " << x << endl;
}
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> x >> y;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |                 cout << x << " " << y << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |                 cout << x << " " << y << endl;
      |                                          ^~~~
      |                                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:23: error: expected ';' before 'cout'
   11 |         else ( x > y )
      |                       ^
      |                       ;
   12 |                 cout << y << " " << x << endl;
      |                 ~~~~
Language: C++

#include <iostream>
using name std;
int main ()
{
	int x, y;
	while (1){
	cin >> x >> y;
	if ( x == 0 && y == 0 ) break;
	if ( x < y )
		cout << x << " " << y << endl;
	else if ( x > y ) 
		cout << y << " " << x << endl;
}
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> x >> y;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |                 cout << x << " " << y << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |                 cout << x << " " << y << endl;
      |                                          ^~~~
      |                                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |                 cout << y << " " << x << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |                 cout << y << " " << x << endl;
      |                                          ^~~~
      |                                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>

using namespace std;

int main()
{
	int a.b;
	int i;
	
	while(i < 3000){
		cin >> a >> b;
		if(a = 0 && b= 0){
		break;
		}
		
		if(a < b){
			cout << a << b << end1;
		}else(a > b)(
			cout << b << a << end1;
		)
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected initializer before '.' token
    7 |         int a.b;
      |              ^
a.cc:11:24: error: 'a' was not declared in this scope
   11 |                 cin >> a >> b;
      |                        ^
a.cc:11:29: error: 'b' was not declared in this scope
   11 |                 cin >> a >> b;
      |                             ^
a.cc:17:43: error: 'end1' was not declared in this scope
   17 |                         cout << a << b << end1;
      |                                           ^~~~
a.cc:19:43: error: 'end1' was not declared in this scope
   19 |                         cout << b << a << end1;
      |                                           ^~~~
a.cc:20:17: error: expected primary-expression before ')' token
   20 |                 )
      |                 ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
	int x.y;
	int i;
	
	for(i=0;i<3000;i++){
		cin >> x >> y;
		if(x = 0 && y = 0){
		break;
		}
		
		if(x < y){
			cout << x << " " << y << endl;
		}else(x >= y){
			cout << x << " " << y << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected initializer before '.' token
    7 |         int x.y;
      |              ^
a.cc:11:24: error: 'x' was not declared in this scope
   11 |                 cin >> x >> y;
      |                        ^
a.cc:11:29: error: 'y' was not declared in this scope
   11 |                 cin >> x >> y;
      |                             ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
	int x,y;
	while(1){
		cin >> x >> y;
		if(!(x+y))break;
		if(x<y)
			cout << x << " " << y << endl;;
		else
			cout << y << " " << y << endl;;
	}
	return 0;
}

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

#include <iostream>
using namespace std;

int main() {
	// your code goes here
int x,y;
while(1){
	cin>>x;
	cin>>y;
	if(x>y){
	cout<<y<<" "<<x<<endl;
	}
	if(x<y){
	cout<<x<<" "<<y<<endl;
	}
	if(x==0&&y==0){break;}
	return 0;
}

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

#include<iostream>
using namespace std;

int main(){
int x,y;

for( int i = 0; ; i++ ){
  
cin >> x >> y;

  if( x == 0 && y ==0 ) break;
  elseif ( x >= y ) cout << x << y << endl;
  else cout << y << x << endl;
} 

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'elseif' was not declared in this scope
   12 |   elseif ( x >= y ) cout << x << y << endl;
      |   ^~~~~~
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else cout << y << x << endl;
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
	int x,y;
	cin >> x, cin >> y;
    for (;; i++){
    	if (x>=y)
    	cout << x << y << endl;
       else if (x<y)
       cout << y << x << endl;
       if (x=0 && y=0)break
       return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'i' was not declared in this scope
    6 |     for (;; i++){
      |             ^
a.cc:11:16: error: lvalue required as left operand of assignment
   11 |        if (x=0 && y=0)break
      |              ~~^~~~
a.cc:11:28: error: expected ';' before 'return'
   11 |        if (x=0 && y=0)break
      |                            ^
      |                            ;
   12 |        return 0;
      |        ~~~~~~               
a.cc:13:6: error: expected '}' at end of input
   13 |     }
      |      ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	int x,y;
	cin >> x, cin >> y;
    for (;; i++){
    	if (x>=y)
    	cout << x << y << endl;
       else if (x<y)
       cout << y << x << endl;
       if (x=0 && y=0)break;
       return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'i' was not declared in this scope
    6 |     for (;; i++){
      |             ^
a.cc:11:16: error: lvalue required as left operand of assignment
   11 |        if (x=0 && y=0)break;
      |              ~~^~~~
a.cc:13:6: error: expected '}' at end of input
   13 |     }
      |      ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main(){

	while(1) {
		cin >> >> b;
		if ( a == 0 && b == 0 ) break;

		if ( a < b ){
			cout << a << " " << b << endl;
		}else {
			cout << b << " " << b << endl; 
		}
	}
    return 0;
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected primary-expression before '>>' token
    6 |                 cin >> >> b;
      |                        ^~
a.cc:6:27: error: 'b' was not declared in this scope
    6 |                 cin >> >> b;
      |                           ^
a.cc:7:22: error: 'a' was not declared in this scope
    7 |                 if ( a == 0 && b == 0 ) break;
      |                      ^
a.cc:9:22: error: 'a' was not declared in this scope
    9 |                 if ( a < b ){
      |                      ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	int a,b;

	while(1) {
		cin >> >> b;
		if ( a == 0 && b == 0 ) break;

		if ( a < b ){
			cout << a << " " << b << endl;
		}else {
			cout << b << " " << b << endl; 
		}
	}
    return 0;
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected primary-expression before '>>' token
    7 |                 cin >> >> b;
      |                        ^~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int x[3000], y[3000], i=0;
 
  while(1){
    cin >> x[i] >> y[i];
    if(x[i]==0 && y[i]==0) break;
    else ++;
  }

  for(int j = 0; j < i; j++){
    if(x[j] < y[j] || x[j] == y[j]){
      cout << x[j] << " " << y[j] << endl;
    }
    else{
      cout << y[j] << " " << x[j] << endl;
    }
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected primary-expression before ';' token
   10 |     else ++;
      |            ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
  int x, y;
  while(1){
    cin >> x >> y;
    if(x == 0 && y == 0)break;
    if(x > y){
      foo = x;
      x = y;
      y = foo;
    }
    cout << x << ' ' << y;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'foo' was not declared in this scope
   12 |       foo = x;
      |       ^~~
Language: C++

#include <iostream>

#define MAX_SIZE (3000)

using namespace std;

int main()
{   
    int* x = new int[MAX_SIZE];
    int* y = new int[MAX_SIZE];
    int  size;

    for (int i = 0; i < MAX_SIZE; i++) {
         do {
             cin >> x[i] >> y[i];
         } while ((x[i] < 0 || x[i] > 30000) || (y[i] < 0 || y[i] > 30000));

         if (x[i] == 0 && y[i] == 0) {
	     break;
         }
    }

    size = i;
    
    for (int i = 0; i < size; i++) {
         if (x < y) {
             cout << x << " " << y << endl;
         } else {
             cout << y << " " << x << endl;
         }
    }

    delete[] x;
    delete[] y;

    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:12: error: 'i' was not declared in this scope
   23 |     size = i;
      |            ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
   for (i = 1; ; i++) {
   int x,y;
   cin >> x >> y;
   if (x == 0 && y == 0)
    break;
   if ( x > y) {
   int t = x;
   x = y;
   y = t;
  }
  cout << x << ' ' << y << endl:
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'i' was not declared in this scope
    6 |    for (i = 1; ; i++) {
      |         ^
a.cc:16:32: error: expected ';' before ':' token
   16 |   cout << x << ' ' << y << endl:
      |                                ^
      |                                ;
Language: C++

#include <iostream>
using namespace std;

int main()
{
   for (i = 1; ; i++) {
   int x,y;
   cin >> x >> y;
   if (x == 0 && y == 0)
    break;
   if (x > y) {
   int t = x;
   x = y;
   y = t;
  }
  cout << x << ' ' << y << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'i' was not declared in this scope
    6 |    for (i = 1; ; i++) {
      |         ^
Language: C++

include<stdio.h>                                                         
                                                                          
int main(void){                                                           
                                                                          
  int x[3000];                                                            
  int y[3000];                                                            
  int i = 1;                                                              
  int j;                                                                  
  int k;                                                                  
                                                                          
  do {                                                                    
    scanf("%d %d",&x[i],&y[i]);                                           
    i++;                                                                  
  } while ((x[i-1] != 0) && (y[i-1] != 0));                               
                                                                          
  k = i-2;                                                                
                                                                          
  for(j = 1,i = 1;j <= k;j++,i++) {                                       
    if(x[i] < y[i]) {                                                     
      printf("%d %d\n",x[i],y[i]);                                        
    } else {                                                              
      printf("%d %d\n",y[i],x[i]);                                        
    }                                                                     
  }                                                                       
                                                                          
  return 0;                                                               
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int x;
	int i = 1
	while(1){
		cin >> x;
		if(x == 0) break;
		cout << "Case " << i << ": " << x << endl;
		i++
		}
	return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ',' or ';' before 'while'
    8 |         while(1){
      |         ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){

  int x,y;
  for(int i=0;i<3000;i++){ 
    cin>>x>>y;

    if(x<y){
      t=x;
      x=y;
      y=t;
    }

    if( x==0 && y==0 )break;
    cout <<i<<": "<<x<<y<<endl;
 
}

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 't' was not declared in this scope
   10 |       t=x;
      |       ^
Language: C++

#include<iostream>
using namespace std;
int main(){

  int x,y,t;
  for(int i=0;i<3000;i++){ 
    cin>>x>>y;

    cin t;
    if(x<y){
      t=x;
      x=y;
      y=t;
    }

    if( x==0 && y==0 )break;
    cout <<i<<": "<<x<<y<<endl;
 
}

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ';' before 't'
    9 |     cin t;
      |        ^~
      |        ;
Language: C++

#include<iostream>
using namespace std;
int main(){

  int x,y,t;
  for(int i=0;i<3000;i++){ 
    cin>>x>>y;

    cin t;
    if(x<y){
      t=x;
      x=y;
      y=t;
    }

    if( x==0 && y==0 )break;
    cout <<x<<y<<endl;
 
}

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ';' before 't'
    9 |     cin t;
      |        ^~
      |        ;
Language: C++

#include<iostream>
using namespace std;
int main(){

  int x,y,t;
  for(int i=1;i<3000;i++){ 
    cin>>x>>y;

    cin t;
    if(x<y){
      t=x;
      x=y;
      y=t;
    }

    if( x==0 && y==0 )break;
    cout <<x<<" "<<y<<endl;
 
}

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ';' before 't'
    9 |     cin t;
      |        ^~
      |        ;
Language: C++

include<stdio.h>
int main(){

   while(x==0&&y==0){
      scanf("%d %d",&x,&y);
      if(x<y){
         printf("%d %d\n",x,y);
      }else if(x>y){
         printf("%d %d\n",y,x);
      }

   return 0;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

include<stdio.h>
int main(){

   int x,y;

   while(x==0&&y==0){
      scanf("%d %d",&x,&y);
      if(x<y){
         printf("%d %d\n",x,y);
      }else if(x>y){
         printf("%d %d\n",y,x);
      }

   return 0;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

#include<stdio.h>
int main(void)
{
 int x, y;
 while(x = 0 && y = 0){
 scanf("%d, %d",&x, &y);
 if(x > y)
 {          
  printf("%d %d"y, x);
  }
 else if(x <= y && (x != 0&& y != 0))
 {
  printf("%d %d"x, y);
  }
 else if(x==y && x==0)
 {
  }
 } 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: lvalue required as left operand of assignment
    5 |  while(x = 0 && y = 0){
      |            ~~^~~~
a.cc:9:10: error: unable to find string literal operator 'operator""y' with 'const char [6]', 'long unsigned int' arguments
    9 |   printf("%d %d"y, x);
      |          ^~~~~~~~
a.cc:13:10: error: unable to find string literal operator 'operator""x' with 'const char [6]', 'long unsigned int' arguments
   13 |   printf("%d %d"x, y);
      |          ^~~~~~~~
Language: C++

include<stdio.h>
int main(){

   int x,y;

   while(0){
      scanf("%d %d",&x,&y);
      if(x<y){
         printf("%d %d\n",x,y);
      }else if(x>y){
         printf("%d %d\n",y,x);

      if(x==0lly==00){

          break;

      }
      }

   return 0;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

#include<stdio.h>
int main(void)
{
 int x, y;
 while(0)
{
 scanf("%d, %d",&x, &y);
 if(x > y)
 {          
  printf("%d %d"y, x);
  }
 else if(x <= y && (x != 0&& y != 0))
 {
  printf("%d %d"x, y);
  }
 else if(x==y && x==0)
 {
  break;
  }
 } 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: unable to find string literal operator 'operator""y' with 'const char [6]', 'long unsigned int' arguments
   10 |   printf("%d %d"y, x);
      |          ^~~~~~~~
a.cc:14:10: error: unable to find string literal operator 'operator""x' with 'const char [6]', 'long unsigned int' arguments
   14 |   printf("%d %d"x, y);
      |          ^~~~~~~~
Language: C++

include<stdio.h>
int main(){

   int x,y;

   while(0){
      scanf("%d %d",&x,&y);
      if(x<y){
         printf("%d %d\n",x,y);
      }else if(x>y){
         printf("%d %d\n",y,x);
      }
      if(x==0lly==00){

          break;

      }
      }

   return 0;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

include<stdio.h>
int main(){

   int x,y;

   while(0){
      scanf("%d %d",&x,&y);
      if(x<y){
         printf("%d %d\n",x,y);
      }else if(x>y){
         printf("%d %d\n",y,x);
      }
      if(x==0&&y==0){

          break;

      }
      }

   return 0;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

#include<stdio.h>
int main(){

   int x,y;

   while(0){
      scanf("%d %d",&x,&y);
      if(x<y){
         printf("%d %d\n",x,y);
      }else if(x>y){
         printf("%d %d\n",y,x);
      }
      if(x==0lly==0){

          break;

      }
      }

   return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: unable to find numeric literal operator 'operator""lly'
   13 |       if(x==0lly==0){
      |             ^~~~
Language: C++

#include<stdio.h>
int main(){

   int x,y;

   while(0){
      scanf("%d %d",&x,&y);
      if(x=<y){
         printf("%d %d\n",x,y);
      }else if(x>y){
         printf("%d %d\n",y,x);
      }
      if(x==0&&y==0){

          break;

      }
      }

   return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected primary-expression before '<' token
    8 |       if(x=<y){
      |            ^
Language: C++

#include <stdio.h>
  
int main(){
   int a, b, n, f
   int x[3000]={ 1 };
   int y[3000]={ 1 };
   n=0;
   for(f=0;f==0;n++){
      scanf("%d &d",&a, &b);
      if(a == 0||b == 0){
         break;
      }
      if(a > b){
         x[n]=a;
         y[n]=b;
      }
      if(b => a){
         x[n]=b;
         y[n]=a;
      }
   for(f=0;f < n;f++){
      printf("%d %d\n",x[f], y[f]);
   }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: expected initializer before 'int'
    5 |    int x[3000]={ 1 };
      |    ^~~
a.cc:8:8: error: 'f' was not declared in this scope
    8 |    for(f=0;f==0;n++){
      |        ^
a.cc:14:10: error: 'x' was not declared in this scope
   14 |          x[n]=a;
      |          ^
a.cc:17:13: error: expected primary-expression before '>' token
   17 |       if(b => a){
      |             ^
a.cc:18:10: error: 'x' was not declared in this scope
   18 |          x[n]=b;
      |          ^
a.cc:22:24: error: 'x' was not declared in this scope
   22 |       printf("%d %d\n",x[f], y[f]);
      |                        ^
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<stdio.h>
int main(void)
{
int x, y;

scanf("%d %d", &x, &y);

if(x>y)
printf("%d %d\n", y, x);
else if(x<=y)
printf("%d %d\n", x, y);
else if(x==0&&y==0)
break; 

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: break statement not within loop or switch
   13 | break;
      | ^~~~~
Language: C++

#include <stdio.h>
  
int main(){
   int a, b, n, f
   int x[3000]={ 0 };
   int y[3000]={ 0 };
   n=0;
   for(f=0;f==0;n++){
      scanf("%d &d",&a, &b);
      if(a == 0||b == 0){
         break;
      }
      if(a > b){
         x[n]=a;
         y[n]=b;
      }
      if(b => a){
         x[n]=b;
         y[n]=a;
      }
   for(f=0;f < n;f++){
      printf("%d %d\n",x[f], y[f]);
   }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: expected initializer before 'int'
    5 |    int x[3000]={ 0 };
      |    ^~~
a.cc:8:8: error: 'f' was not declared in this scope
    8 |    for(f=0;f==0;n++){
      |        ^
a.cc:14:10: error: 'x' was not declared in this scope
   14 |          x[n]=a;
      |          ^
a.cc:17:13: error: expected primary-expression before '>' token
   17 |       if(b => a){
      |             ^
a.cc:18:10: error: 'x' was not declared in this scope
   18 |          x[n]=b;
      |          ^
a.cc:22:24: error: 'x' was not declared in this scope
   22 |       printf("%d %d\n",x[f], y[f]);
      |                        ^
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <stdio.h>
  
int main(){
   int a, b, n, f
   int x[3000]={ 0 };
   int y[3000]={ 0 };
   n=0;
   for(f=0;f==0;n++){
      scanf("%d &d",&a, &b);
      if(a == 0||b == 0){
         break;
      }
      if(a > b){
         x[n]=a;
         y[n]=b;
      }
      if(b >= a){
         x[n]=b;
         y[n]=a;
      }
   for(f=0;f < n;f++){
      printf("%d %d\n",x[f], y[f]);
   }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: expected initializer before 'int'
    5 |    int x[3000]={ 0 };
      |    ^~~
a.cc:8:8: error: 'f' was not declared in this scope
    8 |    for(f=0;f==0;n++){
      |        ^
a.cc:14:10: error: 'x' was not declared in this scope
   14 |          x[n]=a;
      |          ^
a.cc:18:10: error: 'x' was not declared in this scope
   18 |          x[n]=b;
      |          ^
a.cc:22:24: error: 'x' was not declared in this scope
   22 |       printf("%d %d\n",x[f], y[f]);
      |                        ^
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <stdio.h>
  
int main(){
   int a, b, n, f
   int x[3000]={ 0 };
   int y[3000]={ 0 };
   n=0;
   for(f=0;f==0;n++){
      scanf("%d &d",&a, &b);
      if(a == 0&&b == 0){
         break;
      }
      if(a > b){
         x[n]=a;
         y[n]=b;
      }
      if(b >= a){
         x[n]=b;
         y[n]=a;
      }
   for(f=0;f < n;f++){
      printf("%d %d\n",x[f], y[f]);
   }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: expected initializer before 'int'
    5 |    int x[3000]={ 0 };
      |    ^~~
a.cc:8:8: error: 'f' was not declared in this scope
    8 |    for(f=0;f==0;n++){
      |        ^
a.cc:14:10: error: 'x' was not declared in this scope
   14 |          x[n]=a;
      |          ^
a.cc:18:10: error: 'x' was not declared in this scope
   18 |          x[n]=b;
      |          ^
a.cc:22:24: error: 'x' was not declared in this scope
   22 |       printf("%d %d\n",x[f], y[f]);
      |                        ^
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <stdio.h>
  
int main(){
   int a, b, n, f;
   int x[3000]={ 0 };
   int y[3000]={ 0 };
   n=0;
   for(f=0;f==0;n++){
      scanf("%d &d",&a, &b);
      if(a == 0&&b == 0){
         break;
      }
      if(a > b){
         x[n]=a;
         y[n]=b;
      }
      if(b >= a){
         x[n]=b;
         y[n]=a;
      }
   for(f=0;f < n;f++){
      printf("%d %d\n",x[f], y[f]);
   }
   return 0;
}

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

#include<stdio.h>
int main(void)
{
 int x, y;
 for(i=1;i<=3000;i++)
{
 scanf("%d, %d",&x, &y);
 if(x > y)
 {          
  printf("%d %d\n",y, x);
  }
 else if(x <= y)
 {
  if(x==0 && y==0){
   break;
   }
  printf("%d %d\n",x, y);
  }
  } 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'i' was not declared in this scope
    5 |  for(i=1;i<=3000;i++)
      |      ^
Language: C++

#include<stdio.h>
int main(void)
{
 int x, y;
 for(i=1;i<=3000;i++)
{
 scanf("%d, %d",&x, &y);
 if(x==0 && y==0){
 break;
 }
 if(x > y)
 {          
  printf("%d %d\n",y, x);
  }
 else if(x <= y)
 {
    printf("%d %d\n",x, y);
  }
  } 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'i' was not declared in this scope
    5 |  for(i=1;i<=3000;i++)
      |      ^
Language: C++

#include<stdio.h>
int main(void)
{
 int x, y;
 for(i=1;i<=3000;i++)
{
 scanf("%d, %d",&x, &y);
 if(x==0 && y==0){
 break;
 }
 if(x > y)
 {          
  printf("%d %d\n",y, x);
  }
 else if(x <= y)
 {
    printf("%d %d\n",x, y);
  }
 }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'i' was not declared in this scope
    5 |  for(i=1;i<=3000;i++)
      |      ^
Language: C++

#include<stdio.h>
int main(void)
{
int x, y;

scanf("%d %d", &x, &y);

witch(x!=0&&y!=0){
if(x>y)
printf("%d %d\n", y, x);
else if(x<=y)
printf("%d %d\n", x, y);
}


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'witch' was not declared in this scope
    8 | witch(x!=0&&y!=0){
      | ^~~~~
Language: C++

#include <stdio.h>
  
int main(){
   int a, b, n;
   int x[3000]={ 0 };
   int y[3000]={ 0 };
   n=0;
   while(1){
      scanf("%d &d",&a, &b);
      if(a == 0&&b == 0){
         break;
      }
      x[n]=a;
      y[n]=b;
      n++;
   }
   for(f=0;f < n;f++){
      if(x[f] >= y[f]){
         printf("%d %d\n",x[f], y[f]);
      }
      if(y[f] > x[f]){
         printf("%d %d\n",y[f], x[f]);
      }
   }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:8: error: 'f' was not declared in this scope
   17 |    for(f=0;f < n;f++){
      |        ^
Language: C++

#include<stdio.h>

int main (void)
{
  int x[3000], y[3000], i = 0, temp;
  do
  {
    scanf("%d %d", &x[i], &y[i]);
    if (x[i] > y[i])
    {
      temp = x[i];
      x[i] = y[i];
      y[i] = temp;
    }
    ++i;
  } while (x[i-1] != 0 || y[i-1] != 0);
  
  i = 0;
  
  while (x[i] != 0 || y[i] != 0);
  {
    printf("%d %d\n", x[i], y[i]);
    ++i
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:8: error: expected ';' before '}' token
   23 |     ++i
      |        ^
      |        ;
   24 |   }
      |   ~
Language: C++

#include <isotream>
#include <algorithm>
#include <cstdio>

int x, y;

while(cin >> x >> y, x, y){
	if(x > y)
		cout << x << ' ' << y;
	else 
   		cout << y << ' ' << x;
}

return 0;
}

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

#include<stdio.h>
int main(void)
{
int x[], y[], i;

scanf("%d %d", &x[], &y[]);

for(i=0;i<3000;i++){
if(x[i]>y[i])
printf("%d %d\n", y[i], x[i]);
else if(x[i]<=y[i])
printf("%d %d\n", x[i], y[i]);
else if(x[i]==0&&y[i]==0)
break;
}


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: storage size of 'x' isn't known
    4 | int x[], y[], i;
      |     ^
a.cc:4:10: error: storage size of 'y' isn't known
    4 | int x[], y[], i;
      |          ^
a.cc:6:19: error: expected primary-expression before ']' token
    6 | scanf("%d %d", &x[], &y[]);
      |                   ^
a.cc:6:25: error: expected primary-expression before ']' token
    6 | scanf("%d %d", &x[], &y[]);
      |                         ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cstdio>

int x, y;

while(cin >> x >> y, x, y){
	if(x > y)
		cout << x << ' ' << y;
	else 
   		cout << y << ' ' << x;
}

return 0;
}

Compiler output:
a.cc:7:1: error: expected unqualified-id before 'while'
    7 | while(cin >> x >> y, x, y){
      | ^~~~~
a.cc:14:1: error: expected unqualified-id before 'return'
   14 | return 0;
      | ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<stdio.h>
int main(void)
{
int x[3000], y[3000], i;


for(i=0;i<3000;i++){
scanf("%d %d", &x[], &y[]);
if(x[i]>y[i])
printf("%d %d\n", y[i], x[i]);
else if(x[i]<=y[i])
printf("%d %d\n", x[i], y[i]);
else if(x[i]==0&&y[i]==0)
break;
}


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before ']' token
    8 | scanf("%d %d", &x[], &y[]);
      |                   ^
a.cc:8:25: error: expected primary-expression before ']' token
    8 | scanf("%d %d", &x[], &y[]);
      |                         ^
Language: C++

#include<stdio.h>
int main(void)
{
int x[3000]=0, y[3000]=0, i;


for(i=0;i<3000;i++){
scanf("%d %d", &x[i], &y[i]);
if(x[i]>y[i])
printf("%d %d\n", y[i], x[i]);
else if(x[i]<=y[i])
printf("%d %d\n", x[i], y[i]);
else if(x[i]==0&&y[i]==0)
break;
}


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: array must be initialized with a brace-enclosed initializer
    4 | int x[3000]=0, y[3000]=0, i;
      |             ^
a.cc:4:24: error: array must be initialized with a brace-enclosed initializer
    4 | int x[3000]=0, y[3000]=0, i;
      |                        ^
Language: C++

#include<stdio.h>
int main(void)
{
int x[3000]=0;
int y[3000]=0;
int i;


for(i=0;i<3000;i++){
scanf("%d %d", &x[i], &y[i]);
if(x[i]>y[i])
printf("%d %d\n", y[i], x[i]);
else if(x[i]<=y[i])
printf("%d %d\n", x[i], y[i]);
else if(x[i]==0&&y[i]==0)
break;
}


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: array must be initialized with a brace-enclosed initializer
    4 | int x[3000]=0;
      |             ^
a.cc:5:13: error: array must be initialized with a brace-enclosed initializer
    5 | int y[3000]=0;
      |             ^
Language: C++

#include<stdio.h>

int main(void){
  int a, b;
  scanf("%d %d\n", &a, &b);

 do{
  if(a > b)
    printf("%d %d\n", b, a);
  else
    printf("%d %d\n", a, b);
  
  scanf("%d %d\n", &a, &b);

 } while(a != 0 && b != 0)

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:27: error: expected ';' before 'return'
   15 |  } while(a != 0 && b != 0)
      |                           ^
      |                           ;
   16 | 
   17 | return 0;
      | ~~~~~~
Language: C++

#include<stdio.h>
int main(void)
{
int x[]=0;
int y[]=0;
int i;


for(i=0;i<3000;i++){
scanf("%d %d", &x[i], &y[i]);
if(x[i]>y[i])
printf("%d %d\n", y[i], x[i]);
else if(x[i]<=y[i])
printf("%d %d\n", x[i], y[i]);
else if(x[i]==0&&y[i]==0)
break;
}


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: initializer fails to determine size of 'x'
    4 | int x[]=0;
      |         ^
a.cc:4:9: error: array must be initialized with a brace-enclosed initializer
a.cc:5:9: error: initializer fails to determine size of 'y'
    5 | int y[]=0;
      |         ^
a.cc:5:9: error: array must be initialized with a brace-enclosed initializer
Language: C++

#include<stdio.h>

int main (void)
{
  int x[3000], y[3000], i = 0, temp;
  do
  {
    scanf("%d %d", &x[i], &y[i]);
    if (x[i] > y[i])
    {
      temp = x[i];
      x[i] = y[i];
      y[i] = temp;
    }
    i++;
  } while (x[i-1] != 0 || y[i-1] != 0);
  
  i = 0;
  
  while (x[i] != 0 || y[i] != 0);
  {
    printf("%d %d\n", x[i], y[i]);
    i++;
  }
  
  return 0;

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

#include <stdio.h>
#define NUMBER 3000
int main () {
   int x[NUMBER], y[NUMBER];
   int i = 0, j = 0, k;

   for (i = 0; i<NUMBER; i++) {

     scanf ("%d %d\n", &x[i], &y[i]);

     if (x[i] == 0 && y[i] == 0) {
       break;
     }
   }

   for (k = 0; k <NUMBER; k++) {
     if (x[k] < y[k]) {
      printf ("%d %d\n",x[k], y[k]);
     } else (y[k] < x[k]) {
      printf ("%d %d\n",y[k], x[k]);
     }
     if (x[k] == 0 && y[k] == 0) {
       break;
     }
   }

   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:26: error: expected ';' before '{' token
   19 |      } else (y[k] < x[k]) {
      |                          ^~
      |                          ;
Language: C++

include <stdio.h>

int main(void){
  int a = 0, b = 1, i = 0, j;
  int x[100] = 0, y[100] = 0;
  while(a != 0 && b != 0){
    scanf("%d %d\n", &a, &b)
    x[i] = a; y[i] = b; i++;
  }

  for(j = 0; j <= i; j++){
     if(x[j] > y[j])
       printf("%d %d\n", x[j],y[j]);
     else
       printf("%d %d\n", y[j],x[j]);
  }

return 0;
}   

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C++

#include <stdio.h>

int main(void){
  int a = 0, b = 1, i = 0, j;
  int x[100] = 0, y[100] = 0;
  while(a != 0 && b != 0){
    scanf("%d %d\n", &a, &b)
    x[i] = a; y[i] = b; i++;
  }

  for(j = 0; j <= i; j++){
     if(x[j] > y[j])
       printf("%d %d\n", x[j],y[j]);
     else
       printf("%d %d\n", y[j],x[j]);
  }

return 0;
}   

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: array must be initialized with a brace-enclosed initializer
    5 |   int x[100] = 0, y[100] = 0;
      |                ^
a.cc:5:28: error: array must be initialized with a brace-enclosed initializer
    5 |   int x[100] = 0, y[100] = 0;
      |                            ^
a.cc:7:29: error: expected ';' before 'x'
    7 |     scanf("%d %d\n", &a, &b)
      |                             ^
      |                             ;
    8 |     x[i] = a; y[i] = b; i++;
      |     ~
Language: C++

#include <stdio.h>

int main()
{
  int a = 0, b = 1, i = 0, j;
  int x[] = 0, y[] = 0;
  while(a != 0 && b != 0){
    scanf("%d %d\n", &a, &b)
    x[i] = a; y[i] = b; i++;
  }

  for(j = 0; j <= i; j++){
     if(x[j] > y[j])
       printf("%d %d\n", x[j],y[j]);
     else
       printf("%d %d\n", y[j],x[j]);
  }

return 0;
}   

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: initializer fails to determine size of 'x'
    6 |   int x[] = 0, y[] = 0;
      |             ^
a.cc:6:13: error: array must be initialized with a brace-enclosed initializer
a.cc:6:22: error: initializer fails to determine size of 'y'
    6 |   int x[] = 0, y[] = 0;
      |                      ^
a.cc:6:22: error: array must be initialized with a brace-enclosed initializer
a.cc:8:29: error: expected ';' before 'x'
    8 |     scanf("%d %d\n", &a, &b)
      |                             ^
      |                             ;
    9 |     x[i] = a; y[i] = b; i++;
      |     ~
Language: C++

#include <stdio.h>

int main()
{
  int a = 0, b = 1, i = 0, j;
  int x[100], y[100];
  while(a != 0 && b != 0){
    scanf("%d %d\n", &a, &b)
    x[i] = a; y[i] = b; i++;
  }

  for(j = 0; j <= i; j++){
     if(x[j] > y[j])
       printf("%d %d\n", x[j],y[j]);
     else
       printf("%d %d\n", y[j],x[j]);
  }

return 0;
}   

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before 'x'
    8 |     scanf("%d %d\n", &a, &b)
      |                             ^
      |                             ;
    9 |     x[i] = a; y[i] = b; i++;
      |     ~
Language: C++

include <stdio.h>
int main(){
    int a[10000],b[10000],c,k,l;
    l =0; 
    while(1){
        scanf("%d %d",&k,&c);

        if(k == 0 && c == 0){ 
            break;
        }   

        a[l]=k;
b[l]=c;
        l++;
    }   

    for(k=0;k<l;k++){
        printf("%d %d\n",b[k],a[k]);
    }   
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C++

#include <stdio.h>
int main(){
    int a[10000],b[10000],c,k,l;
    l =0; 
    while(1){
        scanf("%d %d",&k,&c);

        if(k == 0 && c == 0){ 
            break;
        }   
        if(k < c){ 
            a[l]=k;
            b[l]=c;
            l++;
        }else{
            a[l]=c;
            b[l]=k
        }   
}
    for(k=0;k<l;k++){
        printf("%d %d\n",a[k],b[k]);
    }   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:19: error: expected ';' before '}' token
   17 |             b[l]=k
      |                   ^
      |                   ;
   18 |         }
      |         ~
Language: C++

#include <stdio.h>
int main(){
    int a[3000],b[3000],c,k,l;
    l =0; 
    while(1){
        scanf("%d %d",&k,&c);

        if(k == 0 && c == 0){ 
            break;
        }   
        if(k < c){ 
            a[l]=k;
            b[l]=c;
        }else{
            a[l]=c;
            b[l]=k;
        }   
        l++;

    }   
    for(k=0;k<l;k++){
        printf("%d %d\n",a[k],b[k]);
    }   

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

#include <iostream>

using namespace std;

int main() {
  int r;
  int cnt = 1;

  while(cin >> r >> b , r && b ) {
   if ( r > b ) {
   cout << r << " " << b;
       
} else {
   cout << b << " " << r;
 }
  }
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'b' was not declared in this scope
    9 |   while(cin >> r >> b , r && b ) {
      |                     ^
Language: C++

#include <stdio.h>

int main()
{
  int a = 1, b = 1, i = 0, j = 0;
  int x[], y[];
  while(a != 0 || b != 0){
    scanf("%d %d", &a, &b);
    x[i] = a; y[i] = b; i++;
     }
  

  printf("\n");

  for(j = 0; j < i-1; j++){
     if(x[j] > y[j])
       printf("%d %d\n", y[j],x[j]);
     else
       printf("%d %d\n", x[j],y[j]);
  }

return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: storage size of 'x' isn't known
    6 |   int x[], y[];
      |       ^
a.cc:6:12: error: storage size of 'y' isn't known
    6 |   int x[], y[];
      |            ^
Language: C++

#include<stdio.h>

int main(){
  int a, b=1;

  while(){
    scanf("%d %d", &a, &b);
    if(x == 0 && y == 0)break;
    if(a > b)
      printf("%d %d\n", b, a);
    else
      printf("%d %d\n", a, b);
  }

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected primary-expression before ')' token
    6 |   while(){
      |         ^
a.cc:8:8: error: 'x' was not declared in this scope
    8 |     if(x == 0 && y == 0)break;
      |        ^
a.cc:8:18: error: 'y' was not declared in this scope
    8 |     if(x == 0 && y == 0)break;
      |                  ^
Language: C++

#include<stdio.h>

int main(){
  int a, b=1;

  while(1){
    scanf("%d %d", &a, &b);
    if(x == 0 && y == 0)break;
    if(a > b)
      printf("%d %d\n", b, a);
    else
      printf("%d %d\n", a, b);
  }

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'x' was not declared in this scope
    8 |     if(x == 0 && y == 0)break;
      |        ^
a.cc:8:18: error: 'y' was not declared in this scope
    8 |     if(x == 0 && y == 0)break;
      |                  ^
Language: C++

#include <iostream>

int main() {
  int a, b;
  while (1) {
  cin >> a >> b;
  if ( a==0 && b==0) break;
  if (a < b) {
    cout << a << " " << b << endl;
  } else {
    cout << b << " " << a << endl;
  }
}
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << a << " " << b << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << a << " " << b << endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << b << " " << a << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout << b << " " << a << endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~