Problem conversations_easy
User JhoCyber
Submission Time 2025-01-15 18:32:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

conversations_easy.cpp: In function ‘int32_t main()’:
conversations_easy.cpp:26:32: error: ‘class std::stack<long long int>’ has no member named ‘push_back’
26 | temp_stack.push_back(indexes.top());
| ^~~~~~~~~
conversations_easy.cpp:41:13: error: expected ‘}’ before ‘else’
41 | else final_output.push_back(indexes.top());
| ^~~~
conversations_easy.cpp:39:32: note: to match this ‘{’
39 | if(indexes.empty()){
| ^
conversations_easy.cpp: At global scope:
conversations_easy.cpp:45:5: error: ‘cout’ does not name a type
45 | cout << final_output;
| ^~~~
conversations_easy.cpp:46:1: error: expected declaration before ‘}’ token
46 | }
| ^