The error message
ld.exe||cannot open output file bin\Debug\Assignemts.exe Permission denied
is quite clear.
ld.exe is the linker of the GCC (Gnu Compiler Collection). A linker puts the compiled source files and libraries together and creates the final executable. It is usually not called directly but when executing the compiler
gcc (or
g++ in your case) with linking parameters. In your case, it has no write permission to the output directory
bin\Debug\. The back slashes in the path indicate that you are using Windows. So you have to ensure that the user account executing the linker or compiler (probably your user account) is allowed to write to that directory.
Such may happen if you are using some kind of IDE (Integrated Development Environment) and created or used your project within the IDE using different accounts.
As a quick solution you may start the Windows Explorer and check the permissions of that directory (it is a relative directory and can probably be found below the project directory). To change the permission within the Explorer, you have to start it as the user who owns the directory or as administrator. Then select the project directory and apply the same ownership and permissions to that directory and all sub directories.