0_0_39851747_14609.cpp: In function 'int main()':
0_0_39851747_14609.cpp:34:36: error: cannot convert 'main()::<lambda(double)>' to 'double (*)(double)'
34 | [=](double xx) { return parabola(xx, p1_x, p1_y, p2_y) - (k * xx + b); });
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| main()::<lambda(double)>
0_0_39851747_14609.cpp:5:51: note: initializing argument 3 of 'double simpsons_rule(double, double, double (*)(double))'
5 | double simpsons_rule(double a, double b, double (*f)(double)) {
| ~~~~~~~~~^~~~~~~~~~
|