acode-plugin-acodex icon indicating copy to clipboard operation
acode-plugin-acodex copied to clipboard

No permission to execute 1st.cpp, also impossible to add execute permissions with chmod in termux

Open GGAGAGAG opened this issue 1 year ago • 1 comments

cant run code because 1st.cpp has no execute permissions and cant add permissions using chmod in termux my command in termux is chmod u+x 1st.cpp it doesn't give an error so it assume it is good but when i do ls -la, 1st.cpp still dosent have execute permisson

  • Device: [Redmi Note 12]
  • OS: [Android 14 xiaomi eu]
  • Termux [Github]

Additional context Screenshot_2024-04-23-13-29-20-990_com termux

rooted phone

GGAGAGAG avatar Apr 23 '24 05:04 GGAGAGAG

First you will need to compile the 1st.cpp because any system only understand the binary, so first compile your code using clang or g++ then it will produce a binary which can be run like this : ./1st

bajrangCoder avatar Apr 24 '24 02:04 bajrangCoder