added error directive cpp