examples: fix main() arguments and return