Fix compiler warnings on Linux.
Remove unused parameters; check for required args.
Fix formatting.
Remove global usage of std namespace.
Remove explicit return from main function.