Problem mamamintaplusa
User Xiaoyang
Submission Time 2024-12-05 13:38:00
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: expected ‘}’ before ‘else’
35 | else{
| ^~~~
mamamintaplusa.cpp:33:23: note: to match this ‘{’
33 | if(a[p]<b[pp]){
| ^
mamamintaplusa.cpp: In function ‘int main()’:
mamamintaplusa.cpp:56:17: error: ‘slope_a’ was not declared in this scope; did you mean ‘slopes_a’?
56 | slopes=combine(slope_a,slope_b);
| ^~~~~~~
| slopes_a
mamamintaplusa.cpp:56:25: error: ‘slope_b’ was not declared in this scope; did you mean ‘slopes_b’?
56 | slopes=combine(slope_a,slope_b);
| ^~~~~~~
| slopes_b