Problem identifyinggirlfriends
User BeOH
Submission Time 2026-02-04 22:21:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

identifyinggirlfriends.cpp: In lambda function:
identifyinggirlfriends.cpp:17:70: error: expected ‘{’ before ‘const’
17 | cout << find_if(girlfriends.begin(),girlfriends.end(),[&]const pair<string,string> &ohhhh) {return ohhhh.second == query;} -> first << endl;
| ^~~~~
identifyinggirlfriends.cpp: In function ‘int32_t main()’:
identifyinggirlfriends.cpp:17:70: error: expected ‘)’ before ‘const’
17 | cout << find_if(girlfriends.begin(),girlfriends.end(),[&]const pair<string,string> &ohhhh) {return ohhhh.second == query;} -> first << endl;
| ~ ^~~~~
| )
identifyinggirlfriends.cpp:17:94: error: expected primary-expression before ‘>’ token
17 | cout <