0_0_33674724_29447.cpp:2:2: error: expected unqualified-id before 'if'
if(k<a[0].x*2+1)
^
0_0_33674724_29447.cpp:7:2: error: 'ans' does not name a type
ans+=a[cou].val;
^
0_0_33674724_29447.cpp:8:2: error: 'k' does not name a type
k-=a[cou++].x+1;
^
0_0_33674724_29447.cpp:9:2: error: expected unqualified-id before 'while'
while(k>0&&cou<cur)
^
0_0_33674724_29447.cpp:17:8: error: expected constructor, destructor, or type conversion before '(' token
printf("%d\n",ans);
^
|