Problem mononono
User PlayVoltz
Submission Time 2023-12-30 15:40:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mononono.cpp: In function ‘void insert(long long int, long long int)’:
mononono.cpp:13:38: error: expected initializer before ‘.’ token
13 | if (st.size()==i)stack<int> temp, st.pb(temp);
| ^
mononono.cpp:14:40: error: ‘class std::vector<std::stack<long long int> >’ has no member named ‘top’
14 | while (st[i].top()<num)insert(i+1, st.top()), st.pop();
| ^~~
mononono.cpp:14:51: error: ‘class std::vector<std::stack<long long int> >’ has no member named ‘pop’
14 | while (st[i].top()<num)insert(i+1, st.top()), st.pop();
| ^~~
mononono.cpp:15:5: error: ‘class std::vector<std::stack<long long int> >’ has no member named ‘push’
15 | st.push(num);
| ^~~~
At global scope:
cc1plus: error: ‘::main’ must return ‘int’