1816
GB
What is the output: class A{mapm; public:int& at(const string& k){return m[k];} int get(const string& k)const{auto it=m.find(k);return it!=m.end()?it->second:0;}}; A a; a.at("x")=5; cout<
IN
आउटपुट क्या है: class A{mapm; public:int& at(const string& k){return m[k];} int get(const string& k)const{auto it=m.find(k);return it!=m.end()?it-> सेकेंड:0;}}; ए ए; a.at("x")=5; अदालत
A
50
50
B
55
55
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
x=5, y not found=0. Output: 50.
व्याख्या (हिन्दी)
x=5, y नहीं मिला=0. आउटपुट: 50.