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

Envío 1424

Problema 0x78 - Suma de 2 números

  • Autor: c4rlosc7
  • Fecha: 2020-10-26 00:36:58 UTC (Hace alrededor de 4 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:3: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
1 error

                    
#2
Error de compilación
                      Main.java:3: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
1 error

                    
#3
Error de compilación
                      Main.java:3: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
1 error

                    
#4
Error de compilación
                      Main.java:3: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
1 error

                    
#5
Error de compilación
                      Main.java:3: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
1 error

                    
Puntos totales: 0 / 100

Código

import java.util.Scanner;

public class Solution {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n1 = sc.nextInt();
        int n2 = sc.nextInt();

        System.out.println(n1+n2);
    }
}