106
GB
What is the output: template bool all(vectorv,functionp){for(T x:v) if(!p(x)) return false; return true;} cout<({2,4,6},[](int x){return x%2==0;});
IN
आउटपुट क्या है: template bool all(vectorv,functionp){for(T x:v) if(!p(x)) return false; सच लौटें;} कोउट
A
1
1
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
All even. Output: 1.
व्याख्या (हिन्दी)
सब सम. आउटपुट: 1.