I have just finished my code, I am stuck on these last two errors: "the value of parameter "n" cannot be used as a constant." I am using "int n" in my function to calculate average time.
void findavgTime(int option, int pids[], int arrivals[], int n, int bursts[], int quanta) {
int resp[n], ta_time[n], avg_resp_time = 0, avg_ta_time = 0;
How should I go by this?