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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected primary-expression before ')' token
    5 | for ()
      |      ^
a.cc:19:1: error: expected primary-expression before '}' token
   19 | }
      | ^
a.cc:18:2: error: expected ';' before '}' token
   18 | }
      |  ^
      |  ;
   19 | }
      | ~ 
a.cc:19:1: error: expected primary-expression before '}' token
   19 | }
      | ^
a.cc:18:2: error: expected ')' before '}' token
   18 | }
      |  ^
      |  )
   19 | }
      | ~ 
a.cc:5:5: note: to match this '('
    5 | for ()
      |     ^
a.cc:19:1: error: expected primary-expression before '}' token
   19 | }
      | ^
a.cc: At global scope:
a.cc:20:1: error: expected unqualified-id before 'return'
   20 | return 0;
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected primary-expression before ';' token
    5 | for (;;;)
      |        ^
a.cc:5:8: error: expected ')' before ';' token
    5 | for (;;;)
      |     ~  ^
      |        )
a.cc:5:9: error: expected primary-expression before ')' token
    5 | for (;;;)
      |         ^
a.cc: At global scope:
a.cc:20:1: error: expected unqualified-id before 'return'
   20 | return 0;
      | ^~~~~~
Language: C++

cin >> x >> y >> endl;

if( x > y){

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

}else{

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

}

return 0;

