Problem | doll_noi |
---|---|
User | wilson9304 |
Submission Time | 2025-02-15 18:54:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
doll_noi.cpp: In function ‘int main()’:
doll_noi.cpp:9:11: error: ‘class std::set<std::pair<int, int> >’ has no member named ‘push_back’
9 | dolls.push_back({-1000000, -1000000});
| ^~~~~~~~~
doll_noi.cpp:10:11: error: ‘class std::set<std::pair<int, int> >’ has no member named ‘push_back’
10 | dolls.push_back({1000000, 1000000});
| ^~~~~~~~~
doll_noi.cpp:32:22: error: assignment of member ‘std::pair<int, int>::first’ in read-only object
32 | a->first = size;
| ~~~~~~~~~^~~~~~
doll_noi.cpp:35:23: error: assignment of member ‘std::pair<int, int>::second’ in read-only object
35 | p->second = size;
| ~~~~~~~~~~^~~~~~