Problem dyingpolynomial
User Usu
Submission Time 2025-11-02 22:06:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dyingpolynomial.cpp: In lambda function:
dyingpolynomial.cpp:188:30: error: ‘a’ is not captured
188 | auto f = [](int i){ return (a*i*i*i + b*i*i + c*i)};
| ^
dyingpolynomial.cpp:188:12: note: the lambda has no capture-default
188 | auto f = [](int i){ return (a*i*i*i + b*i*i + c*i)};
| ^
dyingpolynomial.cpp:185:6: note: ‘int a’ declared here
185 | int a, b, c; ll d;
| ^
dyingpolynomial.cpp:188:40: error: ‘b’ is not captured
188 | auto f = [](int i){ return (a*i*i*i + b*i*i + c*i)};
| ^
dyingpolynomial.cpp:188:12: note: the lambda has no capture-default
188 | auto f = [](int i){ return (a*i*i*i + b*i*i + c*i)};
| ^
dyingpolynomial.cpp:185:9: note: ‘int b’ declared here
185 | int a, b, c; ll d;
| ^
dyingpolynomial.cpp:188:48: error: ‘c’ is not captured
188 | auto f = [](