Problem | lightningrod |
---|---|
User | username |
Submission Time | 2023-01-28 15:14:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:22:41: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘top’
22 | if (!chosen.empty() && x-chosen.top().first<=chosen.top().second-y) continue;
| ^~~
lightningrod.cpp:22:61: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘top’
22 | if (!chosen.empty() && x-chosen.top().first<=chosen.top().second-y) continue;
| ^~~
lightningrod.cpp:23:44: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘top’
23 | while (!chosen.empty() && x-chosen.top().first<=y-chosen.top().second){
| ^~~
lightningrod.cpp:23:66: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘top’
23 |