Problem colour
User personjs
Submission Time 2025-01-07 09:14:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

colour.cpp: In function ‘int main()’:
colour.cpp:14:15: error: ‘const struct std::pair<int, int>’ has no member named ‘fi’
14 | if (it->fi != l) it--;
| ^~
colour.cpp:15:15: error: ‘const struct std::pair<int, int>’ has no member named ‘fi’
15 | if (it->fi <= l && it->sc >= r || r >= it->fi || l <= it->sc) {
| ^~
colour.cpp:15:30: error: ‘const struct std::pair<int, int>’ has no member named ‘sc’
15 | if (it->fi <= l && it->sc >= r || r >= it->fi || l <= it->sc) {
| ^~
colour.cpp:15:50: error: ‘const struct std::pair<int, int>’ has no member named ‘fi’
15 | if (it->fi <= l && it->sc >= r || r >= it->fi || l <= it->sc) {
| ^~
colour.cpp:15:65: error: ‘const struct std::pair<int, int>