When I ran the above input with the corresponding code, I got the following results.
I checked that there are 5 results without any problems.
Just in case, put
fflush(stdout); in the last line of the code.
Do not use
These codes can lead to mistakes, making it difficult to find problems.
k are used to declare variables for the index.
© 2022 pinfo. All rights reserved.