Problem ccs
User highdelao
Submission Time 2025-02-06 11:32:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int largerThanX(std::vector<int>, int)’:
ccs.cpp:5:19: error: ‘class std::vector<int>’ has no member named ‘upper_bound’
5 | auto it = vec.upper_bound(x);
| ^~~~~~~~~~~
ccs.cpp: In function ‘int main()’:
ccs.cpp:28:29: error: could not convert ‘asleep’ from ‘std::unordered_set<int>’ to ‘std::vector<int>’
28 | if (largerThanX(asleep, x-1) > y) {cout << "YES\n";}
| ^~~~~~
| |
| std::unordered_set<int>