used tool g++
To compile use following command in terminal
$g++ rock_paper_c.cpp -std=c++11
for linux or mac change command inside system() function in code for clear screen and for other stuffs
To execute use following command
$./a.out # for linux or mac
$.\a.exe # for windows