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

Envío 6657

Problema 0x60 - ¿Mayor, menor o igual?

  • Autor: Julio.Amador
  • Fecha: 2022-10-01 00:32:34 UTC (Hace más de 1 año)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.cs(8,19): error CS1525: Unexpected symbol `[', expecting `.'
Compilation failed: 1 error(s), 0 warnings

                    
#2
Error de compilación
                      Main.cs(8,19): error CS1525: Unexpected symbol `[', expecting `.'
Compilation failed: 1 error(s), 0 warnings

                    
#3
Error de compilación
                      Main.cs(8,19): error CS1525: Unexpected symbol `[', expecting `.'
Compilation failed: 1 error(s), 0 warnings

                    
#4
Error de compilación
                      Main.cs(8,19): error CS1525: Unexpected symbol `[', expecting `.'
Compilation failed: 1 error(s), 0 warnings

                    
#5
Error de compilación
                      Main.cs(8,19): error CS1525: Unexpected symbol `[', expecting `.'
Compilation failed: 1 error(s), 0 warnings

                    
#6
Error de compilación
                      Main.cs(8,19): error CS1525: Unexpected symbol `[', expecting `.'
Compilation failed: 1 error(s), 0 warnings

                    
#7
Error de compilación
                      Main.cs(8,19): error CS1525: Unexpected symbol `[', expecting `.'
Compilation failed: 1 error(s), 0 warnings

                    
#8
Error de compilación
                      Main.cs(8,19): error CS1525: Unexpected symbol `[', expecting `.'
Compilation failed: 1 error(s), 0 warnings

                    
#9
Error de compilación
                      Main.cs(8,19): error CS1525: Unexpected symbol `[', expecting `.'
Compilation failed: 1 error(s), 0 warnings

                    
#10
Error de compilación
                      Main.cs(8,19): error CS1525: Unexpected symbol `[', expecting `.'
Compilation failed: 1 error(s), 0 warnings

                    
Puntos totales: 0 / 100

Código

using System.Linq;
using System;

static class MajorMinor {
   static void main() {
      int[] nums = Console.ReadLine().Split().Select(n => int.Parse(n)).ToArray();

string result = int[0] > int[1] ? ">" : int[1] < int[0] ? "<" : "=";

Console.WriteLine(result); 
   }
}