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

#include <iostream>
using namespace std;

int main(){
    int x,y;
    for(int i,i<3000,i++){
        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:16: error: expected ';' before '<' token
    6 |     for(int i,i<3000,i++){
      |                ^
      |                ;
a.cc:6:16: error: expected primary-expression before '<' token
a.cc:6:25: error: expected ';' before ')' token
    6 |     for(int i,i<3000,i++){
      |                         ^
      |                         ;
a.cc:8:14: error: expected primary-expression before '>' token
    8 |         if(x=>y)cout<<"x" << " " << "y" << endl;
      |              ^
a.cc:9:14: error: expected primary-expression before ')' token
    9 |         else()cout<<"y" << " " << " x" << endl;
      |              ^
Language: C++

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


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

#include <iostream>
using namespace std;

int main(){
    int x,y;
    for(int i,i<3000,i++){
        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:16: error: expected ';' before '<' token
    6 |     for(int i,i<3000,i++){
      |                ^
      |                ;
a.cc:6:16: error: expected primary-expression before '<' token
a.cc:6:25: error: expected ';' before ')' token
    6 |     for(int i,i<3000,i++){
      |                         ^
      |                         ;
a.cc:8:14: error: expected primary-expression before '>' token
    8 |         if(x=>y){
      |              ^
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(True){
        cin>>x>>y;
        if(x=0,y=0){
            break;
        }
        else if(x<=y){
            cout<<x<<" "<<y<<std;
        }
        else if(x>y){
            cout<<y<<" "<<x<<std;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'True' was not declared in this scope
    5 |     while(True){
      |           ^~~~
a.cc:11:33: error: expected primary-expression before ';' token
   11 |             cout<<x<<" "<<y<<std;
      |                                 ^
a.cc:14:33: error: expected primary-expression before ';' token
   14 |             cout<<y<<" "<<x<<std;
      |                                 ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: expected primary-expression before ';' token
   11 |             cout<<x<<" "<<y<<std;
      |                                 ^
a.cc:14:33: error: expected primary-expression before ';' token
   14 |             cout<<y<<" "<<x<<std;
      |                                 ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: expected primary-expression before ';' token
   11 |         cout<<x<<" "<<y<<std;
      |                             ^
a.cc:14:29: error: expected primary-expression before ';' token
   14 |         cout<<y<<" "<<x<<std;
      |                             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int x,y;
    while(1){
        cin >> x >>y;
        if(x==y && x==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:14: error: expected primary-expression before '>' token
    9 |         if(x=>y){
      |              ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
unt main(){
    int x;
    int 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:3:1: error: 'unt' does not name a type; did you mean 'uint'?
    3 | unt main(){
      | ^~~
      | uint
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:14: error: expected primary-expression before '>' token
    9 |         if(x=>y){
      |              ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected primary-expression before '>' token
    9 |         if(y=>x){
      |              ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <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:16:2: error: expected '}' at end of input
   16 | }
      |  ^
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<<y << " " << x << endl;
        }
        else{
            cout<<x << " " << y << endl;
    }
    return 0;
}


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

#include <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:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x , y;
    cin >> x >> y;
    
    
   for(i=1; i < 3000; i++){
        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:8: error: 'i' was not declared in this scope
    9 |    for(i=1; i < 3000; i++){
      |        ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x , y;
    cin >> x >> y;
    
    
   for(i=1; i < 3000; i++){
            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:8: error: 'i' was not declared in this scope
    9 |    for(i=1; i < 3000; i++){
      |        ^
Language: C++

#include<iostream>
uisng namespace std;
int main(){
    int x,y;
    cin>>x>>y;
    while (true){
        if (x<=y){
            cout<<x<<" "<<y<<endl;
        }else{
            cout<<y<<x<<endl;
        }cin>>x>>y;
        if(x==0 && y==0)break
        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:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>x>>y;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |             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:8:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |             cout<<x<<" "<<y<<endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |             cout<<y<<x<<endl;
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |             cout<<y<<x<<endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:30: error: expected ';' before 'return'
   12 |         if(x==0 && y==0)break
      |                              ^
      |                              ;
   13 |         return 0;
      |         ~~~~~~                
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>
uisng namespace std;
int main(){
    int x,y;
    cin>>x>>y;
    while (true){
        if (x<=y){
            cout<<x<<" "<<y<<endl;
        }else{
            cout<<y<<<<" "<<x<<endl;
        }cin>>x>>y;
        if(x==0 && y==0)break
        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:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>x>>y;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |             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:8:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |             cout<<x<<" "<<y<<endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |             cout<<y<<<<" "<<x<<endl;
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:22: error: expected primary-expression before '<<' token
   10 |             cout<<y<<<<" "<<x<<endl;
      |                      ^~
a.cc:10:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |             cout<<y<<<<" "<<x<<endl;
      |                                ^~~~
      |                                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:30: error: expected ';' before 'return'
   12 |         if(x==0 && y==0)break
      |                              ^
      |                              ;
   13 |         return 0;
      |         ~~~~~~                
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){
        if (x==0 && y==0) break;
        cin>>x>>y;
        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:11:27: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |             cout<<y<<" "<x<<endl;
      |                          ~^~~~~~
Language: C++

#include<iostream>
uisng namespace std;
int main(){
    int x,y;
    cin>>x>>y;
    while (true){
        if (x<=y){
            cout<<x<<" "<<y<<endl;
        }else{
            cout<<y<<<<" "<<x<<endl;
        }cin>>x>>y;
        if(x==0 && y==0)break;
        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:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>x>>y;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |             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:8:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |             cout<<x<<" "<<y<<endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |             cout<<y<<<<" "<<x<<endl;
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:22: error: expected primary-expression before '<<' token
   10 |             cout<<y<<<<" "<<x<<endl;
      |                      ^~
a.cc:10:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |             cout<<y<<<<" "<<x<<endl;
      |                                ^~~~
      |                                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
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>
uisng namespace std;
int main(){
    int x,y;
    cin>>x>>y;
    while (true){
        if (x<=y){
            cout<<x<<" "<<y<<endl;
        }else{
            cout<<y<<<<" "<<x<<endl;
        }cin>>x>>y;
        else if(x==0 && y==0)break;
        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:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>x>>y;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |             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:8:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |             cout<<x<<" "<<y<<endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |             cout<<y<<<<" "<<x<<endl;
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:22: error: expected primary-expression before '<<' token
   10 |             cout<<y<<<<" "<<x<<endl;
      |                      ^~
a.cc:10:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |             cout<<y<<<<" "<<x<<endl;
      |                                ^~~~
      |                                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else if(x==0 && y==0)break;
      |         ^~~~
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){
        if (x==0 && y==0) break;
        cin>>x >>y;
        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:11:27: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |             cout<<y<<" "<x<<endl;
      |                          ~^~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'limit' was not declared in this scope
    6 |     limit=3000;
      |     ^~~~~
a.cc:9:17: error: expected primary-expression before ')' token
    9 |     for(x=1,y=1,){
      |                 ^
a.cc:14:5: error: expected primary-expression before 'return'
   14 |     return 0;
      |     ^~~~~~
a.cc:13:6: error: expected ';' before 'return'
   13 |     }
      |      ^
      |      ;
   14 |     return 0;
      |     ~~~~~~
a.cc:14:5: error: expected primary-expression before 'return'
   14 |     return 0;
      |     ^~~~~~
a.cc:13:6: error: expected ')' before 'return'
   13 |     }
      |      ^
      |      )
   14 |     return 0;
      |     ~~~~~~
a.cc:9:8: note: to match this '('
    9 |     for(x=1,y=1,){
      |        ^
Language: C++

#include<iostream>
uisng namespace std;
int main(){
    int x,y;
    cin>>x>>y;
    while (true){
        if (x<=y){
            cout<<x<<" "<<y<<endl;
        }else if(x>y){
            cout<<y<<<<" "<<x<<endl;
        }cin>>x>>y;
        else if(x==0 && y==0)break;
        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:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>x>>y;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |             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:8:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |             cout<<x<<" "<<y<<endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |             cout<<y<<<<" "<<x<<endl;
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:22: error: expected primary-expression before '<<' token
   10 |             cout<<y<<<<" "<<x<<endl;
      |                      ^~
a.cc:10:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |             cout<<y<<<<" "<<x<<endl;
      |                                ^~~~
      |                                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else if(x==0 && y==0)break;
      |         ^~~~
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,i;
    for (i=1;i<=3000;i++){
        if (x==0 && y==0) break;
        cin>>x >>y;
        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:11:27: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |             cout<<y<<" "<x<<endl;
      |                          ~^~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected primary-expression before '<<' token
   10 |             cout<<y<<<<" "<<x<<endl;
      |                      ^~
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else if(x==0 && y==0)break;
      |         ^~~~
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;
    cin >> x >> y
    if(x < y);
    cout << x << " " << y << endl;
    else if (y <= x);
    cout << y << " " << x << endl;
    else if(x == 0&&y == 0);break
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: expected ';' before 'if'
    5 |     cin >> x >> y
      |                  ^
      |                  ;
    6 |     if(x < y);
      |     ~~            
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else if (y <= x);
      |     ^~~~
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else if(x == 0&&y == 0);break
      |     ^~~~
a.cc:10:29: error: break statement not within loop or switch
   10 |     else if(x == 0&&y == 0);break
      |                             ^~~~~
a.cc:10:34: error: expected ';' before '}' token
   10 |     else if(x == 0&&y == 0);break
      |                                  ^
      |                                  ;
   11 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else if(x==0 && y==0)break;
      |         ^~~~
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=1;
    int y=1;
    i=1;
    cin>>x;
    cin>>y;
    while(1){
        if((x==0 && y==0)or(limit<i)) break;
        cout<< x << " " << y << endl;
    
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'i' was not declared in this scope
    6 |     i=1;
      |     ^
a.cc:10:29: error: 'limit' was not declared in this scope
   10 |         if((x==0 && y==0)or(limit<i)) break;
      |                             ^~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else if(x==0 && y==0){break;}
      |         ^~~~
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=1;
    int y=1;
    i=1;
    cin>>x;
    cin>>y;
    while(1){
        if(x==0 && y==0) break;
        cout<< x << " " << y << endl;
    
    }
    return 0;
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'x' was not declared in this scope
    5 |     cin >> x >> y
      |            ^
a.cc:5:17: error: 'y' was not declared in this scope
    5 |     cin >> x >> y
      |                 ^
a.cc:6:24: error: break statement not within loop or switch
    6 |     if(x == 0&&y == 0);break
      |                        ^~~~~
a.cc:6:29: error: expected ';' before 'if'
    6 |     if(x == 0&&y == 0);break
      |                             ^
      |                             ;
    7 |     if(x < y);
      |     ~~                       
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else if (y <= x);
      |     ^~~~
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){{while(1)
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int x;
    int y;
    while (1){
        if (x==0 && y==0) break;
        cin>>x >>y;
        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:12:27: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |             cout<<y<<" "<x<<endl;
      |                          ~^~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: expected ';' before 'if'
    5 |     cin >> x >> y
      |                  ^
      |                  ;
    6 |     if(x == 0&&y == 0)break;
      |     ~~            
a.cc:8:8: error: 'x' was not declared in this scope
    8 |     if(x < y);
      |        ^
a.cc:8:12: error: 'y' was not declared in this scope
    8 |     if(x < y);
      |            ^
a.cc:9:13: error: 'x' was not declared in this scope
    9 |     cout << x << " " << y << endl;
      |             ^
a.cc:9:25: error: 'y' was not declared in this scope
    9 |     cout << x << " " << y << endl;
      |                         ^
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else if (y <= x);
      |     ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: expected ';' before 'if'
    5 |     cin >> x >> y
      |                  ^
      |                  ;
    6 |     if(x == 0&&y == 0)break;
      |     ~~            
a.cc:8:8: error: 'x' was not declared in this scope
    8 |     if(x < y);
      |        ^
a.cc:8:12: error: 'y' was not declared in this scope
    8 |     if(x < y);
      |            ^
a.cc:9:13: error: 'x' was not declared in this scope
    9 |     cout << x << " " << y << endl;
      |             ^
a.cc:9:25: error: 'y' was not declared in this scope
    9 |     cout << x << " " << y << endl;
      |                         ^
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else;
      |     ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'x' was not declared in this scope
    8 |     if(x < y);
      |        ^
a.cc:8:12: error: 'y' was not declared in this scope
    8 |     if(x < y);
      |            ^
a.cc:9:13: error: 'x' was not declared in this scope
    9 |     cout << x << " " << y << endl;
      |             ^
a.cc:9:25: error: 'y' was not declared in this scope
    9 |     cout << x << " " << y << endl;
      |                         ^
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else;
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int x,y;
    cin>>x>>y;
    while (true){
        if(x==0 && y==0){break;}
        else 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
    cin >> x >> y;
    while(true)
        if(x==0 && Y==0){break
        }else if(x<y){
            cout << x << " " << y <<endl;
        }else (x>=y){
            cout << y << " " << x <<endl;
        }cin >> x >> y;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'cin'
    5 |     cin >> x >> y;
      |     ^~~
a.cc:7:20: error: 'Y' was not declared in this scope
    7 |         if(x==0 && Y==0){break
      |                    ^
a.cc:7:31: error: expected ';' before '}' token
    7 |         if(x==0 && Y==0){break
      |                               ^
      |                               ;
    8 |         }else if(x<y){
      |         ~                      
a.cc:8:20: error: 'y' was not declared in this scope
    8 |         }else if(x<y){
      |                    ^
a.cc:12:22: error: 'y' was not declared in this scope
   12 |         }cin >> x >> y;
      |                      ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int x;
    int 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:12:27: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |             cout<<y<<" "<x<<endl;
      |                          ~^~~~~~
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'cin'
    5 |     cin >> x >> y;
      |     ^~~
a.cc:7:21: error: 'Y' was not declared in this scope
    7 |         }if(x==0 && Y==0){break
      |                     ^
a.cc:7:27: error: break statement not within loop or switch
    7 |         }if(x==0 && Y==0){break
      |                           ^~~~~
a.cc:7:32: error: expected ';' before '}' token
    7 |         }if(x==0 && Y==0){break
      |                                ^
      |                                ;
    8 |         }else if(x<y){
      |         ~                       
a.cc:8:20: error: 'y' was not declared in this scope
    8 |         }else if(x<y){
      |                    ^
a.cc:12:22: error: 'y' was not declared in this scope
   12 |         }cin >> x >> y;
      |                      ^
a.cc:12:24: error: expected '}' at end of input
   12 |         }cin >> x >> y;
      |                        ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'x' was not declared in this scope
    8 |     if(x < y){cout << x << " " << y << endl};
      |        ^
a.cc:8:12: error: 'y' was not declared in this scope
    8 |     if(x < y){cout << x << " " << y << endl};
      |            ^
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else{cout << y << " " << x << endl};
      |     ^~~~
a.cc:9:18: error: 'y' was not declared in this scope
    9 |     else{cout << y << " " << x << endl};
      |                  ^
a.cc:9:30: error: 'x' was not declared in this scope
    9 |     else{cout << y << " " << x << endl};
      |                              ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'x' was not declared in this scope
    8 |     if(x < y){cout << x << " " << y << endl;};
      |        ^
a.cc:8:12: error: 'y' was not declared in this scope
    8 |     if(x < y){cout << x << " " << y << endl;};
      |            ^
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else{cout << y << " " << x << endl;};
      |     ^~~~
a.cc:9:18: error: 'y' was not declared in this scope
    9 |     else{cout << y << " " << x << endl;};
      |                  ^
a.cc:9:30: error: 'x' was not declared in this scope
    9 |     else{cout << y << " " << x << endl;};
      |                              ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'cin'
    5 |     cin >> x >> y;
      |     ^~~
a.cc:7:20: error: 'Y' was not declared in this scope
    7 |         if(x==0 && Y==0){break;
      |                    ^
a.cc:8:20: error: 'y' was not declared in this scope
    8 |         }else if(x<y){
      |                    ^
a.cc:12:22: error: 'y' was not declared in this scope
   12 |         }cin >> x >> y;
      |                      ^
a.cc:13:6: error: expected '}' at end of input
   13 |     }
      |      ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){while(1){
    int x,y;
    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:8:8: error: 'x' was not declared in this scope
    8 |     if(x < y){
      |        ^
a.cc:8:12: error: 'y' was not declared in this scope
    8 |     if(x < y){
      |            ^
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 (x>=y){
            cout << y << " " << x <<endl;
        }cin >> x >> y;
    }


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

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


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

#include<iostream>
using namespace std;
int main(){
    int x,y;
    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;
        }else{
            cout << x << " " << y << endl;
    }
    return 0;
}


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

#include<iostream>
using namespace std;
int main(){
    int x;
    int y;
    i=1;
    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:6:5: error: 'i' was not declared in this scope
    6 |     i=1;
      |     ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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


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

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


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

#include<iostream>
using namespace std;
int main(){
    int x;
    int y;
    i=1;
    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:6:5: error: 'i' was not declared in this scope
    6 |     i=1;
      |     ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'Y' was not declared in this scope
    7 |         if(x==0 && Y==0){break;
      |                    ^
a.cc:13:6: error: expected '}' at end of input
   13 |     }
      |      ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before '{' token
   10 |         else(x>y){
      |                  ^
      |                  ;
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
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 if(x > y){
            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(true){
        cin >> x >> y;
        if(x==0 && Y==0){break;
        }else 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:20: error: 'Y' was not declared in this scope
    7 |         if(x==0 && Y==0){break;
      |                    ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before '{' token
   10 |         else(x>y){
      |                  ^
      |                  ;
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before '{' token
   10 |         else(x>y){
      |                  ^
      |                  ;
a.cc:13:9: error: 'else' without a previous 'if'
   13 |         else{
      |         ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: expected ';' before '}' token
   14 |             i++
      |                ^
      |                ;
   15 |         }
      |         ~