| Problem | swords |
|---|---|
| User | AaravRastogi |
| Submission Time | 2026-02-17 11:28:55 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:12:31: error: invalid use of non-static member function ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::end() const [with _Key = std::pair<long long int, long long int>; _Compare = std::less<std::pair<long long int, long long int> >; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<long long int, long long int> >]’
12 | for (auto it = A.begin(); it != A.end ; ++it){
| ~~~^~~~~~~~
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from swords.cpp:1:
/usr/include/c++/9/bits/stl_set.h:353:7: note: declared here
353 | end() const _GLIBCXX_NOEXCEPT
| ^~~
swords.cpp:13:34: error: