Draw different scenes with ofGetElapsedTimeMillis() // error on Array bound

Hi! I am making an animation video interactive with sound. I want to change different scenes which I draw already by specific time(seconds).
On ofApp.h I have

int timings[] = {5000, 6000, 7000, 8000}; /the numbers are the seconds which the scene will be change via ofGetElapsedTimeMillis()/
int sceneNum;
int numOfScenes;

but on int timings[] it writes me error (array bound cannot be deduced from an in-class initializer)
Do you have any ideas about how can I solve this?
(Maybe a very beginner question)

thanks
YK

int timings[4] = {5000, 6000, 7000, 8000};

this would fix it.

well, its show me the same error :confused:

sorry its correct! i updated it! thanks MRZL!
weel I have one more question.

on setup i have
sceneNum = 0;

on update

if (timings[sceneNum]<ofGetElapsedTimeMillis()){
    sceneNum++;
    sceneNum = sceneNum % numOfScenes;
}

and on draw
switch ( sceneNum ) {
case 0:
scene00();
break;
case 1:
scene01();
break;
case 2:
scene02();
break;
case 3:
scene03();
break;
case 4:
scene04();
break;
default:
cout << “scene does not exist” << endl;
break;
}

but it doesn’t compile and crush it.

Do you know what I missed? or if I am wrong …

Thanks again
YK

I solved it!
Thanks a lot again MRZL :grinning: