Language: C++

#include<bits/stdc++.h>
using namespace sstd;
int main(){
    while(1){
        int x, y:
        cin>>x>>y;
        if(x ==0 && y == 0) break;
        
        if(x > y) swap(x,y);
        cout<<x<<" "<<y<<endl;
    }
    return 0;

}


Compiler output:
a.cc:2:17: error: 'sstd' is not a namespace-name
    2 | using namespace sstd;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:5:17: error: found ':' in nested-name-specifier, expected '::'
    5 |         int x, y:
      |                 ^
      |                 ::
a.cc:5:16: error: 'y' has not been declared
    5 |         int x, y:
      |                ^
a.cc:6:12: error: qualified-id in declaration before '>>' token
    6 |         cin>>x>>y;
      |            ^~
a.cc:7:21: error: 'y' was not declared in this scope
    7 |         if(x ==0 && y == 0) break;
      |                     ^
a.cc:9:16: error: 'y' was not declared in this scope
    9 |         if(x > y) swap(x,y);
      |                ^
a.cc:9:19: error: 'swap' was not declared in this scope
    9 |         if(x > y) swap(x,y);
      |                   ^~~~
a.cc:9:19: note: suggested alternatives:
In file included from /usr/include/c++/14/regex:68,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
                 from a.cc:1:
/usr/include/c++/14/bits/regex.h:2230:5: note:   'std::__cxx11::swap'
 2230 |     swap(match_results<_Bi_iter, _Alloc>& __lhs,
      |     ^~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:61,
                 from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
In file included from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/stdexcept:38,
                 from /usr/include/c++/14/system_error:43,
                 from /usr/include/c++/14/bits/ios_base.h:46,
                 from /usr/include/c++/14/streambuf:43,
                 from /usr/include/c++/14/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
In file included from /usr/include/c++/14/filesystem:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_path.h:736:15: note:   'std::filesystem::__cxx11::swap'
  736 |   inline void swap(path& __lhs, path& __rhs) noexcept { __lhs.swap(__rhs); }
      |               ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout<<x<<" "<<y<<endl;
      |         ^~~~
      |         std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:23: error: 'y' was not declared in this scope
   10 |         cout<<x<<" "<<y<<endl;
      |                       ^
a.cc:10:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         cout<<x<<" "<<y<<endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~