Problem | cups |
---|---|
User | Halud |
Submission Time | 2025-02-06 10:56:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cups.cpp: In function ‘int main()’:
cups.cpp:19:13: error: no match for ‘operator[]’ (operand types are ‘std::set<long long int>’ and ‘long long int’)
19 | if(s[mid] == y){
| ^
cups.cpp:23:18: error: no match for ‘operator[]’ (operand types are ‘std::set<long long int>’ and ‘long long int’)
23 | else if(s[mid]<y){
| ^
cups.cpp:38:26: error: cannot convert ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’} to ‘long long int’ in initialization
38 | for(int i = s.begin(); i != s.end();i++){
| ~~~~~~~^~
| |
| std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}
cups.cpp:38:32: error: no match for ‘operator!=’ (operand types are ‘long long int’ and ‘std::set<long long int>::iterator’ {aka