accepted 0006 in c++