Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
186 views
in Technique[技术] by (71.8m points)

Permission Denied in VS Code while writing C code

My c program are not running in VS Code, it is showing that permission denied. When I turn off my real time scanning[ of MacAfee live safe] then it is working for me.

But I have to do that for my every C Program. Is there any permanent solution to it.

And, my rest of the language code are working properly.

My C Program Code

See the terminal and the my MacAfee notification

question from:https://stackoverflow.com/questions/65855883/permission-denied-in-vs-code-while-writing-c-code

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I got the solution. There is a two solution:

  1. First my file name was bubbleSort.cpp , but it has to be .c means bubbleSort.c as I was running C Program.
  2. If I want to run the code in .cpp then I should include #include<iostream> header file.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...