Compiler output:
a.cc:1:1: error: 'cin' does not name a type
    1 | cin >> x >> y >> endl;
      | ^~~
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if( x > y){
      | ^~
a.cc:7:2: error: expected unqualified-id before 'else'
    7 | }else{
      |  ^~~~
a.cc:13:1: error: expected unqualified-id before 'return'
   13 | return 0;
      | ^~~~~~
Language: C++

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

while(cin >> x >>y,x){ 

if(x == 0 && y == 0){
return 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:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | 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 << 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++

#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: 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++

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


int main(void){

char tmp[4];
int num[2];
while(true){
        cin.getline(tmp,sizeof(tmp));
        num[0] = atoi(&tmp[0]);
        num[1] = atoi(&tmp[2]);

        if(num[0] == 0 && num[1] == 0) break;
        else if(num[0] >= num[1]) cout << num[0] << " " << num[1] << "\n";
        else cout << num[1] << " " << num[0] << "\n";
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin.getline(tmp,sizeof(tmp));
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <stdlib.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:16:35: error: 'cout' was not declared in this scope
   16 |         else if(num[0] >= num[1]) cout << num[0] << " " << num[1] << "\n";
      |                                   ^~~~
a.cc:16:35: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:14: error: 'cout' was not declared in this scope
   17 |         else cout << num[1] << " " << num[0] << "\n";
      |              ^~~~
a.cc:17:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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


int main(void){

char tmp[4];
int num[30000];
int counter = 0;
while(true){
        cin.getline(tmp,sizeof(tmp));
        num[counter] = atoi(&tmp[0]);
        num[counter + 1] = atoi(&tmp[2]);
        if(num[counter] == 0 && num[counter + 1] == 0) break;
        counter += 2;
}

for(int i = 0; i < counter; i += 2){
        if(num[i] >= num[i+1]) cout << num[i] << " " << num[i+1] << "\n";
        else cout << num[i+1] << " " << num[i] << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope
   12 |         cin.getline(tmp,sizeof(tmp));
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <stdlib.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:20:32: error: 'cout' was not declared in this scope
   20 |         if(num[i] >= num[i+1]) cout << num[i] << " " << num[i+1] << "\n";
      |                                ^~~~
a.cc:20:32: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:14: error: 'cout' was not declared in this scope
   21 |         else cout << num[i+1] << " " << num[i] << "\n";
      |              ^~~~
a.cc:21:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:6:15: note: to match this '{'
    6 | int main(void){
      |               ^
Language: C++

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

int main(void){

char tmp[4];
int num[30000];
int counter = 0;
while(true){
        cin.getline(tmp,sizeof(tmp));
        num[counter] = atoi(&tmp[0]);
        num[counter + 1] = atoi(&tmp[2]);
        if(num[counter] == 0 && num[counter + 1] == 0) break;
        counter += 2;
}

for(int i = 0; i < counter; i += 2){
        if(num[i] >= num[i+1]) cout << num[i] << " " << num[i+1] << "\n";
        else cout << num[i+1] << " " << num[i] << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin.getline(tmp,sizeof(tmp));
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <stdlib.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:19:32: error: 'cout' was not declared in this scope
   19 |         if(num[i] >= num[i+1]) cout << num[i] << " " << num[i+1] << "\n";
      |                                ^~~~
a.cc:19:32: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:14: error: 'cout' was not declared in this scope
   20 |         else cout << num[i+1] << " " << num[i] << "\n";
      |              ^~~~
a.cc:20:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:5:15: note: to match this '{'
    5 | int main(void){
      |               ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int x = m , y = n;
cin >> x >> y;

while( ! x = y = 0){
cout << "y x" << endl;
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'm' was not declared in this scope
    5 | int x = m , y = n;
      |         ^
a.cc:6:13: error: 'y' was not declared in this scope
    6 | cin >> x >> y;
      |             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'm' was not declared in this scope
    5 | int x = m , y = n;
      |         ^
a.cc:6:13: error: 'y' was not declared in this scope
    6 | cin >> x >> y;
      |             ^
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else while( y < x ){
      | ^~~~
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else while( x = y != 0 ){
      | ^~~~
a.cc:17:1: error: 'else' without a previous 'if'
   17 | else if( x = y = 0 ) break;
      | ^~~~
a.cc:17:22: error: break statement not within loop or switch
   17 | else if( x = y = 0 ) break;
      |                      ^~~~~
a.cc: At global scope:
a.cc:20:1: error: expected unqualified-id before 'return'
   20 | return 0;
      | ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

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

return 0;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else while( y < x ){
      | ^~~~
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else while( x = y != 0 ){
      | ^~~~
a.cc:17:1: error: 'else' without a previous 'if'
   17 | else if( x = y = 0 ) break;
      | ^~~~
a.cc:17:22: error: break statement not within loop or switch
   17 | else if( x = y = 0 ) break;
      |                      ^~~~~
a.cc: At global scope:
a.cc:20:1: error: expected unqualified-id before 'return'
   20 | return 0;
      | ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
    /*
cout<<"Hello World"<<endl;

    int x;
    cin>> x;
    cout<< x*x*x <<endl;

int a;
int b;
cin>>a>>b;
cout<<a*b<<" "<<2*a+2*b<<endl;

    int a;
    int b;
    cin>>a>>b;
    if (a<b){
        cout<< "a < b" <<endl;
    }else if(a>b){
        cout<<"a > b" <<endl;
    }else if(a==b){
        cout<<"a == b"<<endl;
    }else{

    }
    int a;
    int b;
    int c;
    cin>>a>>b>>c;
    if (a<b&&b<c){
        cout<<"Yes"<<endl;
    }else {
        cout<<"No"<<endl;
    }

    int a;
    int b;
    int c;
    int d;
    cin>>a>>b>>c;
    if(a>b){
    d=b;
    b=a;
    a=d;
    }
    if(b>c){
    d=c;
    c=b;
    b=d;
    }
    if(a>b){
    d=b;
    b=a;
    a=d;
    }
    cout<<a<<" "<<b<<" "<<c<<endl;

    int W;
    int H;
    int x;
    int y;
    int r;
    int f1;
    int f2;
    int f3;
    int f4;
    cin>>W>>H>>x>>y>>r;

    bool t = false;

    if (x-r>=0){
        if(t) cout<<"1Yes"<<endl;
        f1=1;
    }else if (x-r<0){
        if(t) cout<<"1No"<<endl;
        f1=0;
    }
    if (y+r<=H){
        if(t) cout<<"2Yes"<<endl;
        f2=1;
    }else if (y+r>H){
        if(t) cout<<"2No"<<endl;
        f2=0;
    }
    if (x+r<=W){
        if(t) cout<<"3Yes"<<endl;
        f3=1;
    }else if (x+r>W){
        if(t) cout<<"3No"<<endl;
        f3=0;
    }
    if (y-r>=0){
        if(t) cout<<"4Yes"<<endl;
        f4=1;
    }else if (y-r<0){
        if(t) cout<<"4No"<<endl;
        f4=0;
    }
    if (f1==1&&f2==1&&f3==1&&f3==1&&f4==1){
        cout<<"Yes"<<endl;
    }else {
        cout<<"No"<<endl;
    }

    int i;

    for (i=1;i<=1000;i++){
        cout<<"Hello World"<<endl;
    }
*/
	int x;
	int y;
	//int a[10];
	//int b[10];
	while (1){
		cin>>x>>y;
		if(x==0&&y==0){
			break;
		}
		else if(x<y){
			cout<<x<<" "<<y<<endl;
		}else{
			cout<<y<<" "<<x<<endl;
		}

	}



	/*
	int a[10];

	for(int i=0; i<10;i++){
		a[i]=0;
	}
	for(int i=0; i<10;i++){
		cout<<a[i]<<endl;
	}

*/

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected '}' before 'else'
    8 |     else if(a > b){
      |     ^~~~
a.cc:7:25: note: to match this '{'
    7 |     if(a == 0 && b == 0){
      |                         ^
a.cc: At global scope:
a.cc:15:4: error: expected unqualified-id before 'return'
   15 |    return 0;
      |    ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected unqualified-id before ';' token
    5 |     int a, b,;
      |              ^
a.cc:6:11: error: expected primary-expression before ')' token
    6 |     while(){
      |           ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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 if(a > b){
      cout << b << " " << a << endl;
     }
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected unqualified-id before ';' token
    5 |     int a, b,;
      |              ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected unqualified-id before ';' token
    5 |     int a, b,;
      |              ^
a.cc:6:11: error: expected primary-expression before ')' token
    6 |     while(){
      |           ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected unqualified-id before ';' token
    5 |     int x, y,;
      |              ^
a.cc:6:11: error: expected primary-expression before ')' token
    6 |     while(){
      |           ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected unqualified-id before ';' token
    5 |     int x, y,;
      |              ^
a.cc:6:11: error: expected primary-expression before ')' token
    6 |     while(){
      |           ^
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;
     }
    }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected unqualified-id before ';' token
    5 |     int x, y,;
      |              ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected unqualified-id before ';' token
    5 |     int x, y,;
      |              ^
a.cc:6:11: error: expected primary-expression before ')' token
    6 |     while(){
      |           ^
a.cc:11:18: error: expected ';' before '{' token
   11 |      }else(x > y){
      |                  ^
      |                  ;
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(x > y){
      cout << y << " " << x << endl;
     }
    }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected unqualified-id before ';' token
    5 |     int x, y,;
      |              ^
a.cc:11:18: error: expected ';' before '{' token
   11 |      }else(x > y){
      |                  ^
      |                  ;
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(x > y){
      cout << y << " " << x << endl;
     }
    }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before '{' token
   11 |      }else(x > y){
      |                  ^
      |                  ;
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <stdio.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%d %d\n", &x, &y);
      |         ^~~~~
a.cc:10:13: error: 'printf' was not declared in this scope
   10 |             printf("%d %d\n", x, y);
      |             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #Include <stdio.h>
a.cc:12:13: error: 'printf' was not declared in this scope
   12 |             printf("%d %d\n", y, x);
      |             ^~~~~~
a.cc:12:13: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc:8:9: warning: missing terminating " character
    8 |   scanf("%d %d, &x, &y);
      |         ^
a.cc:8:9: error: missing terminating " character
    8 |   scanf("%d %d, &x, &y);
      |         ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: expected primary-expression before 'if'
    9 |   if ( x < y) {
      |   ^~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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

Compiler output:
a.cc:8:11: warning: missing terminating " character
    8 |     scanf("%d %d, &x, &y);
      |           ^
a.cc:8:11: error: missing terminating " character
    8 |     scanf("%d %d, &x, &y);
      |           ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: expected primary-expression before 'if'
    9 |     if ( x < y) {
      |     ^~
Language: C++

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

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

i = 0
swap = Array.new
data = Array.new

while (str = gets.chomp) != '0 0'
    swap = str.split(' ').sort
    data[i] = swap
    i += 1
end

data.each do |status|
    print status[0].to_i, " ", status[1].to_i,"\n"
end

Compiler output:
a.cc:5:29: warning: multi-character character constant [-Wmultichar]
    5 | while (str = gets.chomp) != '0 0'
      |                             ^~~~~
a.cc:1:1: error: 'i' does not name a type
    1 | i = 0
      | ^
Language: C++

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

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

#include<iostream>
using namespace std;

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'while'
    6 | while(x==y==0){
      | ^~~~~
Language: C++

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'while'
    6 | while(1){
      | ^~~~~
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: In function 'int main()':
a.cc:6:1: error: expected initializer before 'while'
    6 | while(1){
      | ^~~~~
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: In function 'int main()':
a.cc:6:1: error: expected initializer before 'while'
    6 | while(1){
      | ^~~~~
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: In function 'int main()':
a.cc:6:1: error: expected initializer before 'while'
    6 | while(1){
      | ^~~~~
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: In function 'int main()':
a.cc:7:1: error: expected initializer before 'while'
    7 | while(1){
      | ^~~~~
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: In function 'int main()':
a.cc:13:22: error: expected ';' before ':' token
   13 | cout<<y<<" "<<x<<endl:
      |                      ^
      |                      ;
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: In function 'int main()':
a.cc:13:22: error: expected ';' before ':' token
   13 | cout<<y<<" "<<x<<endl:
      |                      ^
      |                      ;
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: In function 'int main()':
a.cc:13:30: error: expected ';' before ':' token
   13 | cout << y << " " << x << endl:
      |                              ^
      |                              ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'scanf' was not declared in this scope
    6 |                 scanf("%d %d", &x, &y);
      |                 ^~~~~
a.cc:7:27: error: 'printf' was not declared in this scope
    7 |                 if (x < y)printf("%d%d\n", x, y);
      |                           ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
a.cc:8:33: error: 'printf' was not declared in this scope
    8 |                 else if (x > y) printf("%d %d\n", y, x);
      |                                 ^~~~~~
a.cc:8:33: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:9:44: error: 'printf' was not declared in this scope
    9 |                 else if (x == y && x != 0) printf("%d %d\n", x, y);
      |                                            ^~~~~~
a.cc:9:44: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

while True:
    (x, y) = [int(i) for i in input().split()]
    print(x, y)
    if x == 0 and y == 0:
        break
    if x >= y:
        print(y, x)
    else:
        print(x, y)

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while True:
      | ^~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	ibt x,y ;
	
    while(1){
	   cin>>x>>y ;
	   if(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:5:9: error: 'ibt' was not declared in this scope; did you mean 'int'?
    5 |         ibt x,y ;
      |         ^~~
      |         int
a.cc:8:17: error: 'x' was not declared in this scope
    8 |            cin>>x>>y ;
      |                 ^
a.cc:8:20: error: 'y' was not declared in this scope
    8 |            cin>>x>>y ;
      |                    ^
a.cc:17:17: error: expected ';' before '}' token
   17 |         return 0
      |                 ^
      |                 ;
   18 |         }
      |         ~        
a.cc:18:10: error: expected '}' at end of input
   18 |         }
      |          ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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<<"x"<<" "<<"y"<<endl ;
	    }
		else{
		cout<<"y"<<" "<<"x"<<endl ;
	}
	return 0
	}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: expected ';' before '}' token
   17 |         return 0
      |                 ^
      |                 ;
   18 |         }
      |         ~        
a.cc:18:10: error: expected '}' at end of input
   18 |         }
      |          ^
a.cc:4:11: note: to match this '{'
    4 | 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<<"x"<<" "<<"y"<<endl ;
	    }
		else{
		cout<<"y"<<" "<<"x"<<endl ;
	}
	return 0
	}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: expected ';' before '}' token
   17 |         return 0
      |                 ^
      |                 ;
   18 |         }
      |         ~        
a.cc:18:10: error: expected '}' at end of input
   18 |         }
      |          ^
a.cc:4:11: note: to match this '{'
    4 | 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<<"x"<<" "<<"y"<<endl ;}
	   
	   else{
		cout<<"y"<<" "<<"x"<<endl ;}
	
	
	return 0
	}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: expected ';' before '}' token
   18 |         return 0
      |                 ^
      |                 ;
   19 |         }
      |         ~
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: In function 'int main()':
a.cc:18:17: error: expected ';' before '}' token
   18 |         return 0
      |                 ^
      |                 ;
   19 |         }
      |         ~
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: In function 'int main()':
a.cc:17:17: error: expected ';' before '}' token
   17 |         return 0
      |                 ^
      |                 ;
   18 |         }
      |         ~
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: In function 'int main()':
a.cc:9:32: error: expected ';' before '}' token
    9 |            if(x==0&&y==0){break} ;
      |                                ^
      |                                ;
a.cc:17:17: error: expected ';' before '}' token
   17 |         return 0
      |                 ^
      |                 ;
   18 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected '(' before 'else'
   12 |            if else(x>y){
      |               ^~~~
      |               (
a.cc:15:15: error: expected '(' before 'else'
   15 |            if else (x==y&&x!=0){
      |               ^~~~
      |               (
a.cc:18:15: error: expected '(' before 'else'
   18 |            if else{break}
      |               ^~~~
      |               (
a.cc:20:17: error: expected ';' before '}' token
   20 |         return 0
      |                 ^
      |                 ;
   21 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;

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

	

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected '(' before 'else'
   12 |            if else(x>y){
      |               ^~~~
      |               (
a.cc:15:15: error: expected '(' before 'else'
   15 |            if else (x==y&&x!=0){
      |               ^~~~
      |               (
a.cc:18:12: error: 'else' without a previous 'if'
   18 |            else{break}
      |            ^~~~
a.cc:18:22: error: expected ';' before '}' token
   18 |            else{break}
      |                      ^
      |                      ;
a.cc:20:17: error: expected ';' before '}' token
   20 |         return 0
      |                 ^
      |                 ;
   21 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:37: error: expected ';' before '}' token
   18 |            else if(x==0&&y==0){break}
      |                                     ^
      |                                     ;
a.cc:20:17: error: expected ';' before '}' token
   20 |         return 0
      |                 ^
      |                 ;
   21 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:37: error: expected ';' before '}' token
   18 |            else if(x==0&&y==0){break}
      |                                     ^
      |                                     ;
a.cc:20:17: error: expected ';' before '}' token
   20 |         return 0
      |                 ^
      |                 ;
   21 |         }
      |         ~
Language: C++

import java.io.*;

public class Main{
public static void main(String[] args){
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
	while(true){
	String[] str = br.readLine().split(" ");
		
	int x = Integer.parseInt(str[0]);
	int y = Integer.parseInt(str[1]);

		if(x == 0 || y == 0){
		break;
		}else if(x < y){
		sb.append(x).append(" ").append(y).append("\n");
		}else{
		sb.append(y).append(" ").append(x).append("\n");
		}	
	}
	System.out.print(sb);
}catch(IOException e){
System.out.println(e);
}
}
}

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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

#include <iostream>

int main(){

int x,y;
 while(1){
 std::cin>>x>>y;
 if(x==0 && y==0){break;}
 else 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:10:2: error: expected '}' before 'else'
   10 |  else {std::cout << y << " " << x << std::endl;
      |  ^~~~
a.cc:9:15: note: to match this '{'
    9 |  else if(x<=y){std::cout << x << " " << y << std::endl;
      |               ^
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>

using namespace std;

int main() {
    int x, y;

    while (cin >> x >> y) {
    if (max(x, y) != x)
        swap(x, y)
    cout << x << y << endl
}
}

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

#include <vector>
int main(){
	int v=0,w=0;
	std::vector<int> a(0),b(0);
	while(true){
		v++;
		a.resize(v);
		b.resize(v);
		std::cin>>a[v-1];
		std::cin>>b[v-1];
		if((a[v-1]==0)&&(b[v-1]==0)){
			break;
		}
	}
	for(int i=0;i<v-1;i++){
		if(a[i]>b[i]){
			w=a[i];
			a[i]=b[i];
			b[i]=w;
		}
	}
	for(int i=0;i<v-1;i++){
		std::cout<<a[i]<<" "<<b[i]<<std::endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: 'cin' is not a member of 'std'
    9 |                 std::cin>>a[v-1];
      |                      ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <vector>
  +++ |+#include <iostream>
    2 | int main(){
a.cc:10:22: error: 'cin' is not a member of 'std'
   10 |                 std::cin>>b[v-1];
      |                      ^~~
a.cc:10:22: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:22: error: 'cout' is not a member of 'std'
   23 |                 std::cout<<a[i]<<" "<<b[i]<<std::endl;
      |                      ^~~~
a.cc:23:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:50: error: 'endl' is not a member of 'std'
   23 |                 std::cout<<a[i]<<" "<<b[i]<<std::endl;
      |                                                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <vector>
  +++ |+#include <ostream>
    2 | int main(){
Language: C++

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

Compiler output:
a.cc:2:9: error: expected initializer before '<' token
    2 | int main<void>{
      |         ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
int main() {
	int a = 0;
        int b = 0;
	std::vector<int> v(0),w(0);
	while (true)
	{
		++a;
                ++b;
                w.resize(b);
		v.resize(a);
		std::cin >> v[a-1] >> w[b-1];
		if ((v[a-1] == 0) && (w[b-1]==0)){ break; }
	}
        for(int i=0;i<a-1;++1){
        if(v[i]>w[i])std::cout<<v[i]<<" "<<w[i]<<std;;endl;
        else if(v[i]<w[i])std::cout<<w[i]<<" "<<v[i]<<std;;endl;
        else std::cout<<v[i]<<" "<<w[i]<<std;;endl;
        }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:29: error: lvalue required as increment operand
   17 |         for(int i=0;i<a-1;++1){
      |                             ^
a.cc:18:53: error: expected primary-expression before ';' token
   18 |         if(v[i]>w[i])std::cout<<v[i]<<" "<<w[i]<<std;;endl;
      |                                                     ^
a.cc:18:55: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |         if(v[i]>w[i])std::cout<<v[i]<<" "<<w[i]<<std;;endl;
      |                                                       ^~~~
      |                                                       std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:19:9: error: 'else' without a previous 'if'
   19 |         else if(v[i]<w[i])std::cout<<w[i]<<" "<<v[i]<<std;;endl;
      |         ^~~~
a.cc:19:58: error: expected primary-expression before ';' token
   19 |         else if(v[i]<w[i])std::cout<<w[i]<<" "<<v[i]<<std;;endl;
      |                                                          ^
a.cc:20:9: error: 'else' without a previous 'if'
   20 |         else std::cout<<v[i]<<" "<<w[i]<<std;;endl;
      |         ^~~~
a.cc:20:45: error: expected primary-expression before ';' token
   20 |         else std::cout<<v[i]<<" "<<w[i]<<std;;endl;
      |                                             ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int x,y;
while(cin>>x>>y){
if(x==0&&y==0) break;
if(x<y){
cout<<x<<" "<<y<<endl;
}
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:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int x,y;

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected primary-expression before ';' token
    8 |      else{cout<<"x>y"<<;}
      |                        ^
Language: C++

#include <iostream>
using namespace std;

void mini(int x, int y){
  cout << min(x, y) << " " << max(x+y) << endl;
}

int main(){
  int x, y;

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

Compiler output:
a.cc: In function 'void mini(int, int)':
a.cc:5:34: error: no matching function for call to 'max(int)'
    5 |   cout << min(x, y) << " " << max(x+y) << endl;
      |                               ~~~^~~~~
In file included from /usr/include/c++/14/string:51,
                 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/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

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

void mini(int x, int y){
  cout << min(x, y) << " " << max(x+y) << endl;
}

int main(){
  int x, y;

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

Compiler output:
a.cc: In function 'void mini(int, int)':
a.cc:6:34: error: no matching function for call to 'max(int)'
    6 |   cout << min(x, y) << " " << max(x+y) << endl;
      |                               ~~~^~~~~
In file included from /usr/include/c++/14/string:51,
                 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/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
a.cc:6:34: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    6 |   cout << min(x, y) << " " << max(x+y) << endl;
      |                               ~~~^~~~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
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) 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: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
      |                  ^~~