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

Envío 7299

Problema 0x78 - Suma de 2 números

  • Autor: manuel claros
  • Fecha: 2024-05-14 16:41:05 UTC (Hace 7 meses)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:7: error: cannot find symbol
int a = SC.nextInt;
          ^
  symbol:   variable nextInt
  location: variable SC of type Scanner
Main.java:8: error: cannot find symbol
int b = SC.nextInt;
          ^
  symbol:   variable nextInt
  location: variable SC of type Scanner
2 errors

                    
#2
Error de compilación
                      Main.java:7: error: cannot find symbol
int a = SC.nextInt;
          ^
  symbol:   variable nextInt
  location: variable SC of type Scanner
Main.java:8: error: cannot find symbol
int b = SC.nextInt;
          ^
  symbol:   variable nextInt
  location: variable SC of type Scanner
2 errors

                    
#3
Error de compilación
                      Main.java:7: error: cannot find symbol
int a = SC.nextInt;
          ^
  symbol:   variable nextInt
  location: variable SC of type Scanner
Main.java:8: error: cannot find symbol
int b = SC.nextInt;
          ^
  symbol:   variable nextInt
  location: variable SC of type Scanner
2 errors

                    
#4
Error de compilación
                      Main.java:7: error: cannot find symbol
int a = SC.nextInt;
          ^
  symbol:   variable nextInt
  location: variable SC of type Scanner
Main.java:8: error: cannot find symbol
int b = SC.nextInt;
          ^
  symbol:   variable nextInt
  location: variable SC of type Scanner
2 errors

                    
#5
Error de compilación
                      Main.java:7: error: cannot find symbol
int a = SC.nextInt;
          ^
  symbol:   variable nextInt
  location: variable SC of type Scanner
Main.java:8: error: cannot find symbol
int b = SC.nextInt;
          ^
  symbol:   variable nextInt
  location: variable SC of type Scanner
2 errors

                    
Puntos totales: 0 / 100

Código

import java.util.Scanner;

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

int a = SC.nextInt;
int b = SC.nextInt;

System.out.print(a+b);



}}