Language: C++

#include <iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |      cin >> a >> b >> c;
      |      ^~~
      |      std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |           cout << "a b c" << endl;
      |           ^~~~
      |           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |           cout << "a b c" << 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:9:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |           cout << "b a c" << 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:9:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |           cout << "b a c" << endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |           cout << "c b a" << 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:11:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |           cout << "c b a" << endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |           cout << "a c b" << 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:13:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |           cout << "a c b" << endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:15:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |           cout << "b c a" << 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:15:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |           cout << "b c a" << endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:17:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |           cout << "c a b" << endl;
      |           ^~~~
      |           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |           cout << "c a b" << endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~