How to run c/c++ files on root

I really can’t say without a reproducer, but my best guess would be this or this.