You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classMain {
staticvoidmain() {
int[][] test;
int[] a = newint[test[10]];
int[] b = newint[main()];
main()[10] = 1;
}
}
Output:
*** Error at (4,31): new array length must be an integer
*** Error at (5,31): new array length must be an integer
*** Error at (6,13): [] can only be applied to arrays
Should be:
*** Error at (4,27): new array length must be an integer
*** Error at (5,27): new array length must be an integer
*** Error at (6,15): [] can only be applied to arrays
The text was updated successfully, but these errors were encountered:
equation314
changed the title
Bad error position in SubNotIntError
Bad error position in BadNewArrayLength and SubNotIntError
Nov 4, 2019
Input:
Output:
Should be:
The text was updated successfully, but these errors were encountered: