I am using MinGW to run the g ++ compiler on Windows. Whenever I run the following code, it compiler gives strange results.
the code:
#include <iostream>
The problem does not occur when compiling the code. But as soon as I run the code and give input for n, it never asks for input a and never ends. I am using MinGW 5.1.6, are there any problems with this or are there any problems with my code?
source share