Problem whiteboardgame
User asruby
Submission Time 2024-12-02 22:59:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

whiteboardgame.cpp: In function ‘int32_t main()’:
whiteboardgame.cpp:39:25: error: ‘std::set<std::pair<long long int, long long int> >::iterator’ {aka ‘struct std::_Rb_tree_const_iterator<std::pair<long long int, long long int> >’} has no member named ‘first’
39 | arrmin = *(s.begin()).first;
| ^~~~~
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from whiteboardgame.cpp:1:
/usr/include/c++/9/bits/stl_set.h: In instantiation of ‘void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = long long int; _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> >]’:
whiteboardgame.cpp:26:17: required from here
/usr/in