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

Envío 6077

Problema 0x60 - ¿Mayor, menor o igual?

Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.cpp:1:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
main.cpp:4:5: error: use of undeclared identifier 'ios_base'
    ios_base::sync_with_stdio(false);
    ^
main.cpp:5:5: error: use of undeclared identifier 'cin'
    cin.tie(NULL); 
    ^
main.cpp:5:13: error: use of undeclared identifier 'NULL'
    cin.tie(NULL); 
            ^
main.cpp:8:5: error: use of undeclared identifier 'cin'
    cin >> a >> b;
    ^
main.cpp:11:9: error: use of undeclared identifier 'cout'
        cout << "<\n";
        ^
main.cpp:13:9: error: use of undeclared identifier 'cout'
        cout << "=\n";
        ^
main.cpp:15:9: error: use of undeclared identifier 'cout'
        cout << ">\n";
        ^
1 warning and 7 errors generated.

                    
#2
Error de compilación
                      main.cpp:1:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
main.cpp:4:5: error: use of undeclared identifier 'ios_base'
    ios_base::sync_with_stdio(false);
    ^
main.cpp:5:5: error: use of undeclared identifier 'cin'
    cin.tie(NULL); 
    ^
main.cpp:5:13: error: use of undeclared identifier 'NULL'
    cin.tie(NULL); 
            ^
main.cpp:8:5: error: use of undeclared identifier 'cin'
    cin >> a >> b;
    ^
main.cpp:11:9: error: use of undeclared identifier 'cout'
        cout << "<\n";
        ^
main.cpp:13:9: error: use of undeclared identifier 'cout'
        cout << "=\n";
        ^
main.cpp:15:9: error: use of undeclared identifier 'cout'
        cout << ">\n";
        ^
1 warning and 7 errors generated.

                    
#3
Error de compilación
                      main.cpp:1:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
main.cpp:4:5: error: use of undeclared identifier 'ios_base'
    ios_base::sync_with_stdio(false);
    ^
main.cpp:5:5: error: use of undeclared identifier 'cin'
    cin.tie(NULL); 
    ^
main.cpp:5:13: error: use of undeclared identifier 'NULL'
    cin.tie(NULL); 
            ^
main.cpp:8:5: error: use of undeclared identifier 'cin'
    cin >> a >> b;
    ^
main.cpp:11:9: error: use of undeclared identifier 'cout'
        cout << "<\n";
        ^
main.cpp:13:9: error: use of undeclared identifier 'cout'
        cout << "=\n";
        ^
main.cpp:15:9: error: use of undeclared identifier 'cout'
        cout << ">\n";
        ^
1 warning and 7 errors generated.

                    
#4
Error de compilación
                      main.cpp:1:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
main.cpp:4:5: error: use of undeclared identifier 'ios_base'
    ios_base::sync_with_stdio(false);
    ^
main.cpp:5:5: error: use of undeclared identifier 'cin'
    cin.tie(NULL); 
    ^
main.cpp:5:13: error: use of undeclared identifier 'NULL'
    cin.tie(NULL); 
            ^
main.cpp:8:5: error: use of undeclared identifier 'cin'
    cin >> a >> b;
    ^
main.cpp:11:9: error: use of undeclared identifier 'cout'
        cout << "<\n";
        ^
main.cpp:13:9: error: use of undeclared identifier 'cout'
        cout << "=\n";
        ^
main.cpp:15:9: error: use of undeclared identifier 'cout'
        cout << ">\n";
        ^
1 warning and 7 errors generated.

                    
#5
Error de compilación
                      main.cpp:1:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
main.cpp:4:5: error: use of undeclared identifier 'ios_base'
    ios_base::sync_with_stdio(false);
    ^
main.cpp:5:5: error: use of undeclared identifier 'cin'
    cin.tie(NULL); 
    ^
main.cpp:5:13: error: use of undeclared identifier 'NULL'
    cin.tie(NULL); 
            ^
main.cpp:8:5: error: use of undeclared identifier 'cin'
    cin >> a >> b;
    ^
main.cpp:11:9: error: use of undeclared identifier 'cout'
        cout << "<\n";
        ^
main.cpp:13:9: error: use of undeclared identifier 'cout'
        cout << "=\n";
        ^
main.cpp:15:9: error: use of undeclared identifier 'cout'
        cout << ">\n";
        ^
1 warning and 7 errors generated.

                    
#6
Error de compilación
                      main.cpp:1:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
main.cpp:4:5: error: use of undeclared identifier 'ios_base'
    ios_base::sync_with_stdio(false);
    ^
