Saturday, February 26, 2022

[SOLVED] Termux permission denied

Issue

I want to execute a simple code in Termux(c++) but every time I get an error:

bash: ./test.cpp: Permission denied
Storage permission is on and gcc is installed. 

Do I need root or something else?


Solution

As molbdnilo said, you should compile your source file first :

g++ test.cpp

And then execute the binary produced (the default name is a.out)

./a.out


Answered By - Thana
Answer Checked By - Marie Seifert (WPSolving Admin)