Before you run the program (assuming you have NFD running), you must register the group prefix as multi-cast (even if you did not specifically define the group prefix):
$ nfdc strategy set <group-prefix> /localhost/nfd/strategy/multicast
The default (unless specified) group prefix is /svs for any build-in examples.
More on setting different strategies (like mutli-cast) for prefixes found here.