не запускает код, выдаëт ошибку, не могу понять в чëм проблема
package com.javarush.task.pro.task05.task0510;
/*
Треугольный массив
*/
public class Solution {
public static int[][] result = new int[10][];
public static void main(String[] args) {
for (int i = 0; i < 10; i++){
result[i] = new int[++i];
}
int r;
for (int x = 0; x < 10; x++){
r = x;
for (int y = 0; y < result[r].length; y++){
result[r][y] = (r + y);
}
}
for (int xe = 0; xe < 10; xe++){
for (int ye = 0; ye < result[xe].length; ye++){
System.out.print(result[xe][ye] + " ");
}
System.out.println();
}
}
}