How pass function to argument?(C++)

What does “This not work” means? Any errors, logs?