#include <string>, non <string.h>.
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum