█████████ ████ ███░░░░░███ ░░███ ███ ░░░ ██████ ███████ ██████ ██████ ░███ ███░░███ ███░░███ ███░░███ ███░░███ ░███ ░███ ░███░███ ░███ ░███████ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░ ░███ ░███ ░░█████████ ░░██████ ░░████████░░██████ ░░██████ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░

Envío 108

Problema 0x60 - ¿Mayor, menor o igual?

Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.cpp:6:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:8:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "<";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:10:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "="; 
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:12:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:14:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
5 errors generated.

                    
#2
Error de compilación
                      main.cpp:6:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:8:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "<";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:10:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "="; 
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:12:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:14:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
5 errors generated.

                    
#3
Error de compilación
                      main.cpp:6:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:8:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "<";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:10:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "="; 
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:12:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:14:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
5 errors generated.

                    
#4
Error de compilación
                      main.cpp:6:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:8:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "<";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:10:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "="; 
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:12:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:14:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
5 errors generated.

                    
#5
Error de compilación
                      main.cpp:6:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:8:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "<";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:10:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "="; 
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:12:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:14:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
5 errors generated.

                    
#6
Error de compilación
                      main.cpp:6:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:8:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "<";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:10:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "="; 
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:12:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:14:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
5 errors generated.

                    
#7
Error de compilación
                      main.cpp:6:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:8:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "<";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:10:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "="; 
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:12:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:14:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
5 errors generated.

                    
#8
Error de compilación
                      main.cpp:6:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:8:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "<";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:10:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "="; 
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:12:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:14:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
5 errors generated.

                    
#9
Error de compilación
                      main.cpp:6:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:8:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "<";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:10:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "="; 
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:12:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:14:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
5 errors generated.

                    
#10
Error de compilación
                      main.cpp:6:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:8:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "<";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:10:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << "="; 
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:12:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
main.cpp:14:5: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
    cout << ">";
    ^~~~
    std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
5 errors generated.

                    
Puntos totales: 0 / 100

Código

#include <iostream>
int main() {
  long a;
  long b;
  if (a > 5) {
    cout << ">";
  } else if (b < 0) {
    cout << "<";
  } else if (a == b) {
    cout << "="; 
  } else if (a > b) {
    cout << ">";
  } else {
    cout << ">";
  }
}