error: 'String' does not name a type In function

You most likely forgot to
#include <String.h>