func_code_string: #include <bits/stdc++.h>   using namespace std;   struct frnd {     int w;     int h;     frnd(int w, int h) : w(w), h(h) {}   };   bool cmp(frnd a, frnd b) { return a.h < b.h; }   int main() {     int n;     cin >> n;     vector<frnd> friends;     int sum = 0;     int height = 0;     int prevH = 0;     for (int i = 0; i < n; i++) {       int w, h;       cin >> w >> h;       frnd a(w, h);       friends.push_back(a);       sum += w;       if (h > height) {         prevH = height;         height = h;       } else {         if (h > prevH) {           prevH = h;         }       }     }     for (int i = 0; i < n; i++) {       cout << (sum - friends[i].w) * ((height == friends[i].h) ? prevH : height)            <<    ;     }     return 0;   }   