0_0_30220200_28519.cpp:3:7: error: 'maxn' was not declared in this scope
int h[maxn];
^
0_0_30220200_28519.cpp:4:9: error: 'maxn' was not declared in this scope
int out[maxn];
^
0_0_30220200_28519.cpp: In function 'int main()':
0_0_30220200_28519.cpp:18:44: error: 'h' was not declared in this scope
for (int i=1;i<=n;i++) scanf("%d",&h[i]);
^
0_0_30220200_28519.cpp:19:9: error: 'll' was not declared in this scope
ll resa=0,resb=0;
^
0_0_30220200_28519.cpp:21:32: error: 'out' was not declared in this scope
for (int i=1;i<=n;i++) out[i]=0;
^
0_0_30220200_28519.cpp:23:25: error: 'out' was not declared in this scope
if (2*i<=n) out[i]++;
^
0_0_30220200_28519.cpp:24:27: error: 'out' was not declared in this scope
if (2*i+1<=n) out[i]++;
^
0_0_30220200_28519.cpp:27:17: error: 'out' was not declared in this scope
if (out[i]==0){
^
0_0_30220200_28519.cpp:28:30: error: 'h' was not declared in this scope
pq.push(node{h[i],i});
^
0_0_30220200_28519.cpp:36:17: error: 'resa' was not declared in this scope
resa+=u.val;
^
0_0_30220200_28519.cpp:38:18: error: 'resb' was not declared in this scope
else resb+=u.val;
^
0_0_30220200_28519.cpp:40:13: error: 'out' was not declared in this scope
out[u.pos/2]--;
^
0_0_30220200_28519.cpp:42:30: error: 'h' was not declared in this scope
pq.push(node{h[u.pos/2],u.pos/2});
^
0_0_30220200_28519.cpp:45:30: error: 'resa' was not declared in this scope
printf("%lld %lld\n",resa,resb);
^
0_0_30220200_28519.cpp:45:35: error: 'resb' was not declared in this scope
printf("%lld %lld\n",resa,resb);
^
|