main.cpp:5:5: error: use of undeclared identifier 'cin'
    cin.tie(NULL); 
    ^
main.cpp:5:13: error: use of undeclared identifier 'NULL'
    cin.tie(NULL); 
            ^
main.cpp:8:5: error: use of undeclared identifier 'cin'
    cin >> a >> b;
    ^
main.cpp:11:9: error: use of undeclared identifier 'cout'
        cout << "<\n";
        ^
main.cpp:13:9: error: use of undeclared identifier 'cout'
        cout << "=\n";
        ^
main.cpp:15:9: error: use of undeclared identifier 'cout'
        cout << ">\n";
        ^
1 warning and 7 errors generated.

                    
#7
Error de compilación
                      main.cpp:1:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
main.cpp:4:5: error: use of undeclared identifier 'ios_base'
    ios_base::sync_with_stdio(false);
    ^
main.cpp:5:5: error: use of undeclared identifier 'cin'
    cin.tie(NULL); 
    ^
main.cpp:5:13: error: use of undeclared identifier 'NULL'
    cin.tie(NULL); 
            ^
main.cpp:8:5: error: use of undeclared identifier 'cin'
    cin >> a >> b;
    ^
main.cpp:11:9: error: use of undeclared identifier 'cout'
        cout << "<\n";
        ^
main.cpp:13:9: error: use of undeclared identifier 'cout'
        cout << "=\n";
        ^
main.cpp:15:9: error: use of undeclared identifier 'cout'
        cout << ">\n";
        ^
1 warning and 7 errors generated.

                    
#8
Error de compilación
                      main.cpp:1:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
main.cpp:4:5: error: use of undeclared identifier 'ios_base'
    ios_base::sync_with_stdio(false);
    ^
main.cpp:5:5: error: use of undeclared identifier 'cin'
    cin.tie(NULL); 
    ^
main.cpp:5:13: error: use of undeclared identifier 'NULL'
    cin.tie(NULL); 
            ^
main.cpp:8:5: error: use of undeclared identifier 'cin'
    cin >> a >> b;
    ^
main.cpp:11:9: error: use of undeclared identifier 'cout'
        cout << "<\n";
        ^
main.cpp:13:9: error: use of undeclared identifier 'cout'
        cout << "=\n";
        ^
main.cpp:15:9: error: use of undeclared identifier 'cout'
        cout << ">\n";
        ^
1 warning and 7 errors generated.

                    
#9
Error de compilación
                      main.cpp:1:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
main.cpp:4:5: error: use of undeclared identifier 'ios_base'
    ios_base::sync_with_stdio(false);
    ^
main.cpp:5:5: error: use of undeclared identifier 'cin'
    cin.tie(NULL); 
    ^
main.cpp:5:13: error: use of undeclared identifier 'NULL'
    cin.tie(NULL); 
            ^
main.cpp:8:5: error: use of undeclared identifier 'cin'
    cin >> a >> b;
    ^
main.cpp:11:9: error: use of undeclared identifier 'cout'
        cout << "<\n";
        ^
main.cpp:13:9: error: use of undeclared identifier 'cout'
        cout << "=\n";
        ^
main.cpp:15:9: error: use of undeclared identifier 'cout'
        cout << ">\n";
        ^
1 warning and 7 errors generated.

                    
#10
Error de compilación
                      main.cpp:1:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
main.cpp:4:5: error: use of undeclared identifier 'ios_base'
    ios_base::sync_with_stdio(false);
    ^
main.cpp:5:5: error: use of undeclared identifier 'cin'
    cin.tie(NULL); 
    ^
main.cpp:5:13: error: use of undeclared identifier 'NULL'
    cin.tie(NULL); 
            ^
main.cpp:8:5: error: use of undeclared identifier 'cin'
    cin >> a >> b;
    ^
main.cpp:11:9: error: use of undeclared identifier 'cout'
        cout << "<\n";
        ^
main.cpp:13:9: error: use of undeclared identifier 'cout'
        cout << "=\n";
        ^
main.cpp:15:9: error: use of undeclared identifier 'cout'
        cout << ">\n";
        ^
1 warning and 7 errors generated.

                    
Puntos totales: 0 / 100

Código

using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); 
    // your code goes here
    int a, b;
    cin >> a >> b;
    
    if(a < b){
        cout << "<\n";
    }else if(a == b){
        cout << "=\n";
    }else if(a > b){
        cout << ">\n";
    }

	return 0;
}