Problem | mountainbridges |
---|---|
User | Josh28acc2 |
Submission Time | 2023-12-03 22:48:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mountainbridges.cpp: In function ‘void solve()’:
mountainbridges.cpp:132:10: error: ‘class std::stack<std::pair<long long int, long long int> >’ has no member named ‘push_back’
132 | mono.push_back(MP(arr[1], 1));
| ^~~~~~~~~
mountainbridges.cpp:136:12: error: ‘class std::stack<std::pair<long long int, long long int> >’ has no member named ‘pop_back’
136 | mono.pop_back();
| ^~~~~~~~
mountainbridges.cpp:138:32: error: ‘class std::stack<std::pair<long long int, long long int> >’ has no member named ‘back’
138 | if (!mono.empty() && mono.back().fi == arr[q]) { //can build bridge
| ^~~~
mountainbridges.cpp:139:30: error: ‘class std::stack<std::pair<long long int, long long int> >’ has no member named ‘back’
139 | ll counter = q-mono.back().se;
| ^~~~