0_0_39329441_24174.cpp: In function 'int main()':
0_0_39329441_24174.cpp:29:66: error: expected ';' before 'auto'
29 | for(int i=0;i<n;i++)scanf("%lld",&p[i]),M+=p[i]-1;M=(M+1)/2
| ^
| ;
30 | auto A=calc(p,n/2),B=calc(p+n/2,n-n/2);
| ~~~~
0_0_39329441_24174.cpp:32:21: error: 'A' was not declared in this scope
32 | reverse(begin(A),end(A));
| ^
0_0_39329441_24174.cpp:34:17: error: 'B' was not declared in this scope
34 | for(;i<B.size()&&M-B[i].s-x.s>=0;i++){
| ^
|