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

Envío 4090

Problema 0x78 - Suma de 2 números

  • Autor: TacoMeister
  • Fecha: 2021-05-11 00:39:48 UTC (Hace más de 3 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.*;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.*;
           ^
           ;
main.c:3:1: error: unknown type name 'public'
public class Main {
^
main.c:3:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
#2
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.*;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.*;
           ^
           ;
main.c:3:1: error: unknown type name 'public'
public class Main {
^
main.c:3:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
#3
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.*;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.*;
           ^
           ;
main.c:3:1: error: unknown type name 'public'
public class Main {
^
main.c:3:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
#4
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.*;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.*;
           ^
           ;
main.c:3:1: error: unknown type name 'public'
public class Main {
^
main.c:3:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
#5
Error de compilación
                      main.c:1:1: error: unknown type name 'import'
import java.util.*;
^
main.c:1:12: error: expected ';' after top level declarator
import java.util.*;
           ^
           ;
main.c:3:1: error: unknown type name 'public'
public class Main {
^
main.c:3:13: error: expected ';' after top level declarator
public class Main {
            ^
            ;
4 errors generated.

                    
Puntos totales: 0 / 100

Código

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n1 = scanner.nextInt();
        int n2 = scanner.nextInt();
        System.out.println(n1 + n2);
    }
}