Problem yaleuniversity
User bribritt
Submission Time 2024-10-30 23:18:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

yaleuniversity.cpp: In function ‘int main()’:
yaleuniversity.cpp:23:9: error: ‘gp_hash_table’ was not declared in this scope
23 | gp_hash_table<string, int> mp;
| ^~~~~~~~~~~~~
yaleuniversity.cpp:23:29: error: expected primary-expression before ‘,’ token
23 | gp_hash_table<string, int> mp;
| ^
yaleuniversity.cpp:23:31: error: expected primary-expression before ‘int’
23 | gp_hash_table<string, int> mp;
| ^~~
yaleuniversity.cpp:27:13: error: ‘mp’ was not declared in this scope
27 | mp[st]++;
| ^~
yaleuniversity.cpp:29:45: error: ‘mp’ was not declared in this scope
29 | pair<string,int> bst = *max_element(mp.begin(),mp.end(),[](pair<string,int> a, pair<string,int> b){return a.second<b.second;});
| ^