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

#include<iostream>
using namespace std;

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

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

#include<stdio.h>
int min(int a,int b){
if(a<=b)return a;
return b;
}
int max(int x,int y){
if(x<=y)return y;
return x;
}
in main(){
int a[3000][2];
int i=0,j=0;
do{
scanf("%d %d",&a[i][0],&a[i][1]);
i++;
}while(a[i][0]==0&&a[i][1]==0);
while(i==j){
printf("%d %d\n",min(a[j][0],a[j][1]),max(a[j][0],a[j][1]));
}
}

Compiler output:
a.cc:10:1: error: 'in' does not name a type; did you mean 'int'?
   10 | in main(){
      | ^~
      | int
Language: C++

#include<stdio.h>
int min(int a,int b){
if(a<=b)return a;
return b;
}
int max(int x,int y){
if(x<=y)return y;
return x;
}
in main(){
int a[3000][2];
int i=0,j=0;
do{
scanf("%d %d",&a[i][0],&a[i][1]);
i++;
}while(a[i][0]==0&&a[i][1]==0);
while(i==j){
printf("%d %d\n",min(a[j][0],a[j][1]),max(a[j][0],a[j][1]));
j++;
}
}

Compiler output:
a.cc:10:1: error: 'in' does not name a type; did you mean 'int'?
   10 | in main(){
      | ^~
      | int
Language: C++

#include <iostream>

int main()
{
using namespace std;

int x,y;

while(1)
{
cin>>x>>y;
count++;

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:12:1: error: 'count' was not declared in this scope
   12 | count++;
      | ^~~~~
Language: C++

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

int main(){
  int a[2];
  for(;;){
    cin >> a[0] >> a[1];
    sort(a,a+2);
    if(a[0] == 0 && a[1] == 0) break;
    cout << a[0] << " " << b[1] << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: 'b' was not declared in this scope
   11 |     cout << a[0] << " " << b[1] << endl;
      |                            ^
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>

using namespace std;

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

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

		if (x > y) cout << x << " " << y << endl;
		else cout << a << " " << b << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:30: error: 'a' was not declared in this scope
   16 |                 else cout << a << " " << b << endl;
      |                              ^
a.cc:16:42: error: 'b' was not declared in this scope
   16 |                 else cout << a << " " << b << endl;
      |                                          ^
Language: C++

#include<iostream>
#include<string.h>
int main(){
    int x, y;
    while(std::cin >> x >> y && x != 0 && y != 0){
        if(x > y){ swap(x, y); }
        std::cout << x << " " << y << std::endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: 'swap' was not declared in this scope
    6 |         if(x > y){ swap(x, y); }
      |                    ^~~~
a.cc:6:20: note: suggested alternatives:
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
In file included from /usr/include/c++/14/bits/exception_ptr.h:41,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: expected ')' before '!' token
    5 |   while(a != 0 && b! = 0){
      |        ~           ^
      |                    )
a.cc:5:22: error: expected primary-expression before '=' token
    5 |   while(a != 0 && b! = 0){
      |                      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> a >> b;
      |         ^~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << a << " " << b << endl;
      |         ^~~~
a.cc:15:34: error: 'endl' was not declared in this scope
   15 |         cout << a << " " << b << endl;
      |                                  ^~~~
Language: C++

import java.util.Scanner;

class Main{
     public static void main(String[] args){

        Scanner as = new Scanner(System.in);
       
        int x;
        int y;

       
           
           x = as.nextInt();
           y = as.nextInt();
           
           
           

        while(true){
           
           if(x==0 && y==0){
                 break;
    }
           x = as.nextInt();
           y = as.nextInt();
           
           
           if(x<y){
              System.out.println(x+" "+y);

             }
           else{
              System.out.println(y+" "+x);

             } 
       }
   
 }
 
}

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:4:12: error: expected ':' before 'static'
    4 |      public static void main(String[] args){
      |            ^~~~~~~
      |            :
a.cc:4:30: error: 'String' has not been declared
    4 |      public static void main(String[] args){
      |                              ^~~~~~
a.cc:4:39: error: expected ',' or '...' before 'args'
    4 |      public static void main(String[] args){
      |                                       ^~~~
a.cc:40:2: error: expected ';' after class definition
   40 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:9: error: 'Scanner' was not declared in this scope
    6 |         Scanner as = new Scanner(System.in);
      |         ^~~~~~~
a.cc:13:16: error: 'as' was not declared in this scope
   13 |            x = as.nextInt();
      |                ^~
a.cc:29:15: error: 'System' was not declared in this scope
   29 |               System.out.println(x+" "+y);
      |               ^~~~~~
a.cc:33:15: error: 'System' was not declared in this scope
   33 |               System.out.println(y+" "+x);
      |               ^~~~~~
Language: C++

# inlcude <iostream>

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

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | # inlcude <iostream>
      |   ^~~~~~~
      |   include
a.cc: In function 'int main()':
a.cc:6:22: error: 'cin' is not a member of 'std'
    6 |                 std::cin >> x >> y;
      |                      ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | # inlcude <iostream>
a.cc:10:30: error: 'cout' is not a member of 'std'
   10 |                         std::cout << y << " " << x << std::endl;
      |                              ^~~~
a.cc:10:30: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:60: error: 'endl' is not a member of 'std'
   10 |                         std::cout << y << " " << x << std::endl;
      |                                                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | # inlcude <iostream>
a.cc:12:30: error: 'cout' is not a member of 'std'
   12 |                         std::cout << x << " " << y << std::endl;
      |                              ^~~~
a.cc:12:30: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:60: error: 'endl' is not a member of 'std'
   12 |                         std::cout << x << " " << y << std::endl;
      |                                                            ^~~~
a.cc:12:60: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <queue>


using namespace std;
int main(){
	 int a[3000];
	 int b[3000];
	 
	 for(int i = 0; i < 3000; i++){
		 cin >> a[i] >> b[i];
		 
		 if (a[i] < b[i]){
			 cout << a[i] << b[i];
			 			 }
		 else if (a[i] > b[i]){
			 cout << b[i] << a[i];
			 }
		 else if(a[i]  == 0 && b[i] == 0){
			 break;
			 }
			 
			 
		 }
	 

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

#include<iostream>
using namespace std;

int main(void){
  int x, i=0;

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

Compiler output:
a.cc: In function 'int main()':
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(void){

    const int limitNum = 3000;
    int dataSetX[limitNum];
    int dataSetY[limitNum];
    
    for(int i = 0; i < limitNum; i++) {
        std::cin >> dataSetX[i] >> dataSetY[i];
        if(dataSetX == 0 && dataSetY[i] == 0) {
            break;
        }
    }
    
    for(int i = 0; i < limitNum; i++) {
        if(dataSetX[i] == 0 && dataSetY[i] == 0) {
            break;
        }
        
        if(dataSetX[i] < dataSetY[i) {
            std::cout << dataSetX[i] << " " << dataSetY[i] << std::endl;    
        } else {
            std::cout << dataSetY[i] << " " << dataSetX[i] << std::endl;
        }
        
    }
    

    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:36: error: expected ']' before ')' token
   22 |         if(dataSetX[i] < dataSetY[i) {
      |                                    ^
      |                                    ]
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
 
int main(){
   int x[2];
   while(1){
      cin >> x[0] >> x[1];
      if (x[0] == 0 && y[1] == 0) break;
      sort(x,x+2);
      cout << x[0] << " " << x[1] <<endl;
   }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: 'y' was not declared in this scope
    9 |       if (x[0] == 0 && y[1] == 0) break;
      |                        ^
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 << a << " " << b << endl;
}
}
#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<<a<<" "<<b<<endl;
	}
	return 0;
}

Compiler output:
a.cc:15:5: error: redefinition of 'int main()'
   15 | int main()
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
	int x, y;
	while (1){
		cin >> x, y;

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







	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
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 << y << x << endl;
		}
		else{
			cout << x << y << endl;
		}
		




	return 0;
}

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

#include<iostream>
using namespace std;
int main(){
int a,b,emp;
for(int i=1;;i++){
cin>>a>>b;
emp=a;
a=b;
b=emp;
cout<<a<<" "<<b<<<endl;}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected primary-expression before '<' token
   10 | cout<<a<<" "<<b<<<endl;}
      |                  ^
Language: C++

#include<iostream>
using namespace std;
void main()
{
int a,b;
while(true)
{
cin>>a>>b;
if(a == 0 && b== 0)breack;
if(a > b)cout<<b<<" "<<a<<endl;
else cout<<a<<" "<<b<<endl;
}
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:20: error: 'breack' was not declared in this scope
    9 | if(a == 0 && b== 0)breack;
      |                    ^~~~~~
Language: C++

#include<iostream>
using namespace std;
void main()
{
int a,b;
while(true){
cin>>a>>b;
if(a == 0 && b== 0)breack;
if(a > b)cout<<b<<" "<<a<<endl;
else cout<<a<<" "<<b<<endl;
}
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:20: error: 'breack' was not declared in this scope
    8 | if(a == 0 && b== 0)breack;
      |                    ^~~~~~
Language: C++

#include<iostream>
using namespace std;
void main()
{
int a,b;
while(true){
cin>>a>>b;
if(a == 0 && b== 0)break;
if(a > b)cout<<b<<" "<<a<<endl;
else cout<<a<<" "<<b<<endl;
}
}

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

#include<iostream>
using namespace std;
int main(){
int a,b,emp;
for(int i=1;;i++){
cin>>a>>b;
if(a>b){
emp=a;
a=b;
b=emp;
cout<<a<<" "<<b<<<endl;}
else cout<<a<<" "<<b<<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected primary-expression before '<' token
   11 | cout<<a<<" "<<b<<<endl;}
      |                  ^
a.cc:12:23: error: expected primary-expression before '<' token
   12 | else cout<<a<<" "<<b<<<endl;
      |                       ^
Language: C++

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

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

#include <iostream>
uisng namespace std;

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

Compiler output:
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:7:1: 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:14:5: error: redeclaration of 'int x'
   14 | int x=y;
      |     ^
a.cc:13:5: note: 'int x' previously declared here
   13 | int x=z;
      |     ^
a.cc:17:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 | 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:17:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 | 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(){
for(int i ; ; i++){
int x, y;
cin >> x >> y;
if(x==0 && y==0){
break;
}else{
if(x<=y){
int z;
int x=z;
int x=y;
int y=z;
}
cout << x << " " << y << endl;
}
return 0;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: redeclaration of 'int x'
   14 | int x=y;
      |     ^
a.cc:13:5: note: 'int x' previously declared here
   13 | int x=z;
      |     ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: redeclaration of 'int x'
   14 | int x = y;
      |     ^
a.cc:13:5: note: 'int x' previously declared here
   13 | int x = z;
      |     ^
Language: C++

import java.io.*;
import java.util.*;

public class case {
    public static void main(String[] args){
    Scanner scan = new Scanner(System.in);

        for(int i = 1;i <= 10000;i++){

        int x = scan.nextInt();
            if(x == 0){
                break;
            }
        System.out.println("case " + i + ": " + x);
        }
    }
}

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

#include<iostream>
using namespace std;

int main()
{
    int i;
    for(i=0;i<1000;i++){
        cout<<"Hello World"<<endl;
    }
    return 0;
}
#include <iostream>
using namespace std;

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

Compiler output:
a.cc:15:5: error: redefinition of 'int main()'
   15 | int main()
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main()
      |     ^~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{

int x,y;

while(1){
    cin >> x >> y;

if( x > y )
{

cout << y << x << endl;

}

else
{

cout << x << y << endl;

}

}

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


return 0;

}

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

#include <iostream>

using namespace std;

int main()
{

int x,y;

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

if( x > y )
{

cout << y << x << endl;

}

else
{

cout << x << y << endl;

}

}break;

return 0;

}

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

#include <iostream>
using namespace std;

int main()
{
int i,x,y;
for(i=0;cin >> x >> y && x ==0 && y==0 ;i++)
{
if(x>y)
cout << y << x <<endl:
else
cout << x << y << endl;
}
return 0;
}

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

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

int main()
{
while(cin >> x >> y,x>0 || y>0)
{
cout << min(x,y) << max(x,y) << endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'x' was not declared in this scope
    7 | while(cin >> x >> y,x>0 || y>0)
      |              ^
a.cc:7:19: error: 'y' was not declared in this scope
    7 | while(cin >> x >> y,x>0 || y>0)
      |                   ^
Language: C++

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

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

#include<iostream>
using namespace std;
int main( ){
  int a,b;
  while( 1 ){
    cin >> a >> b;
    if( a+b=0 )break;
    if( a > b ){
      cout << b << " " << a;
    }else{
      cout << a << " " << b;
    }
  }
  return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: lvalue required as left operand of assignment
    7 |     if( a+b=0 )break;
      |         ~^~
Language: C++

#include<iostream>

using namespace std;

int main(){
	
	int x[3000] = { 0 };
	int y[3000] = { 0 };
	int bank;

	for (int i = 0; i < 3000; i++){

		cin >> x[i];
		cin >> y[i];
		if (x[i] == 0 && y[i] == 0){
			for (int i = 0; i < 3000; i++){

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

				if (x[i]>y[i]){
					bank = x[i];
					x[i] = y[i];
					y[i] = x[i];
				}

					cout << x[i] << " " << y[i] << endl;
				}

			}
		}

	}

	return 0;
}

Compiler output:
a.cc:36:9: error: expected unqualified-id before 'return'
   36 |         return 0;
      |         ^~~~~~
a.cc:37:1: error: expected declaration before '}' token
   37 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

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 << nndl ;
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:50: error: 'nndl' was not declared in this scope
   14 |                         cout << b << " " << a << nndl ;
      |                                                  ^~~~
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 {
                   cout << y << " " << x << endl;
               }
       }
        
    
 
    return 0;
    
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> x >> y ;
      |         ^~~
a.cc:13:16: 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:20: error: 'cout' was not declared in this scope
   15 |                    cout << y << " " << x << endl;
      |                    ^~~~
a.cc:15:45: error: 'endl' was not declared in this scope
   15 |                    cout << y << " " << x << endl;
      |                                             ^~~~
Language: C++

#include<stdio.h>

int main(){
	int a[3000],b[3000];
	int i=0;
	while(1){
		scanf("%d %d", &a[i], &b[i]);
		if(a==0 && b==0)break;
		if(b < a){
			int tmp = a;
			a = b;
			b = tmp;
		}
		printf("%d %d\n", a[i], b[i]);
		i = i + 1;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   10 |                         int tmp = a;
      |                                   ^
      |                                   |
      |                                   int*
a.cc:11:27: error: invalid array assignment
   11 |                         a = b;
      |                         ~~^~~
a.cc:12:27: error: incompatible types in assignment of 'int' to 'int [3000]'
   12 |                         b = tmp;
      |                         ~~^~~~~
Language: C++

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

int x[2];

int main() {
  while(1) {
    cin >> x[0] >> x[1];
    if(x[0] == 0 && x[1] == 0) break;
    sort(x,x+2);
    cout<<x[0]<<" "<<a[1]<< endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'a' was not declared in this scope
   11 |     cout<<x[0]<<" "<<a[1]<< endl;
      |                      ^
Language: C++

#include<bits/stdc++.h>
#define ll long long int
#define FOR(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++)
#define REP(i,n) FOR(i,0,n)
#define REP1(i,n) FOR(i,1,n)
using namespace std;

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

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

#include<iostream>
using namespace std;

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'i' was not declared in this scope
    6 |  for ( i = 0; ; i++){
      |        ^
a.cc:8:8: error: expected ';' before '(' token
    8 |   break ( x = 0 && y = 0 )
      |        ^~
      |        ;
a.cc:8:17: error: lvalue required as left operand of assignment
    8 |   break ( x = 0 && y = 0 )
      |               ~~^~~~
a.cc:11:5: error: 'elce' was not declared in this scope
   11 |   } elce {
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before '(' token
    8 |   break ( x = 0 && y = 0;)
      |        ^~
      |        ;
a.cc:8:17: error: lvalue required as left operand of assignment
    8 |   break ( x = 0 && y = 0;)
      |               ~~^~~~
a.cc:8:25: error: expected ')' before ';' token
    8 |   break ( x = 0 && y = 0;)
      |         ~               ^
      |                         )
a.cc:8:26: error: expected primary-expression before ')' token
    8 |   break ( x = 0 && y = 0;)
      |                          ^
a.cc:11:5: error: 'elce' was not declared in this scope
   11 |   } elce {
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before '(' token
    8 |   break ( x = 0 && y = 0 )
      |        ^~
      |        ;
a.cc:8:17: error: lvalue required as left operand of assignment
    8 |   break ( x = 0 && y = 0 )
      |               ~~^~~~
a.cc:11:5: error: 'elce' was not declared in this scope
   11 |   } elce {
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before '(' token
    8 |   break ( x == 0 && y == 0 )
      |        ^~
      |        ;
a.cc:8:29: error: expected ';' before 'if'
    8 |   break ( x == 0 && y == 0 )
      |                             ^
      |                             ;
    9 |   if ( x < y ){
      |   ~~                         
a.cc:11:5: error: 'elce' was not declared in this scope
   11 |   } elce {
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
 int x, y, i;
 for ( i = 0; ; i++){
  cin >> x >> y;
  break ( x == 0 && y == 0 )
  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:8: error: expected ';' before '(' token
    8 |   break ( x == 0 && y == 0 )
      |        ^~
      |        ;
a.cc:8:29: error: expected ';' before 'if'
    8 |   break ( x == 0 && y == 0 )
      |                             ^
      |                             ;
    9 |   if ( x < y ){
      |   ~~                         
a.cc:11:5: error: 'else' without a previous 'if'
   11 |   } else {
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
 int x, y, i;
 for ( i = 0; ; i++){
  cin >> x >> y;
  break ( x == 0 && y == 0 )
  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:8: error: expected ';' before '(' token
    8 |   break ( x == 0 && y == 0 )
      |        ^~
      |        ;
a.cc:8:29: error: expected ';' before 'if'
    8 |   break ( x == 0 && y == 0 )
      |                             ^
      |                             ;
    9 |   if ( x <= y ){
      |   ~~                         
a.cc:11:5: error: 'else' without a previous 'if'
   11 |   } else {
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
 int x, y, i;
 for ( i = 0; ; i++){
  cin >> x >> y;
  break ( x == 0 && y == 0 )
  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:8: error: expected ';' before '(' token
    8 |   break ( x == 0 && y == 0 )
      |        ^~
      |        ;
a.cc:8:29: error: expected ';' before 'if'
    8 |   break ( x == 0 && y == 0 )
      |                             ^
      |                             ;
    9 |   if ( x <= y; ){
      |   ~~                         
a.cc:9:16: error: expected primary-expression before ')' token
    9 |   if ( x <= y; ){
      |                ^
a.cc:11:5: error: 'else' without a previous 'if'
   11 |   } else {
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
 int x, y, i;
 for ( i = 0; ; i++){
  cin >> x >> y;
  break ( x == 0 && y == 0 );
  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:8: error: expected ';' before '(' token
    8 |   break ( x == 0 && y == 0 );
      |        ^~
      |        ;
Language: C++

#include<iostream>
using namespace std;

int main(){
 int x, y, i;
 for ( i = 0; ; i++){
  cin >> x >> y;
  break( x == 0 && y == 0 );
  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:8: error: expected ';' before '(' token
    8 |   break( x == 0 && y == 0 );
      |        ^
      |        ;
Language: C++

#include <iostream>
using namespace std;

void swap(int &a, int &b){
	int temp;
	temp=a;
	a=b;
	b=tem;
}

int main() {
	int x,y;
	for(int i; i<10000;i++){
		std::cin>> x>>y ;
		if(x==0 && y==0) break;
		if (y>x) swap(x,y);
		std::cout << x<<"  "<<y <<std::endl;

	}
	return 0;
}

Compiler output:
a.cc: In function 'void swap(int&, int&)':
a.cc:8:11: error: 'tem' was not declared in this scope; did you mean 'temp'?
    8 |         b=tem;
      |           ^~~
      |           temp
Language: C++

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

	}
	return 0;
}

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

#include(iostream)
using namespace std;

int main()???
int x[3000],i;
while(1)???
if(x==0 && y==0) break;
cin>>x[i]>>x[i+1];
i+=2;
???
for(int j=0;j<i;j=+2)
cou<<x[j]<<'' ''<<x[j+1]<<endl;
return 0;
???

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc:12:12: error: empty character constant
   12 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      |            ^~
a.cc:12:15: error: empty character constant
   12 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      |               ^~
a.cc:4:11: error: expected initializer before '?' token
    4 | int main()???
      |           ^
a.cc:6:1: error: expected unqualified-id before 'while'
    6 | while(1)???
      | ^~~~~
a.cc:8:1: error: 'cin' does not name a type
    8 | cin>>x[i]>>x[i+1];
      | ^~~
a.cc:9:1: error: 'i' does not name a type
    9 | i+=2;
      | ^
a.cc:10:1: error: expected unqualified-id before '?' token
   10 | ???
      | ^
a.cc:11:13: error: 'j' does not name a type
   11 | for(int j=0;j<i;j=+2)
      |             ^
a.cc:11:17: error: 'j' does not name a type
   11 | for(int j=0;j<i;j=+2)
      |                 ^
a.cc:13:1: error: expected unqualified-id before 'return'
   13 | return 0;
      | ^~~~~~
a.cc:14:1: error: expected unqualified-id before '?' token
   14 | ???
      | ^
Language: C++

#include(iostream)
using namespace std;

int main(){
int x[3000],i;
while(1){
if(x==0 && y==0) break;
cin>>x[i]>>x[i+1];
i+=2;
}
for(int j=0;j<i;j+=2)
cou<<x[j]<<'' ''<<x[j+1]<<endl;
return 0;
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc:12:12: error: empty character constant
   12 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      |            ^~
a.cc:12:15: error: empty character constant
   12 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      |               ^~
a.cc: In function 'int main()':
a.cc:7:12: error: 'y' was not declared in this scope
    7 | if(x==0 && y==0) break;
      |            ^
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin>>x[i]>>x[i+1];
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(iostream)
a.cc:12:1: error: 'cou' was not declared in this scope
   12 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      | ^~~
Language: C++

#include(iostream)
using namespace std;

int main(){
int x[3000],i;
while(1){
if(x==0 && y==0) break;
cin>>x[i]>>x[i+1];
if(x[i]>x[i+1])
int t=x[i];
x[i]=x[i+1];
x[i+1]=t;
i+=2;
}
for(int j=0;j<i;j+=2)
cou<<x[j]<<'' ''<<x[j+1]<<endl;
return 0;
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc:16:12: error: empty character constant
   16 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      |            ^~
a.cc:16:15: error: empty character constant
   16 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      |               ^~
a.cc: In function 'int main()':
a.cc:7:12: error: 'y' was not declared in this scope
    7 | if(x==0 && y==0) break;
      |            ^
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin>>x[i]>>x[i+1];
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(iostream)
a.cc:12:8: error: 't' was not declared in this scope
   12 | x[i+1]=t;
      |        ^
a.cc:16:1: error: 'cou' was not declared in this scope
   16 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      | ^~~
Language: C++

#include(iostream)
using namespace std;

int main(){
int x[3000],i;
while(1){
if(x==0 && y==0) break;
cin>>x[i]>>x[i+1];
if(x[i]>x[i+1]){
int t=x[i];
x[i]=x[i+1];
x[i+1]=t;
}
i+=2;
}
for(int j=0;j<i;j+=2)
cou<<x[j]<<'' ''<<x[j+1]<<endl;
return 0;
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc:17:12: error: empty character constant
   17 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      |            ^~
a.cc:17:15: error: empty character constant
   17 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      |               ^~
a.cc: In function 'int main()':
a.cc:7:12: error: 'y' was not declared in this scope
    7 | if(x==0 && y==0) break;
      |            ^
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin>>x[i]>>x[i+1];
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(iostream)
a.cc:17:1: error: 'cou' was not declared in this scope
   17 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      | ^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
int x[3000],i;
while(1){
if(x==0 && y==0) break;
cin>>x[i]>>x[i+1];
if(x[i]>x[i+1]){
int t=x[i];
x[i]=x[i+1];
x[i+1]=t;
}
i+=2;
}
for(int j=0;j<i;j+=2)
cou<<x[j]<<'' ''<<x[j+1]<<endl;
return 0;
}

Compiler output:
a.cc:17:12: error: empty character constant
   17 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      |            ^~
a.cc:17:15: error: empty character constant
   17 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      |               ^~
a.cc: In function 'int main()':
a.cc:7:12: error: 'y' was not declared in this scope
    7 | if(x==0 && y==0) break;
      |            ^
a.cc:17:1: error: 'cou' was not declared in this scope
   17 | cou<<x[j]<<'' ''<<x[j+1]<<endl;
      | ^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
int x[3000],i;
while(1){
cin>>x[i]>>x[i+1];
if(x[i]==0 && x[i+1]==0) break;
if(x[i]>x[i+1]){
int t=x[i];
x[i]=x[i+1];
x[i+1]=t;
}
i+=2;
}
for(int j=0;j<i;j+=2)
cout<<x[j]<<'' ''<<x[j+1]<<endl;
return 0;
}

Compiler output:
a.cc:17:13: error: empty character constant
   17 | cout<<x[j]<<'' ''<<x[j+1]<<endl;
      |             ^~
a.cc:17:16: error: empty character constant
   17 | cout<<x[j]<<'' ''<<x[j+1]<<endl;
      |                ^~
a.cc: In function 'int main()':
a.cc:17:15: error: expected ';' before '\x0'
   17 | cout<<x[j]<<'' ''<<x[j+1]<<endl;
      |               ^~~
      |               ;
Language: C++

#include<iostream>
using namespace std;

int main(){
int x[100],i=0;
while(1){
int x,y;
cin>>x>>y;
x[i]=x;
x[i+1]=y;
if(x[i]==0 && x[i+1]==0) break;
i+=2;
}
for(int j=0;j<=i;j+=2){
cout<<x[j]<<x[j]<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:2: error: invalid types 'int[int]' for array subscript
    9 | x[i]=x;
      |  ^
a.cc:10:2: error: invalid types 'int[int]' for array subscript
   10 | x[i+1]=y;
      |  ^
a.cc:11:5: error: invalid types 'int[int]' for array subscript
   11 | if(x[i]==0 && x[i+1]==0) break;
      |     ^
a.cc:11:16: error: invalid types 'int[int]' for array subscript
   11 | if(x[i]==0 && x[i+1]==0) break;
      |                ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int x[300],y[300],i=0;
  while(1){
    cin>>x[i]>>y[i];
    if(x[i]==0 && y[i]==0) break;
    if(x[i]>y[i]){
      int t=x[i];
      x[i]=y[i];
      y[i]=t;
    }
    i++;
    cout<<x[j]<<" "<<y[j]<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: 'j' was not declared in this scope
   15 |     cout<<x[j]<<" "<<y[j]<<endl;
      |             ^
Language: C++

#include<cstdio>
#define N 3000
struct set{
    int x;
    int y;
}
int main(){
    struct set p[N];
    int idx=-1;
    do{
        idx++;
        scanf("%d%d",&p[idx].x,&p[idx].y);
    }while(p[idx]!=0 || p[idx]!=0);
    for(int i=0;i<idx;i++){
        if(p[i].x>=p[i].y) printf("%d %d\n",p[i].y,p[i].x);
        else printf("%d %d\n",p[i].x,p[i].y);
}
    return 0;
}

Compiler output:
a.cc:6:2: error: expected ';' after struct definition
    6 | }
      |  ^
      |  ;
a.cc: In function 'int main()':
a.cc:13:18: error: no match for 'operator!=' (operand types are 'set' and 'int')
   13 |     }while(p[idx]!=0 || p[idx]!=0);
      |            ~~~~~~^~~
      |                 |  |
      |                 |  int
      |                 set
a.cc:13:31: error: no match for 'operator!=' (operand types are 'set' and 'int')
   13 |     }while(p[idx]!=0 || p[idx]!=0);
      |                         ~~~~~~^~~
      |                              |  |
      |                              |  int
      |                              set
Language: C++

#include<cstdio>
#define N 3000
struct set{
    int x;
    int y;
}
int main(){
    struct set p[N];
    int idx=-1;
    do{
        idx++;
        scanf("%d%d",&p[idx].x,&p[idx].y);
    }while(p[idx].x!=0 || p[idx].y!=0);
    for(int i=0;i<idx;i++){
        if(p[i].x>=p[i].y) printf("%d %d\n",p[i].y,p[i].x);
        else printf("%d %d\n",p[i].x,p[i].y);
}
    return 0;
}

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

import java.util.Scanner;

class Nyuryoku{
  public static void main(String args[]){
    
    Scanner scan = new Scanner(System.in);
    int num1 = scan.nextInt();
    int num2 = scan.nextInt();
    while(!(num1==0||num2==0)){
      num1 = scan.nextInt();
      num2 = scan.nextInt();
      if(num1<num2)System.out.println(num1+" "+num2);
      else if(num2<=num1)System.out.println(num2+" "+num1);
    }
  } 
}

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:4:9: error: expected ':' before 'static'
    4 |   public static void main(String args[]){
      |         ^~~~~~~
      |         :
a.cc:4:27: error: 'String' has not been declared
    4 |   public static void main(String args[]){
      |                           ^~~~~~
a.cc:16:2: error: expected ';' after class definition
   16 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Nyuryoku::main(int*)':
a.cc:6:5: error: 'Scanner' was not declared in this scope
    6 |     Scanner scan = new Scanner(System.in);
      |     ^~~~~~~
a.cc:7:16: error: 'scan' was not declared in this scope
    7 |     int num1 = scan.nextInt();
      |                ^~~~
a.cc:12:20: error: 'System' was not declared in this scope
   12 |       if(num1<num2)System.out.println(num1+" "+num2);
      |                    ^~~~~~
a.cc:13:26: error: 'System' was not declared in this scope
   13 |       else if(num2<=num1)System.out.println(num2+" "+num1);
      |                          ^~~~~~
Language: C++

#include<iostream>

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

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

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

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

#include<studio.h>
 int main(){
      int a,b,c;
     while(1){
     scanf("%d %d",&a,&b);
     if(a==b&a==0)break;
      ifelse(a<b){
     printf("%d %d"a,b);
}
     else{
     printf("%d %d"b,a);
}

return0;
}

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

#include<studio.h>
 int main(){
      int a,b,c;
     while(1){
     scanf("%d %d",&a,&b);
     if(a==b&a==0)break;
      ifelse(a<b){
     printf("%d %d"a,b);
}
     else{
     printf("%d %d"b,a);
}
}
return0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'ifelse' was not declared in this scope
    7 |       ifelse(a<b){
      |       ^~~~~~
a.cc:10:6: error: 'else' without a previous 'if'
   10 |      else{
      |      ^~~~
a.cc:11:13: error: unable to find string literal operator 'operator""b' with 'const char [6]', 'long unsigned int' arguments
   11 |      printf("%d %d"b,a);
      |             ^~~~~~~~
a.cc:14:1: error: 'return0' was not declared in this scope
   14 | return0;
      | ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'ifelse' was not declared in this scope
    7 |       ifelse(a<b){
      |       ^~~~~~
a.cc:10:6: error: 'else' without a previous 'if'
   10 |      else{
      |      ^~~~
a.cc:11:13: error: unable to find string literal operator 'operator""b' with 'const char [6]', 'long unsigned int' arguments
   11 |      printf("%d %d"b,a);
      |             ^~~~~~~~
a.cc:14:1: error: 'return0' was not declared in this scope
   14 | return0;
      | ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int x, y, t;
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:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

list=[]
x=1
y=1
while  (len(list)-1) < 3000 or (x+y)<0:
    x,y = map(int,input().split())
    if x > y:
        l= [y,x]
    else:
        l=[x,y]
    list.append(l)


for i in range(len(list)-1):
    print(list[i])

Compiler output:
a.cc:1:1: error: 'list' does not name a type
    1 | list=[]
      | ^~~~