Language: C++

#include <iostream>

int main () {
     int 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:6:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |           cout << "a b c" << endl;
      |           ^~~~
      |           std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |           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:8:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |           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:8:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |           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:10:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |           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:10:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |           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:12:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |           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:12:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |           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:14:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |           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:14:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |           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:16:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |           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:16:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |           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)
      |     ^~~~