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

Envío 5221

Problema 0x78 - Suma de 2 números

  • Autor: dvsalcedo
  • Fecha: 2021-10-28 19:47:20 UTC (Hace alrededor de 3 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.cs(7,34): error CS1061: Type `string[]' does not contain a definition for `Split' and no extension method `Split' of type `string[]' could be found. Are you missing an assembly reference?
/usr/local/mono-6.6.0.161/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Main.cs(8,34): error CS1061: Type `string[]' does not contain a definition for `Split' and no extension method `Split' of type `string[]' could be found. Are you missing an assembly reference?
/usr/local/mono-6.6.0.161/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Compilation failed: 2 error(s), 0 warnings

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

                    
#3
Error de compilación
                      Main.cs(7,34): error CS1061: Type `string[]' does not contain a definition for `Split' and no extension method `Split' of type `string[]' could be found. Are you missing an assembly reference?
/usr/local/mono-6.6.0.161/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Main.cs(8,34): error CS1061: Type `string[]' does not contain a definition for `Split' and no extension method `Split' of type `string[]' could be found. Are you missing an assembly reference?
/usr/local/mono-6.6.0.161/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Compilation failed: 2 error(s), 0 warnings

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

                    
#5
Error de compilación
                      Main.cs(7,34): error CS1061: Type `string[]' does not contain a definition for `Split' and no extension method `Split' of type `string[]' could be found. Are you missing an assembly reference?
/usr/local/mono-6.6.0.161/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Main.cs(8,34): error CS1061: Type `string[]' does not contain a definition for `Split' and no extension method `Split' of type `string[]' could be found. Are you missing an assembly reference?
/usr/local/mono-6.6.0.161/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Compilation failed: 2 error(s), 0 warnings

                    
Puntos totales: 0 / 100

Código

using System;
namespace HelloWorld
{
    class Hello {         
        static void Main(string[] args)
        {
            int numberOne = args.Split(' ')[0];
            int numberTwo = args.Split(' ')[1];

            System.Console.WriteLine(numberOne + numberTwo);
        }
    }
}