Problem mountainbridges
User Josh28acc2
Submission Time 2023-12-03 22:50:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mountainbridges.cpp: In function ‘void solve()’:
mountainbridges.cpp:140:18: error: invalid use of member function ‘std::stack<_Tp, _Sequence>::const_reference std::stack<_Tp, _Sequence>::top() const [with _Tp = std::pair<long long int, long long int>; _Sequence = std::deque<std::pair<long long int, long long int>, std::allocator<std::pair<long long int, long long int> > >; std::stack<_Tp, _Sequence>::const_reference = const std::pair<long long int, long long int>&]’ (did you forget the ‘()’ ?)
140 | ll gay = mono.top.se;
| ~~~~~^~~
| ()