This is my problem:
vector<int> RA(a), SA(a);
I need to determine the size of vector for "RA" and "SA" by using "a" which is a reference parameter that obtained from "getCurves" function.
I will get this error message everytime I compile - "vector subscript out of range".
However, there is not problem if I declare:
vector<int> RA(1000), SA(1000);
So, I wonder why this will happen and why can't I change the size of "RA"and "SA" with "a"?