Problem ranges
User Xiaoyang
Submission Time 2025-06-21 17:17:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ranges.cpp: In function ‘bool cmp(std::pair<std::pair<long long int, long long int>, std::pair<long long int, long long int> >, std::pair<std::pair<long long int, long long int>, std::pair<long long int, long long int> >)’:
ranges.cpp:30:1: error: expected ‘;’ before ‘}’ token
30 | }
| ^
ranges.cpp: In function ‘int main()’:
ranges.cpp:45:13: error: ‘p’ was not declared in this scope
45 | s.insert(p[i].se.se);
| ^
ranges.cpp:47:12: error: ‘p’ was not declared in this scope
47 | s.erase(p[i].se.se);
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from ranges.cpp:1:
/usr/include/c++/9/bits/predefined_ops.h: In instantiation of