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

Compile Error

conversations_easy.cpp: In function ‘int32_t main()’:
conversations_easy.cpp:30:31: error: cannot convert ‘std::vector<long long int>::empty’ from type ‘bool (std::vector<long long int>::)() const noexcept’ to type ‘bool’
30 | while(!temp_stack.empty){
| ^~~~~
conversations_easy.cpp:30:31: error: in argument to unary !
conversations_easy.cpp:31:41: error: ‘class std::vector<long long int>’ has no member named ‘top’
31 | indexes.push(temp_stack.top());
| ^~~
conversations_easy.cpp:32:28: error: ‘class std::vector<long long int>’ has no member named ‘pop’
32 | temp_stack.pop();
| ^~~
conversations_easy.cpp:41:13: error: expected ‘}’ before ‘else’
41 | else final_output.push_back(indexes.top());
| ^~~~
conversations_easy.cpp:3