I have written a simple program in CLion C++ that solves USACO 2016 February Contest, BRONZE, Problem 1. Milk Pails. However, as I tried to run it, I got the following error
ld: open() failed, errno=21 for 'testing'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
I tried to Google the error code, and I went on the official JetBrains website to read CLion documentation and how to configure a compiler. Even after I followed all the instructions, the error was still there and the build still failed. As such, I have no idea what this error code means and I cannot run any code until I solve this error. I have clang installed on my computer with xcode-select --install
.
Can anybody help me configure CLion to avoid this issue?