c++ - I keep getting an error that the permission to the output file is denied and so my code can't run -


#include <iostream> #include <fstream> #include <iomanip> #include <cmath>  using namespace std;  int main() {         ifstream fin("problema24.in");         ofstream fout("problema24.out");         int n, i;         float v[1000];         fin>>n;         for(i=1;i<=2*n;i++)         {             fin>>v[i];         }         fin.close();         for(i=1;i<=n;i++)         {             v[i]=floor(v[i])+v[n*2-i+1]-floor(v[n*2-i+1]);         }         for(i=1;i<=n;i++)         {             fout<<setprecision(3)<<v[i]<<" ";         }         fout.close();         return 0; } 

// keep getting message:

ld.exe||cannot open output file bin\debug\problema 24.exe permission denied|

can guys me please!!

this can caused, if linker cannot create new binary named "bin\debug\problema 24.exe" because running. make sure executable not running linker can rebuild it.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -