I created a dummy program to see if C++ was working, test.cpp:
int main(){
int a = 10;
return 0;
}
In my terminal, I typed:
gcc -Wall -c test.cpp -o test
./test
I got the following as the output:
bash: ./test: Permission denied
What can I do to be able to run my program?