1591
GB
What is the output: auto memoise=[](auto f){map c; return [=](int n)mutable{if(!c.count(n))c[n]=f(n); return c[n];};}; auto sq=memoise([](int n){return n*n;}); cout<
IN
आउटपुट क्या है: auto memoise=[](auto f){map c; वापसी [=](int n)mutable{if(!c.count(n))c[n]=f(n); वापसी सी[एन];};}; ऑटो sq=memoise([](int n){रिटर्न n*n;}); अदालत
A
2536
2536
B
Compile error
संकलन त्रुटि
C
Undefined
अपरिभाषित
D
25 36
25 36
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
sq(5)=25, sq(6)=36. Output: 2536.
व्याख्या (हिन्दी)
वर्ग(5)=25, वर्ग(6)=36. आउटपुट: 2536.