Problem ccs
User AndyChen
Submission Time 2026-11-05 13:23:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:31:26: error: no match for ‘operator[]’ (operand types are ‘std::set<long long int>’ and ‘long long int’)
31 | if (where[mid] > x && where[mid] < y){
| ^
ccs.cpp:31:44: error: no match for ‘operator[]’ (operand types are ‘std::set<long long int>’ and ‘long long int’)
31 | if (where[mid] > x && where[mid] < y){
| ^
ccs.cpp:35:19: error: no match for ‘operator[]’ (operand types are ‘std::set<long long int>’ and ‘long long int’)
35 | else if (where[mid] < x){
| ^
ccs.cpp:39:19: error: no match for ‘operator[]’ (operand types are ‘std::set<long long int>’ and ‘long long int’)
39 | else if (where[mid] > y){
| ^