Problem | park |
---|---|
User | justin271828 |
Submission Time | 2025-02-20 22:11:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
park.cpp: In function ‘int main()’:
park.cpp:90:32: error: conversion from ‘std::set<std::pair<int, long long int> >::iterator’ {aka ‘std::_Rb_tree_const_iterator<std::pair<int, long long int> >’} to non-scalar type ‘std::pair<int, long long int>’ requested
90 | il temp = split.upper_bound({mid, 0});
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~
park.cpp:91:14: error: ‘struct std::pair<int, long long int>’ has no member named ‘f’
91 | if (temp.f < next) {
| ^
park.cpp:93:23: error: ‘struct std::pair<int, long long int>’ has no member named ‘f’
93 | if (s.find(temp.f) != s.end()) {
| ^
park.cpp:94:28: error: ‘struct std::pair<int, long long int>’ has no member named ‘f’
94 | s.erase(s.find(temp.f));}}
| ^
park.cpp:95:36: error: ‘struct std::pair<int, long long int>’ has no memb