scc.cpp example working