What is an invalid use of a non-statistical data member? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
+ 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