Install termux from f droid and install termux from that app. install clang and nano text editor . use nano text editor to create and run c++ program.