79494325

Date: 2025-03-08 11:52:11
Score: 0.5
Natty:
Report link

I've found a solution - which is the simplest (maybe not the most elegant):


void f4(double b=0.77, void (*pfa)(double b, int &a)= [] (double b, int &a){
     a *= b;
}) {
    int a = 9;
    auto f = [pfa, b] (int &a) {pfa(b, a);};
    f(a);
}

https://wandbox.org/permlink/uKwqe1reWwwEJAGC

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: AnArrayOfFunctions