Hello, my program should output the longest increasing subsequence.
But when i run it it it stops exactly after i give the input.
This is in russian and for me it's hard to translate it in english exactly, so i show the image.
No i haven't "forgot : )", only after your reply i tried.
Yes, you are right, it crashes at line 50.
But why isn't the constant known?
Since from line 48 the compiler already knows n.
When the program is compiled (before it is run), the compiler does not know the value of n, hence it does not know how much space to allocate for sir and subsir.