#include <stdio.h>
c
;foo
(a
,n
)int*a
;{if(!n
)c
=0;else{foo
(a
+1, n
-1);!c
&&*a
&&printf("%d ",*a
)||(c
+=2*!*a
-1,0);};}
int main() {
int x[] = {12,3,0,101,11,1,0,0,14,0,28};
foo(x,sizeof(x)/sizeof(*x));
// your code goes here
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgoKYztmb28oYSxuKWludCphO3tpZighbiljPTA7ZWxzZXtmb28oYSsxLCBuLTEpOyFjJiYqYSYmcHJpbnRmKCIlZCAiLCphKXx8KGMrPTIqISphLTEsMCk7fTt9CiAgICAKCgppbnQgbWFpbigpIHsKCWludCB4W10gPSB7MTIsMywwLDEwMSwxMSwxLDAsMCwxNCwwLDI4fTsKCWZvbyh4LHNpemVvZih4KS9zaXplb2YoKngpKTsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXJldHVybiAwOwp9