Problem conversations
User r1r2r3r4
Submission Time 2025-07-17 00:18:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

conversations.cpp: In function ‘int main()’:
conversations.cpp:20:39: error: ‘class std::stack<long long int>’ has no member named ‘begin’
20 | auto it = find(st.begin(), st.end(), x);
| ^~~~~
conversations.cpp:20:51: error: ‘class std::stack<long long int>’ has no member named ‘end’
20 | auto it = find(st.begin(), st.end(), x);
| ^~~
conversations.cpp:21:34: error: ‘class std::stack<long long int>’ has no member named ‘end’
21 | if (it != st.end()) st.erase(it);
| ^~~
conversations.cpp:21:44: error: ‘class std::stack<long long int>’ has no member named ‘erase’
21 | if (it != st.end()) st.erase(it);
| ^~~~~
conversations.cpp:23:25: error: ‘class std