sample.c error