Sublime Text 3 doesn't run code after cin
on my Windows OS system. c++ code is running smoothly in Visual Studio Code.
What should I do?
#include <iostream>
using namespace std;
int main()
{
int n;
cout<<"Ente the value of n "<<endl;
cin>>n;
cout<<"value of n is="<<n<<endl;
return 0;
}
The error is:
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe:
cannot open output file
C:\Users\suraj\Desktop\resume\jayalji\background-generator/test.exe:
Permission denied collect2.exe: error: ld returned 1 exit status
[Finished in 0.6s]