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

Envío 2822

Problema 0x78 - Suma de 2 números

  • Autor: pradomaricon
  • Fecha: 2021-02-07 00:54:25 UTC (Hace alrededor de 3 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:16: error: reached end of file while parsing
    }
     ^
1 error

                    
#2
Error de compilación
                      Main.java:16: error: reached end of file while parsing
    }
     ^
1 error

                    
#3
Error de compilación
                      Main.java:16: error: reached end of file while parsing
    }
     ^
1 error

                    
#4
Error de compilación
                      Main.java:16: error: reached end of file while parsing
    }
     ^
1 error

                    
#5
Error de compilación
                      Main.java:16: error: reached end of file while parsing
    }
     ^
1 error

                    
Puntos totales: 0 / 100

Código

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        //input dimensiones
        String[] dimensiones = leer.nextLine().trim().split(" ");
        int primero = Integer.parseInt(dimensiones[0]);
        int segundo = Integer.parseInt(dimensiones[1]);
        int toret= primero +segundo;


        System.out.println(toret);

    }