| Problem | doll_noi |
|---|---|
| User | pasit |
| Submission Time | 2026-03-09 15:34:47 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
doll_noi.cpp: In function ‘int main()’:
doll_noi.cpp:20:9: error: expected primary-expression before ‘}’ token
20 | } else {
| ^
doll_noi.cpp:20:11: error: ‘else’ without a previous ‘if’
20 | } else {
| ^~~~
doll_noi.cpp:21:18: error: ‘x’ was not declared in this scope
21 | seen[x] = true;
| ^
doll_noi.cpp:23:46: error: no matching function for call to ‘std::set<std::pair<int, int> >::lower_bound(<brace-enclosed initializer list>)’
23 | auto it = segs.lower_bound({x, x});
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from doll_noi.cpp:1:
/usr/include/c++/9/bits/stl_set.h:829:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare