When you compile a file with gcc, you do so with your user permissions, therefore you have permission to execute the file.
You may not have permission to execute files in /usr/bin, or, /usr/bin is not in your PATH environment variable. In that case, you must either give the full path to the executable to run it, cd to /usr/bin to run the executable, or add /usr/bin to your path.
|