Problem | doll_noi |
---|---|
User | wilson9304 |
Submission Time | 2025-02-16 09:35:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
doll_noi.cpp: In function ‘int main()’:
doll_noi.cpp:10:11: error: ‘class std::set<std::pair<int, int> >’ has no member named ‘emplace_back’; did you mean ‘emplace_hint’?
10 | dolls.emplace_back(-1000000, -1000000);
| ^~~~~~~~~~~~
| emplace_hint
doll_noi.cpp:11:11: error: ‘class std::set<std::pair<int, int> >’ has no member named ‘emplace_back’; did you mean ‘emplace_hint’?
11 | dolls.emplace_back(1000000, 1000000);
| ^~~~~~~~~~~~
| emplace_hint
doll_noi.cpp:33:22: error: assignment of member ‘std::pair<int, int>::first’ in read-only object
33 | a->first = size;
| ~~~~~~~~~^~~~~~
doll_noi.cpp:36:23: error: assignment of member ‘std::pair<int, int>::second’ in read-only object
36 | p->second = size;
| ~~~~~~~~~~^~~~~~