MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/map/map_q1.cpp:18–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17using namespace std;
18signed main(){
19 map<string,int> m;
20 int n;
21 cin>>n;
22 fr(i,0,n){
23 string s;
24 cin>>s;
25 m[s]++;
26 }
27 for(auto it:m)
28 cout<<it.first<<" "<<it.second<<endl;
29
30
31
32 return 0;
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected