Я проверяла на ноуте, все работает(с числами больше 0)
Может добавить условие, чтобы проверяло, что вводимые числа >0? Но все равно не могу понять почему сейчас не работает
package com.javarush.task.pro.task05.task0511;
import java.util.Scanner;
/*
Создаем двухмерный массив
*/
public class Solution {
public static int[][] multiArray;
public static void main(String[] args) {
//напишите тут ваш код
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[][] multiArray = new int[n][];
for (int i = 0; i < n; i++) {
int s =scanner.nextInt();
multiArray[i] = new int [s] ;
}
}
}