We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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:
Arrays Introduction
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?