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

Envío 5039

Problema 0x30 - Incrementar un número muy grande

  • Autor: Camilo15
  • Fecha: 2021-10-07 16:23:07 UTC (Hace alrededor de 3 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#2
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#3
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#4
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#5
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#6
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#7
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#8
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#9
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#10
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#11
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#12
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#13
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#14
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#15
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#16
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#17
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#18
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#19
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#20
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#21
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#22
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#23
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#24
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#25
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#26
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#27
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#28
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#29
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#30
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#31
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#32
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#33
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
#34
Error de compilación
                      Main.java:17: error: cannot find symbol
    public static String sumOne(ArrayList<Integer> list) {
                                ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:33: error: cannot find symbol
    public static String listToString(ArrayList<Integer> list) {
                                      ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Ideone
Main.java:9: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<>();
                                      ^
  symbol:   class ArrayList
  location: class Ideone
6 errors

                    
Puntos totales: 0 / 100

Código

class Ideone {

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

        String number = sc.nextLine();
        String v[] = number.split("");
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < number.length(); i++) {
            list.add(Integer.parseInt(v[i]));
        }
        // int v[] = {7,9,5,9,9};
        System.out.println(sumOne(list));
    }

    public static String sumOne(ArrayList<Integer> list) {

        for (int i = list.size()-1; i >= 0; i--) {
            int value = list.get(i);
            if(value==9 && i>0){
                list.set(i, 0);
            } 
            else{
               list.set(i, value+1);
               return listToString(list);
            }
        }
        
        return listToString(list);
    }

    public static String listToString(ArrayList<Integer> list) {
        String st = "";
        for (int numb : list) {
            st+=numb;
        }
        return st;
    }
}