Submission #3784656
Source Code Expand
#include<iostream> #include<algorithm> #include<map> #include<set> #include<vector> using namespace std; using ll = long long; using lli = long long int; ll MM = 1000000000; ll mod = MM + 7; #define INF (ll)1e18 int main(){ int n; cin >> n; string s; map<string, int> mp; for(int i = 0; i < n; i++){ cin >> s; mp[s]++; } int m; cin >> m; for(int i = 0; i < m; i++){ cin >> s; mp[s]--; } int ans = 0; for(auto e: blue){ ans = max(ans, (e.second - red[e.first])); } cout << ans << endl; }
Submission Info
Submission Time | |
---|---|
Task | B - Two Colors Card Game |
User | Kant |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 606 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:27:17: error: ‘blue’ was not declared in this scope for(auto e: blue){ ^ ./Main.cpp:28:36: error: ‘red’ was not declared in this scope ans = max(ans, (e.second - red[e.first])); ^