func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     set<int> co[2];     set<pair<int, int> > delta[2];     int w, h, n;     scanf( %d%d%d , &w, &h, &n);     co[0].insert(0);     co[0].insert(w);     delta[0].insert(make_pair(w, 0));     co[1].insert(0);     co[1].insert(h);     delta[1].insert(make_pair(h, 0));     for (int i = (0), _end_ = (n); i < _end_; ++i) {       static char s[2];       static int first;       scanf( %s%d , s, &first);       int ty = s[0] ==  H ;       co[ty].insert(first);       auto it = co[ty].lower_bound(first);       auto tmp = it;       --tmp;       ++it;       delta[ty].erase(make_pair(*it - *tmp, *tmp));       delta[ty].insert(make_pair(first - *tmp, *tmp));       delta[ty].insert(make_pair(*it - first, first));       printf( %I64d n ,              (long long)delta[0].rbegin()->first * delta[1].rbegin()->first);     }     return 0;   }   