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

Envío 3125

Problema 0x60 - ¿Mayor, menor o igual?

  • Autor: nicolas
  • Fecha: 2021-02-21 01:09:18 UTC (Hace alrededor de 3 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.cpp:8:20: error: expected ';' after expression
if(a>b){cout << ">"}
                   ^
                   ;
main.cpp:9:21: error: expected ';' after expression
if(a==b){cout << "="}
                    ^
                    ;
main.cpp:10:20: error: expected ';' after expression
if(a<b){cout << "<"}
                   ^
                   ;
3 errors generated.

                    
#2
Error de compilación
                      main.cpp:8:20: error: expected ';' after expression
if(a>b){cout << ">"}
                   ^
                   ;
main.cpp:9:21: error: expected ';' after expression
if(a==b){cout << "="}
                    ^
                    ;
main.cpp:10:20: error: expected ';' after expression
if(a<b){cout << "<"}
                   ^
                   ;
3 errors generated.

                    
#3
Error de compilación
                      main.cpp:8:20: error: expected ';' after expression
if(a>b){cout << ">"}
                   ^
                   ;
main.cpp:9:21: error: expected ';' after expression
if(a==b){cout << "="}
                    ^
                    ;
main.cpp:10:20: error: expected ';' after expression
if(a<b){cout << "<"}
                   ^
                   ;
3 errors generated.

                    
#4
Error de compilación
                      main.cpp:8:20: error: expected ';' after expression
if(a>b){cout << ">"}
                   ^
                   ;
main.cpp:9:21: error: expected ';' after expression
if(a==b){cout << "="}
                    ^
                    ;
main.cpp:10:20: error: expected ';' after expression
if(a<b){cout << "<"}
                   ^
                   ;
3 errors generated.

                    
#5
Error de compilación
                      main.cpp:8:20: error: expected ';' after expression
if(a>b){cout << ">"}
                   ^
                   ;
main.cpp:9:21: error: expected ';' after expression
if(a==b){cout << "="}
                    ^
                    ;
main.cpp:10:20: error: expected ';' after expression
if(a<b){cout << "<"}
                   ^
                   ;
3 errors generated.

                    
#6
Error de compilación
                      main.cpp:8:20: error: expected ';' after expression
if(a>b){cout << ">"}
                   ^
                   ;
main.cpp:9:21: error: expected ';' after expression
if(a==b){cout << "="}
                    ^
                    ;
main.cpp:10:20: error: expected ';' after expression
if(a<b){cout << "<"}
                   ^
                   ;
3 errors generated.

                    
#7
Error de compilación
                      main.cpp:8:20: error: expected ';' after expression
if(a>b){cout << ">"}
                   ^
                   ;
main.cpp:9:21: error: expected ';' after expression
if(a==b){cout << "="}
                    ^
                    ;
main.cpp:10:20: error: expected ';' after expression
if(a<b){cout << "<"}
                   ^
                   ;
3 errors generated.

                    
#8
Error de compilación
                      main.cpp:8:20: error: expected ';' after expression
if(a>b){cout << ">"}
                   ^
                   ;
main.cpp:9:21: error: expected ';' after expression
if(a==b){cout << "="}
                    ^
                    ;
main.cpp:10:20: error: expected ';' after expression
if(a<b){cout << "<"}
                   ^
                   ;
3 errors generated.

                    
#9
Error de compilación
                      main.cpp:8:20: error: expected ';' after expression
if(a>b){cout << ">"}
                   ^
                   ;
main.cpp:9:21: error: expected ';' after expression
if(a==b){cout << "="}
                    ^
                    ;
main.cpp:10:20: error: expected ';' after expression
if(a<b){cout << "<"}
                   ^
                   ;
3 errors generated.

                    
#10
Error de compilación
                      main.cpp:8:20: error: expected ';' after expression
if(a>b){cout << ">"}
                   ^
                   ;
main.cpp:9:21: error: expected ';' after expression
if(a==b){cout << "="}
                    ^
                    ;
main.cpp:10:20: error: expected ';' after expression
if(a<b){cout << "<"}
                   ^
                   ;
3 errors generated.

                    
Puntos totales: 0 / 100

Código

#include <bits/stdc++.h>
using namespace std;
int main(){
 ios_base::sync_with_stdio(false);
  cin.tie(0);
int a,b;
cin >> a >> b;
if(a>b){cout << ">"}
if(a==b){cout << "="}
if(a<b){cout << "<"}

return 0;
}