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

#include <iostream>
int main(){
while(true){
int x=1,y=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:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | 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:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | if(x>y) 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:7:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | if(x>y) 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:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | else    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:8:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | else    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 x=1,y=1;
while(1){
    cin >> x >> y;
    if ( x == 0 && y == 0 ) break;
    else if( x < y ) cout <<x<<" "<<y<<endl;
    else cout <<y<<" "<<x<<endl; 
}

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

#include <utility>
#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
    const int VALUES = 10000;

    int A[VALUES], B[VALUES], C = 0;

    while (true)
    {
        cin >> A[C] >> B[C];

        if (A[C] == 0 && B[C] == 0) { goto Exit; }

        if (A[C] > B[C}) { swap(A[C], B[C]); }

        C++;
    }

    Exit:;

    for (int i = 0; i < C; i++)
    {
        cout << A[i] << ' ' << B[i] << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:23: error: expected ']' before '}' token
   19 |         if (A[C] > B[C}) { swap(A[C], B[C]); }
      |                       ^
      |                       ]
a.cc:19:23: error: expected ')' before '}' token
   19 |         if (A[C] > B[C}) { swap(A[C], B[C]); }
      |            ~          ^
      |                       )
a.cc:19:23: error: expected primary-expression before '}' token
a.cc:19:24: error: expected primary-expression before ')' token
   19 |         if (A[C] > B[C}) { swap(A[C], B[C]); }
      |                        ^
a.cc:17:44: error: label 'Exit' used but not defined
   17 |         if (A[C] == 0 && B[C] == 0) { goto Exit; }
      |                                            ^~~~
a.cc: At global scope:
a.cc:24:5: error: 'Exit' does not name a type
   24 |     Exit:;
      |     ^~~~
a.cc:26:5: error: expected unqualified-id before 'for'
   26 |     for (int i = 0; i < C; i++)
      |     ^~~
a.cc:26:21: error: 'i' does not name a type
   26 |     for (int i = 0; i < C; i++)
      |                     ^
a.cc:26:28: error: 'i' does not name a type
   26 |     for (int i = 0; i < C; i++)
      |                            ^
a.cc:31:5: error: expected unqualified-id before 'return'
   31 |     return 0;
      |     ^~~~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <stdio.h>

//#include <map>

using namespace std;

int main()
{
	vector<string> vStr;

	while (1)
	{	
		string st;
		getline(cin, st);
		if (st == string("0 0"))break;
		vStr.push_back(st);
	}

	for (int i = 0; i < vStr.size(); i++)
	{
		vector<int> tv;

		while (vStr.at(i).find(' ') != -1)
		{
			tv.push_back(stoi(vStr.at(i).substr(0, vStr.at(i).find(' '))));
			vStr.at(i).erase(0, vStr.at(i).find(' ') + 1);
		}
		tv.push_back(stoi(vStr.at(i)));
		vStr.at(i) = "";
		
		sort(tv.begin(), tv.end());

		for (int j = 0; j < tv.size(); j++)
		{
			char ch[20];
			sprintf_s(ch, "%d", tv.at(j));
			vStr.at(i) += ch;
			if (j == tv.size())break;
			vStr.at(i) += " ";
		}
	}

	for (int i = 0; i < vStr.size(); i++)
	{
		cout << vStr.at(i) << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:25: error: 'sprintf_s' was not declared in this scope; did you mean 'sprintf'?
   41 |                         sprintf_s(ch, "%d", tv.at(j));
      |                         ^~~~~~~~~
      |                         sprintf
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:38: error: expected primary-expression before '?' token
    8 |                 if (a == 0 && b == 0)???break;
      |                                      ^
a.cc:8:39: error: expected primary-expression before '?' token
    8 |                 if (a == 0 && b == 0)???break;
      |                                       ^
a.cc:8:40: error: expected primary-expression before '?' token
    8 |                 if (a == 0 && b == 0)???break;
      |                                        ^
a.cc:8:41: error: expected primary-expression before 'break'
    8 |                 if (a == 0 && b == 0)???break;
      |                                         ^~~~~
a.cc:8:41: error: expected ':' before 'break'
    8 |                 if (a == 0 && b == 0)???break;
      |                                         ^~~~~
      |                                         :
a.cc:8:41: error: expected primary-expression before 'break'
    8 |                 if (a == 0 && b == 0)???break;
      |                                         ^~~~~
a.cc:8:41: error: expected ':' before 'break'
    8 |                 if (a == 0 && b == 0)???break;
      |                                         ^~~~~
      |                                         :
a.cc:8:41: error: expected primary-expression before 'break'
    8 |                 if (a == 0 && b == 0)???break;
      |                                         ^~~~~
a.cc:8:41: error: expected ':' before 'break'
    8 |                 if (a == 0 && b == 0)???break;
      |                                         ^~~~~
      |                                         :
a.cc:8:41: error: expected primary-expression before 'break'
    8 |                 if (a == 0 && b == 0)???break;
      |                                         ^~~~~
Language: C++

#include<stdio.h>

int main(){

int x,y,z;
scanf("%d %d",&x,&y);
while(x!=0&&y!=0){
scanf("%d %d",&x,&y);
z=x;
x=y;
y=z;
printf("%d %d",x,y)
}




return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before '}' token
   12 | printf("%d %d",x,y)
      |                    ^
      |                    ;
   13 | }
      | ~
Language: C++

#include<stdio.h>

int main(){

int x,y,z;
scanf("%d %d",&x,&y);
while(x!=0&&y!=0){
scanf("%d %d",&x,&y);
if(y<x{)
z=x;
x=y;
y=z;
}
printf("%d %d",x,y);
}




return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: expected ';' before '{' token
    9 | if(y<x{)
      |       ^
      |       ;
a.cc:14:20: error: expected ')' before ';' token
   14 | printf("%d %d",x,y);
      |                    ^
      |                    )
a.cc:9:3: note: to match this '('
    9 | if(y<x{)
      |   ^
Language: C++

#include<stdio.h>
#include<iostream>
using namespace std;

int main(){
 int x,y;
 cin >> x,y,tmp;


 for(x != 0 && y != 0){
  if(x > y){
   tmp = x;
   x = y;
   y = tmp;
  }
  
  cout << x << " " << y << endl;
 }

 return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'tmp' was not declared in this scope; did you mean 'tm'?
    7 |  cin >> x,y,tmp;
      |             ^~~
      |             tm
a.cc:10:22: error: expected ';' before ')' token
   10 |  for(x != 0 && y != 0){
      |                      ^
      |                      ;
a.cc:20:2: error: expected primary-expression before 'return'
   20 |  return 0;
      |  ^~~~~~
a.cc:18:3: error: expected ';' before 'return'
   18 |  }
      |   ^
      |   ;
   19 | 
   20 |  return 0;
      |  ~~~~~~
a.cc:20:2: error: expected primary-expression before 'return'
   20 |  return 0;
      |  ^~~~~~
a.cc:18:3: error: expected ')' before 'return'
   18 |  }
      |   ^
      |   )
   19 | 
   20 |  return 0;
      |  ~~~~~~
a.cc:10:5: note: to match this '('
   10 |  for(x != 0 && y != 0){
      |     ^
Language: C++

#include<stdio.h>
#include<iostream>
using namespace std;

int main(){
 int x,y,tmp;
 cin >> x,y;


 for(x != 0 && y != 0){
  if(x > y){
   tmp = x;
   x = y;
   y = tmp;
  }
  
  cout << x << " " << y << endl;
 }

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ';' before ')' token
   10 |  for(x != 0 && y != 0){
      |                      ^
      |                      ;
a.cc:20:2: error: expected primary-expression before 'return'
   20 |  return 0;
      |  ^~~~~~
a.cc:18:3: error: expected ';' before 'return'
   18 |  }
      |   ^
      |   ;
   19 | 
   20 |  return 0;
      |  ~~~~~~
a.cc:20:2: error: expected primary-expression before 'return'
   20 |  return 0;
      |  ^~~~~~
a.cc:18:3: error: expected ')' before 'return'
   18 |  }
      |   ^
      |   )
   19 | 
   20 |  return 0;
      |  ~~~~~~
a.cc:10:5: note: to match this '('
   10 |  for(x != 0 && y != 0){
      |     ^
Language: C++

#include<stdio.h>
#include<iostream>
using namespace std;

int main(){
 int x,y,tmp;
 cin >> x >> y;


 for(x != 0 && y != 0){
  if(x > y){
   tmp = x;
   x = y;
   y = tmp;
  }
  
  cout << x << " " << y << endl;
 }

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ';' before ')' token
   10 |  for(x != 0 && y != 0){
      |                      ^
      |                      ;
a.cc:20:2: error: expected primary-expression before 'return'
   20 |  return 0;
      |  ^~~~~~
a.cc:18:3: error: expected ';' before 'return'
   18 |  }
      |   ^
      |   ;
   19 | 
   20 |  return 0;
      |  ~~~~~~
a.cc:20:2: error: expected primary-expression before 'return'
   20 |  return 0;
      |  ^~~~~~
a.cc:18:3: error: expected ')' before 'return'
   18 |  }
      |   ^
      |   )
   19 | 
   20 |  return 0;
      |  ~~~~~~
a.cc:10:5: note: to match this '('
   10 |  for(x != 0 && y != 0){
      |     ^
Language: C++

import java.util.Scanner;

public class Main {


    public static void main(String[] args) {
        int x[] = new int[100];
        int y[] = new int[100];
        int a = 1;
        int b = 1;
        int cnt = 0;
        while (a != 0 || b != 0) {
            Scanner scan = new Scanner(System.in);
            a = scan.nextInt();
            b = scan.nextInt();
            x[cnt] = a;
            y[cnt] = b;

            cnt++;

        }

        for (int i = 0; i < cnt - 1; i++) {
            if (x[i] > y[i]) {
                int c = 0;
                c = x[i];
                x[i] = y[i];
                y[i] = c;
            }
            System.out.println(x[i] + " " + y[i]);
        }
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
#include <string>
#include <sstream>
using namespace std;

int main()
{
	int a[24] = { 0 }, i = 0,j;
	string x;
	do {
		string tmp;
		getline(cin, x);
		if (x == "0 0") {
			break;
		}
		sscanf_s(x.c_str(), "%d %d", &a[i], &a[i + 1]);
		i += 2;
		j = i;
	} while (1);

	for (i = 0; i < j ; i = i + 2) {
		if (a[i] < a[i + 1]) {
			cout << a[i] << ' ' << a[i + 1] << endl;
		}
		else {
			cout << a[i + 1] << ' ' << a[i] << endl;
		}

	}

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: 'sscanf_s' was not declared in this scope; did you mean 'sscanf'?
   16 |                 sscanf_s(x.c_str(), "%d %d", &a[i], &a[i + 1]);
      |                 ^~~~~~~~
      |                 sscanf
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main()
{
	int a[24], i = 0,j;
	string x;
	do {
		string tmp;
		getline(cin, x);
		if (x == "0 0") {
			break;
		}
		sscanf_s(x.c_str(), "%d %d", &a[i], &a[i + 1]);
		i += 2;
		j = i;
	} while (1);

	for (i = 0; i < j ; i = i + 2) {
		if (a[i] < a[i + 1]) {
			cout << a[i] << ' ' << a[i + 1] << endl;
		}
		else {
			cout << a[i + 1] << ' ' << a[i] << endl;
		}

	}

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'sscanf_s' was not declared in this scope; did you mean 'sscanf'?
   15 |                 sscanf_s(x.c_str(), "%d %d", &a[i], &a[i + 1]);
      |                 ^~~~~~~~
      |                 sscanf
Language: C++

#include <iostream>
using namespace std;

int main(void){
	int x,y,temp;
	while(x != 0 && y != 0){
		cin >> x >> y ;
		if( x > y){
			temp = x;
			x = y;
			y = temp;
		}	

	cout << x <<" "<< y << endl;
}

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: 'a' was not declared in this scope
    6 | cin>>a>>b;
      |      ^
a.cc:6:9: error: 'b' was not declared in this scope
    6 | cin>>a>>b;
      |         ^
Language: C++

x, y = map(int, raw_input.split())



while True:
  if x < y:
     print 'x, y'
  if x > y :
     print 'y, x'
  if x == y == 0:
     break

 

Compiler output:
a.cc:7:12: warning: multi-character character constant [-Wmultichar]
    7 |      print 'x, y'
      |            ^~~~~~
a.cc:9:12: warning: multi-character character constant [-Wmultichar]
    9 |      print 'y, x'
      |            ^~~~~~
a.cc:1:1: error: 'x' does not name a type
    1 | x, y = map(int, raw_input.split())
      | ^
Language: C++

a = map(int, raw_input().split())
a.sort()
print '%d %d' % (a[0], a[1])

Compiler output:
a.cc:3:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    3 | print '%d %d' % (a[0], a[1])
      |       ^~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a = map(int, raw_input().split())
      | ^
Language: C++

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

int main(){

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



}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:27: error: 'ab' was not declared in this scope; did you mean 'b'?
   12 | else  cout << a << " " << ab<< "\n";
      |                           ^~
      |                           b
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected ';' before '}' token
    9 |        if(x>y){s=y,y=x,x=s};
      |                           ^
      |                           ;
Language: C++

#include<iostream>
#include <algorithm>

using namespace std;

int main(){
int x,y,min ,max;

cin >> x >> y;

while(x!=0&&y!=0){

min = min(x,y) 
max = max(x,y)
cout << x << " " << y;
cin >> x >> y;

}
  
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'min' cannot be used as a function
   13 | min = min(x,y)
      |       ~~~^~~~~
Language: C++

#include<iostream>
#include <algorithm>

using namespace std;

int main(){

int x,y;

cin >> x >> y;

while(x!=0&&y!=0){
if(x<y){
cout << x << " " << y;
}else{
count << y << " " << x;
}
cin >> x >> y;


}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   16 | count << y << " " << x;
      | ~~~~~~^~~~
Language: C++

#include<iostream>
#include <algorithm>

using namespace std;

int main(){

int x,y;
cin >> x >> y;

while(x!=0&&y!=0){
if(x<y){
cout << x << " " << y << "\n";
}else{
count << y << " " << x << "\n"
}
cin >> x >> y;


}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   15 | count << y << " " << x << "\n"
      | ~~~~~~^~~~
Language: C++

#include<iostream>
#include <algorithm>
 
using namespace std;
 
int main(){
 
int x,y;
cin >> x >> y;
 
while(x!=0&&y!=0){
if(x<y){
cout << x << " " << y << "\n";
}else{
cout << y << " " << x << "\n"
}
cin >> x >> y;
 
 
}
 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:30: error: expected ';' before '}' token
   15 | cout << y << " " << x << "\n"
      |                              ^
      |                              ;
   16 | }
      | ~
Language: C++

#include<iostream>
using namespace std;

main(){
	int a,b;
	do{
		cin >>a >>b;
		if(a<=b && b!=0){
			cout << a << " " << b << "\n";
		}
		else if(b<a){
			cout << b << " " << a << "\n";
		}		
	}while(a!=0&&b!=0)
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:14:27: error: expected ';' before '}' token
   14 |         }while(a!=0&&b!=0)
      |                           ^
      |                           ;
   15 | }
      | ~
Language: C++

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

	return 0;
}

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

#include <iostream>

int main(void) {
	int a, b;
	while(1){
		cin >> a >> b;
		if (a == 0 && b == 0){
			break;
		}

		if(a < b) {
			cout << a << " " << b << "\n";
		} else {
			cout << b << " " << a << "\n";
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: 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:12:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |                         cout << a << " " << b << "\n";
      |                         ^~~~
      |                         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |                         cout << b << " " << a << "\n";
      |                         ^~~~
      |                         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

using System;

class Swapping_Two_Numbers
{
    public static void Main()
    {
        while (true)
        {
            string number_str = Console.ReadLine();
            string[] tmp_number = number_str.Split(' ');
            int a = int.Parse(tmp_number[0]);
            int b = int.Parse(tmp_number[1]);

            if (a == 0 && b == 0) break;


            if (a > b)
            {
                int tmp = a;
                a = b;
                b = tmp;
            }

            Console.WriteLine("{0} {1}", a, b);
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void Main()
      |           ^~~~~~~
      |           :
a.cc:27:2: error: expected ';' after class definition
   27 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Swapping_Two_Numbers::Main()':
a.cc:9:13: error: 'string' was not declared in this scope
    9 |             string number_str = Console.ReadLine();
      |             ^~~~~~
a.cc:10:20: error: expected primary-expression before ']' token
   10 |             string[] tmp_number = number_str.Split(' ');
      |                    ^
a.cc:11:21: error: expected primary-expression before 'int'
   11 |             int a = int.Parse(tmp_number[0]);
      |                     ^~~
a.cc:12:21: error: expected primary-expression before 'int'
   12 |             int b = int.Parse(tmp_number[1]);
      |                     ^~~
a.cc:24:13: error: 'Console' was not declared in this scope
   24 |             Console.WriteLine("{0} {1}", a, b);
      |             ^~~~~~~
Language: C++

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

int main(){
  int x,y;
  while(cin>>x>>y&&(x||y)){
        printf("%d %d\n",x<y?x:y,x<y?y:x);
        }
  return 0;
}

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

#include <stdc++.h>
int main(){
int x,y;
while(std::cin>>x>>y,x||y)printf("%d %d\n",x<y?x:y,x<y?y:x);
return 0;
}

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


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String result = "";
		while(true){
			String[] s = br.readLine().split(" ");			
			int a = Integer.parseInt(s[0]);
			int b = Integer.parseInt(s[1]);
			if(a==0 && b==0){break;}
			if(a < b){
				result += a +" "+b+"\n";
			}else{
				result += b +" "+a+"\n";
			}
		}
		System.out.println(result);

	}

}

Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.IOException;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: expected unqualified-id before 'public'
    6 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'x' was not declared in this scope
    8 |     cin >> x >> y;
      |            ^
a.cc:8:17: error: 'y' was not declared in this scope
    8 |     cin >> x >> y;
      |                 ^
Language: C++

#include<iostream>
using namespace std;

int main() {
	int x, y;

	while (cin >> x >> y) {
		if (x == 0 && y == 0)brerak;
		if (x < y) cout << x << " " << y << endl;
		else cout << y << " " << x << endl;
	}

	return 0;
}

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

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

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

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

Compiler output:
a.cc:6:21: error: extended character 　 is not valid in an identifier
    6 | scanf("%d%d",&x,&y);　
      |                     ^
a.cc: In function 'int main()':
a.cc:6:21: error: '\U00003000' was not declared in this scope
    6 | scanf("%d%d",&x,&y);　
      |                     ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: expected primary-expression before '%' token
    5 |   scanf("%d %d",%a,%b);
      |                 ^
a.cc:5:20: error: expected primary-expression before '%' token
    5 |   scanf("%d %d",%a,%b);
      |                    ^
Language: C++

#include <iostream>
int main(){
 int a;
 int b;
 std::cin >> a >> b;
 if( a > b ){
  int t = static_cast<int&&> a;
  a = static_cast<int&&> b;
  b = static_cast<int&&> t;
 }
 std::cout << a << " " << b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: expected '(' before 'a'
    7 |   int t = static_cast<int&&> a;
      |                              ^
      |                              (
a.cc:7:31: error: expected ')' before ';' token
    7 |   int t = static_cast<int&&> a;
      |                               ^
      |                               )
a.cc:8:26: error: expected '(' before 'b'
    8 |   a = static_cast<int&&> b;
      |                          ^
      |                          (
a.cc:8:27: error: expected ')' before ';' token
    8 |   a = static_cast<int&&> b;
      |                           ^
      |                           )
a.cc:9:26: error: expected '(' before 't'
    9 |   b = static_cast<int&&> t;
      |                          ^
      |                          (
a.cc:9:27: error: expected ')' before ';' token
    9 |   b = static_cast<int&&> t;
      |                           ^
      |                           )
Language: C++

#include <iostream>
int main(){
while(true)
 int a;
 int b;
 std::cin >> a >> b;
 if(a==0 && b==0) { break; }
 if( a > b ){
  int t = static_cast<int&&>(a);
  a = static_cast<int&&>(b);
  b = static_cast<int&&>(t);
 }
 std::cout << a << " " << b << std::endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'a' was not declared in this scope
    6 |  std::cin >> a >> b;
      |              ^
a.cc:7:21: error: break statement not within loop or switch
    7 |  if(a==0 && b==0) { break; }
      |                     ^~~~~
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
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 )
			cout << x << " " << y << endl;
		else if ( x > y )
			cout << y << " " << x << endl;
			}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:41: error: break statement not within loop or switch
    7 |                 if ( x == 0 && y == 0 ) break;
      |                                         ^~~~~
Language: C++

#include <iostream>

int* swap(int a, int b) {
    int *temp = {a, b};
    return temp;
}

int main() {
  int left, right;
  while (std::cin >> left >> right) {
    if (left == 0 && right == 0) break;
  }
  return 0 
}      

Compiler output:
a.cc: In function 'int* swap(int, int)':
a.cc:4:10: error: scalar object 'temp' requires one element in initializer
    4 |     int *temp = {a, b};
      |          ^~~~
a.cc: In function 'int main()':
a.cc:13:11: error: expected ';' before '}' token
   13 |   return 0
      |           ^
      |           ;
   14 | }
      | ~
Language: C++

#include <iostream>

int* swap(int a, int b) {
    int temp[] = {a, b};
    return temp;
}

int main() {
  int left, right;
  while (std::cin >> left >> right) {
    if (left == 0 && right == 0) break;
  }
  return 0 
}      

Compiler output:
a.cc: In function 'int* swap(int, int)':
a.cc:5:12: warning: address of local variable 'temp' returned [-Wreturn-local-addr]
    5 |     return temp;
      |            ^~~~
a.cc:4:9: note: declared here
    4 |     int temp[] = {a, b};
      |         ^~~~
a.cc: In function 'int main()':
a.cc:13:11: error: expected ';' before '}' token
   13 |   return 0
      |           ^
      |           ;
   14 | }
      | ~
Language: C++

#include <iostream>

int* swap(int a, int b) {
    int temp[] = {a, b};
    return temp;
}

int main() {
  int left, right;
  int *swap;
  while (std::cin >> left >> right) {
    if (left == 0 && right == 0) break;
    else {
      swap = swap(left, right);
      std::cout << swap[0] << ' ' << swap[1] << std::endl;
    }  
  }
  return 0; 
}      

Compiler output:
a.cc: In function 'int* swap(int, int)':
a.cc:5:12: warning: address of local variable 'temp' returned [-Wreturn-local-addr]
    5 |     return temp;
      |            ^~~~
a.cc:4:9: note: declared here
    4 |     int temp[] = {a, b};
      |         ^~~~
a.cc: In function 'int main()':
a.cc:14:18: error: 'swap' cannot be used as a function
   14 |       swap = swap(left, right);
      |              ~~~~^~~~~~~~~~~~~
Language: C++

 #include <iostream>
using namespace std;
int main(){
	int x , y ;
	cin >> x >> y ;
	if ( x > y )
		swap ( x , y )
	cout << x << y << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before 'cout'
    7 |                 swap ( x , y )
      |                               ^
      |                               ;
    8 |         cout << x << y << endl;
      |         ~~~~
Language: C++

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

        if((a == 0) && (b == 0)) break;
        if(a > b){
            cout << b << " " << a << endl;
        }else{
            cout << a << " " << b << endl;
        }

    }
     
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: expected 'while' before numeric constant
   20 |     return 0;
      |            ^
a.cc:20:12: error: expected '(' before numeric constant
   20 |     return 0;
      |            ^
      |            (
a.cc:20:13: error: expected ')' before ';' token
   20 |     return 0;
      |            ~^
      |             )
Language: C++

#include<stdio.h>

void main() {
	int x, y;
	while ((x != 0) && (y != 0)) {
		scanf("%d %d", &x, &y);
		(x < y) ? printf("%d %d\n", x, y) : printf("%d %d\n", y, x);
	}

}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main() {
      | ^~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void main() {
	int x = 0;
	int y = 0;
	while (true)
	{
		scanf("%d %d", &x, &y);
		if ((x == 0) && (y == 0))
			break;
		(x < y) ? printf("%d %d\n", x, y) : printf("%d %d\n", y, x);
	}
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main() {
      | ^~~~
Language: C++

#include <stdio.h>

int	 main(void)
{
	int	x,y;

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

	return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected ';' before 'printf'
   11 |           else (x <= y)
      |                        ^
      |                        ;
   12 |             printf("%d %d\n",y,x);
      |             ~~~~~~      
a.cc:13:11: error: 'else' without a previous 'if'
   13 |           else if(x == 0 && y ==0)
      |           ^~~~
Language: C++

#include <iostream>     // std::cout
#include <algorithm>
using namespace std;

int main(){
	int x,y;
	
	while(1){
		cin>>x>>y;
		if((x|y) == 0)break;
		cout<<mix(x,y)<<" "<<man(x,y)<<endl;
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: 'mix' was not declared in this scope
   11 |                 cout<<mix(x,y)<<" "<<man(x,y)<<endl;
      |                       ^~~
a.cc:11:38: error: 'man' was not declared in this scope; did you mean 'main'?
   11 |                 cout<<mix(x,y)<<" "<<man(x,y)<<endl;
      |                                      ^~~
      |                                      main
Language: C++

#include<iostream>
using namespace std;

int main(){
int x,y,z;
for(;;){
	cin>>x>>y;
	if(x==0y==0){break;}
	else if(x>y){z=x,x=y,y=z;}
	cout<<x<<" "<<y<<endl;
	}
return 0;
}

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

#include <iostream>

using namespace std;

int main(){
	int x, y;

	while(1){
		cin >> x >> y;
		if(x==0 && y==0){
			break;
		}

		else if(x=>y){
			cout << y << " " << x << endl;
		}
		else if(x<y){
			cout << x << " " << y << endl;
		}
	}
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:36: error: expected ';' before ':' token
   10 |       cout << x << " " << y << endl:
      |                                    ^
      |                                    ;
Language: C++

#include<iostream>
using spacename std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'spacename'
    2 | using spacename 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:9: 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:34: 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)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

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

#include <studio.h>

int main(){
 int x, y, i;
 
 for (i = 0; 1; i++) {
  scanf("%d %d", &x, &y);
  if (x > y){
   printf("%d %d\n", y, x);
  } else {
   printf("%d %d\n", x, y);
  }
 }

 return 0;

}

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

#include <studio.h>

int main(){
 int x, y, i;
 
 for (i = 0; 1; i++) {
  scanf("%d %d", &x, &y);

  if(x==0 && y==0) break;

  if (x > y){
   printf("%d %d\n", y, x);
  } else {
   printf("%d %d\n", x, y);
  }
 }

 return 0;

}

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

#include <studio.h>

int main(){
 int x, y, i;
 
 for (i = 0; 1; i++){
  scanf("%d %d", &x, &y);

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

  if (x > y){
   printf("%d %d\n", y, x);
  } else {
   printf("%d %d\n", x, y);
  }
 }

 return 0;

}

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

#include <stdio.h>

int main(){
	
	int x, y, i = 1;
	
	while(1){
		scanf("%d", &x);
		scanf("%d", &y);
		if(x == 0&& y == 0)
			break;
		if(x <= y)
			printf("%d %d\n",x ,y);
		else
			printf("%d %d\n",y ,x)
		i++;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:47: error: expected ';' before 'i'
   15 |                         printf("%d %d\n",y ,x)
      |                                               ^
      |                                               ;
   16 |                 i++;
      |                 ~
Language: C++


#include<cstdio>
 
int main(){
 	int x, y;
 	while( 1 ){
	scanf("%d %d", &x, &y);
	if(x == 0 && y == 0) break;
	
	if( x < y){
		printf("%d %d", x, y);
	}else if{
		printf("%d %d", y, x);
	}
  return 0;
}

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

#include<cstdio>
 
int main(){

 	int x, y;
 	while( 1 ){
	scanf("%d %d", &x, &y);
	if(x == 0 && y == 0) break;
	
	if( x < y){
		printf("%d %d", x, y);
	}else if{
		printf("%d %d", y, x);
	}
	return 0;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected '(' before '{' token
   12 |         }else if{
      |                 ^
      |                 (
Language: C++




#include<cstdio>
 
int main(){

 	int x, y;
 	while( 1 ){
	scanf("%d %d", &x, &y);
	if(x == 0 && y == 0) 
 		{break;}
	
	if( x < y){
		printf("%d %d", x, y);
	}else if{
		printf("%d %d", y, x);
	}
	return 0;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: expected '(' before '{' token
   16 |         }else if{
      |                 ^
      |                 (
Language: C++




#include<cstdio>
 
int main(){

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         cin >> x >> y;
      |         ^~~
a.cc:16:17: error: expected '(' before '{' token
   16 |         }else if{
      |                 ^
      |                 (
Language: C++

#include<cstdio>
 
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:13:17: error: 'cout' was not declared in this scope
   13 |                 cout << x << " " << y <<endl;
      |                 ^~~~
a.cc:13:41: error: 'endl' was not declared in this scope
   13 |                 cout << x << " " << y <<endl;
      |                                         ^~~~
a.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout << y << " " << x <<endl;
      |                 ^~~~
a.cc:15:41: error: 'endl' was not declared in this scope
   15 |                 cout << y << " " << x <<endl;
      |                                         ^~~~
Language: C++



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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> x >> y;
      |     ^~~
a.cc:9:12: error: 'cout' was not declared in this scope
    9 |     if(x>y)cout << y << " "<<x<<endl;
      |            ^~~~
a.cc:9:33: error: 'endl' was not declared in this scope
    9 |     if(x>y)cout << y << " "<<x<<endl;
      |                                 ^~~~
a.cc:10:10: error: 'cout' was not declared in this scope
   10 |     else cout << x << " "<<y<<endl;
      |          ^~~~
a.cc:10:31: error: 'endl' was not declared in this scope
   10 |     else cout << x << " "<<y<<endl;
      |                               ^~~~
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:13:17: error: 'cout' was not declared in this scope
   13 |                 cout << x << " " << y <<endl;
      |                 ^~~~
a.cc:13:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:41: error: 'endl' was not declared in this scope
   13 |                 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:15:17: error: 'cout' was not declared in this scope
   15 |                 cout << y << " " << x <<endl;
      |                 ^~~~
a.cc:15:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:41: error: 'endl' was not declared in this scope
   15 |                 cout << y << " " << x <<endl;
      |                                         ^~~~
a.cc:15:41: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
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:12:19: error: 'cout' was not declared in this scope
   12 |         if(x < y) cout << x << " " << y <<endl;
      |                   ^~~~
a.cc:12:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:43: error: 'endl' was not declared in this scope
   12 |         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:13:14: error: 'cout' was not declared in this scope
   13 |         else cout << y << " " << x <<endl;
      |              ^~~~
a.cc:13:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:38: error: 'endl' was not declared in this scope
   13 |         else cout << y << " " << x <<endl;
      |                                      ^~~~
a.cc:13:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'