| Problem | foreveralone |
|---|---|
| User | P55D2K |
| Submission Time | 2023-04-21 16:53:52 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
foreveralone.cpp: In function ‘int main()’:
foreveralone.cpp:10:41: error: no match for ‘operator[]’ (operand types are ‘std::unordered_set<int>’ and ‘int’)
10 | for (int i = 0; i < n; i++) is_alone[i] = true;
| ^
foreveralone.cpp:16:21: error: no match for ‘operator[]’ (operand types are ‘std::unordered_set<int>’ and ‘int’)
16 | is_alone[a] = false;
| ^
foreveralone.cpp:17:21: error: no match for ‘operator[]’ (operand types are ‘std::unordered_set<int>’ and ‘int’)
17 | is_alone[b] = false;
| ^
foreveralone.cpp:22:21: error: no match for ‘operator[]’ (operand types are ‘std::unordered_set<int>’ and ‘int’)
22 | if (is_alone[i])
| ^