Problem lualectures
User ensonchew
Submission Time 2025-12-08 09:43:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lualectures.cpp: In function ‘int main()’:
lualectures.cpp:27: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> >]’
27 | if (I.begin() == I.end){
| ~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from lualectures.cpp:1:
/usr/include/c++/9/bits/stl_set.h:353:7: note: declared here
353 | end() const _GLIBCXX_NOEXCEPT
| ^~~