You are viewing a single comment's thread. Return to all comments →
Despite the code posted by JChiquin passed all of the test cases, the Visual Studio console did not give the same output until I modified the first while loop as:
while (std::cin >> A[i++] && i<N);
Did anyone stop by the same issue?