Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 7
    \$\begingroup\$ C++14, C++11 has no generic lambdas. \$\endgroup\$ Commented Apr 10, 2018 at 12:55
  • 1
    \$\begingroup\$ You could add the permissive flag to be able to remove the parenthesis around p (and -w to turn off the warning). \$\endgroup\$ Commented Apr 10, 2018 at 16:00
  • \$\begingroup\$ @nwp: wouldn't -fpermissive cost you the 12 bytes for that option, though? If it's not standard ISO C++ or GNU C++. \$\endgroup\$ Commented Apr 12, 2018 at 16:05
  • \$\begingroup\$ @PeterCordes It probably does and is intended to avoid having a trivial 0-byte solution for everything by passing the program via command line. I just didn't think about that here because it seems to not be abusive. \$\endgroup\$ Commented Apr 12, 2018 at 16:16
  • \$\begingroup\$ @Quentin fixed -> C++14 \$\endgroup\$ Commented Apr 15, 2018 at 7:15