Problem conversations_easy
User Greywind
Submission Time 2026-07-27 17:52:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

conversations_easy.cpp: In function ‘int main()’:
conversations_easy.cpp:22:5: error: ‘stack’ was not declared in this scope
22 | stack<int> q;
| ^~~~~
conversations_easy.cpp:14:1: note: ‘std::stack’ is defined in header ‘<stack>’; did you forget to ‘#include <stack>’?
13 | #include<random>
+++ |+#include <stack>
14 | using namespace std;
conversations_easy.cpp:22:11: error: expected primary-expression before ‘int’
22 | stack<int> q;
| ^~~
conversations_easy.cpp:33:13: error: ‘q’ was not declared in this scope
33 | q.push(i);
| ^
conversations_easy.cpp:39:19: error: ‘q’ was not declared in this scope
39 | while(q.size()!=0 && p.find(q.top())!=p.end())
| ^
conversations_easy.cpp:46:13: error: ‘q’ was not declared in this scope
46 | q.pop();
| ^<