0_0_37752983_20472.cpp: In function 'void solve()':
0_0_37752983_20472.cpp:21:9: error: 'segs' was not declared in this scope
segs.push_back({l, r});
^
0_0_37752983_20472.cpp:22:9: error: 'ed' was not declared in this scope
ed.push_back(r);
^
0_0_37752983_20472.cpp:25:10: error: 'segs' was not declared in this scope
sort(segs.begin(), segs.end());
^
0_0_37752983_20472.cpp:26:10: error: 'ed' was not declared in this scope
sort(ed.begin(), ed.end());
^
0_0_37752983_20472.cpp:45:9: error: redeclaration of 'int idx'
int idx = 0;
^
0_0_37752983_20472.cpp:30:9: note: 'int idx' previously declared here
int idx = 0;
^
0_0_37752983_20472.cpp:46:19: error: unable to deduce 'auto&&' from 'ed'
for (int it : ed) {
^
|