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

Envío 6653

Problema 0x78 - Suma de 2 números

  • Autor: Julio.Amador
  • Fecha: 2022-09-30 23:38:37 UTC (Hace más de 1 año)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.cs(4,45): error CS1061: Type `string[]' does not contain a definition for `Select' and no extension method `Select' of type `string[]' could be found. Are you missing `System.Linq' using directive?
/usr/local/mono-6.6.0.161/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings

                    
#2
Error de compilación
                      Main.cs(4,45): error CS1061: Type `string[]' does not contain a definition for `Select' and no extension method `Select' of type `string[]' could be found. Are you missing `System.Linq' using directive?
/usr/local/mono-6.6.0.161/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings

                    
#3
Error de compilación
                      Main.cs(4,45): error CS1061: Type `string[]' does not contain a definition for `Select' and no extension method `Select' of type `string[]' could be found. Are you missing `System.Linq' using directive?
/usr/local/mono-6.6.0.161/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings

                    
#4
Error de compilación
                      Main.cs(4,45): error CS1061: Type `string[]' does not contain a definition for `Select' and no extension method `Select' of type `string[]' could be found. Are you missing `System.Linq' using directive?
/usr/local/mono-6.6.0.161/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings

                    
#5
Error de compilación
                      Main.cs(4,45): error CS1061: Type `string[]' does not contain a definition for `Select' and no extension method `Select' of type `string[]' could be found. Are you missing `System.Linq' using directive?
/usr/local/mono-6.6.0.161/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings

                    
Puntos totales: 0 / 100

Código

using System;
class Sum{
  static void Main() {
    int[] nums = Console.ReadLine().Split().Select(n => int32.Parse(n)).ToArray();
Console.WriteLine((nums[0] + nums[1]).ToString());
  }
}