Problem mamamintaplusa
User Xiaoyang
Submission Time 2024-12-05 13:34:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mamamintaplusa.cpp: In function ‘std::vector<long long int> combine(std::vector<long long int>, std::vector<long long int>)’:
mamamintaplusa.cpp:35:9: error: ‘else’ without a previous ‘if’
35 | else ret.pb(b[pp]);pp++;
| ^~~~
mamamintaplusa.cpp: In function ‘int main()’:
mamamintaplusa.cpp:49:12: error: ‘slopes_b’ was not declared in this scope; did you mean ‘slope_b’?
49 | rep(i,1,m)slopes_b.pb(b[i]-b[i-1]);
| ^~~~~~~~
| slope_b