Problem | floors |
---|---|
User | JerryCodebreaker |
Submission Time | 2024-07-31 22:56:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
floors.cpp: In function ‘long long int smallerThanX(std::unordered_set<long long int>&, long long int)’:
floors.cpp:4:13: error: ‘class std::unordered_set<long long int>’ has no member named ‘lower_bound’
4 | auto it = s.lower_bound(x+1);
| ^~~~~~~~~~~
floors.cpp: In function ‘int main()’:
floors.cpp:21:19: error: invalid initialization of reference of type ‘std::unordered_set<long long int>&’ from expression of type ‘std::set<long long int>’
21 | if(smallerThanX(s1,a)!=-1){
| ^~
floors.cpp:3:50: note: in passing argument 1 of ‘long long int smallerThanX(std::unordered_set<long long int>&, long long int)’
3 | long long smallerThanX(unordered_set<long long> &s, long long x){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^
floors.cpp:22:23: error: invalid initialization of reference of type ‘std::unordered_set<long long int>&’ from expression of typ