Problem | ccs |
---|---|
User | Shuhxin |
Submission Time | 2024-01-11 21:21:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ccs.cpp: In function ‘int main()’:
ccs.cpp:17:22: error: no match for ‘operator[]’ (operand types are ‘std::set<int>’ and ‘long long int’)
17 | if (a[k + 1] != a[k] + 1) {
| ^
ccs.cpp:17:34: error: no match for ‘operator[]’ (operand types are ‘std::set<int>’ and ‘long long int’)
17 | if (a[k + 1] != a[k] + 1) {
| ^
ccs.cpp:21:42: error: no match for ‘operator[]’ (operand types are ‘std::set<int>’ and ‘long long int’)
21 | else if (k == y - 1 and a[k + 1] == a[k] + 1) {
| ^
ccs.cpp:21:54: error: no match for ‘operator[]’ (operand types are ‘std::set<int>’ and ‘long long int’)
21 | else if (k == y - 1 and a[k + 1] == a[k] + 1) {
| ^