Problem cake
User vs358
Submission Time 2025-12-05 18:27:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cake.cpp:64:1: error: expected initializer before ‘vector’
64 | vector<int> v;
| ^~~~~~
cake.cpp: In function ‘void solve()’:
cake.cpp:78:9: error: ‘de_to_id’ was not declared in this scope
78 | de_to_id[arr[i]] = i;
| ^~~~~~~~
cake.cpp:79:22: error: ‘v’ was not declared in this scope
79 | if(n-i <= 9) v.push_back(i);
| ^
cake.cpp:99:20: error: ‘v’ was not declared in this scope
99 | if(v.back() == pre){
| ^
cake.cpp:104:25: error: ‘v’ was not declared in this scope
104 | st.push(v.back() + 1);
| ^
cake.cpp:106:17: error: ‘de_to_id’ was not declared in this scope
106 | de_to_id[st.top()] = de_to_id[st.top()-1];
| ^~~~~~~~
cake.cpp:114:16: error: ‘v’ was not declared in this scope
114 | if(v.empty()) mi =