0

What is an invalid use of a non-statistical data member?

This is an error that appeared in one of my programs https://code.sololearn.com/cSyMmDL3QZ2I/?ref=app

3rd Sep 2019, 7:41 PM
Mythical Coding
Mythical Coding - avatar
1 ответ
+ 2
The size of static array should be known at compile time so to create variable at compile time, you need to use: const static int XKPM = 0; in your code at line 37.
3rd Sep 2019, 9:03 PM
blACk sh4d0w
blACk sh4d0w - avatar