I'm trying to solve a programming problem. It needs to take in a single number, which is the number of additional lines it will be accepting. Why does this stop in the middle of accepting input?
int nums[] = {16, 1, 8, 0};
int m = 0;
int neededNums[m];
std::cin >> m;
for(unsigned int i = 0; i < m; i++) {
std::cin >> neededNums[i];
}
for(unsigned int i = 0; i < m; i++)
Solution(nums, neededNums[i]);