Sorry
my code in c++
not in c
and my compiler is g++