c++ online code compiler code example
Example 1: online c compiler
You can try https://www.onlinegdb.com/ this as well, works really well for me.
You can also save code there.
Example 2: c compiler online
i reccomend online gdb https://www.onlinegdb.com/online_c_compiler