Problem identifyinggirlfriends
User blob
Submission Time 2023-12-20 11:03:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

identifyinggirlfriends.cpp: In function ‘int main()’:
identifyinggirlfriends.cpp:8:16: error: ‘class std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >’ has no member named ‘first’
8 | cin >> names.first >> names.second();
| ^~~~~
identifyinggirlfriends.cpp:8:31: error: ‘class std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >’ has no member named ‘second’
8 | cin >> names.first >> names.second();
| ^~~~~~
identifyinggirlfriends.cpp:11:28: error: conflicting declaration ‘std::vector<std::pair<int, std::__cxx11::basic_string<char> > > query’
11 | vector <pair<int,string>> query;
| ^~~~~
identifyinggirlfriends.cpp:4:10: note: previous declaration as ‘int query’
4 | int N,q,query;
| ^~~~~