Problem duckhunt5
User CKCodeBreaker55
Submission Time 2024-12-21 09:19:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:35:22: error: no match for ‘operator[]’ (operand types are ‘std::set<int>’ and ‘int’)
35 | if (online_users[i] >= x)
| ^
duckhunt5.cpp:37:27: error: no match for ‘operator[]’ (operand types are ‘std::set<int>’ and ‘int’)
37 | cout << online_users[i] << endl;
| ^