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

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:23:19: error: ‘class std::set<long long int>’ has no member named ‘push_back’
23 | where.push_back(who);
| ^~~~~~~~~
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>’ an