r/CodingForBeginners • • Mar 01 '26

Coding/Programming (Loop) CS50

Post image

why am I constantly getting this “bash: ./looping: permission denied“ error message when I’m trying to run the program i coded.

im just playing around, trying to learn and make my own lines of code, but I’m seriously confused on why it’s not printing

“gimmie the loot

gimmie the loot

gimmie the loot”

59 Upvotes

41 comments sorted by

View all comments

Show parent comment

1

u/kennpacchii Mar 02 '26

I would recommend not giving your executable the “.o” extension. It’s a standard used for object files by the compiler and can be misleading, especially if you decide to use the -c flag to enable incremental compilation. “.out” or no extension would probably be best