#include <stdio.h>
#define NUMBER 60
void set_idx(int *v, int n)
{
int i;
for(i = 0; i < n; i++)
v[i] = i;
}
int main(void)
{
int i;
int a[NUMBER];
set_idx(a, NUMBER);
for(i = 0; i < NUMBER; i++)
printf("a[%d] = %d\n", i
, a
[i
]);
return 0;
}
I2luY2x1ZGUgICAgPHN0ZGlvLmg+CgojZGVmaW5lICAgICBOVU1CRVIgICAgICA2MAoKdm9pZCAgICBzZXRfaWR4KGludCAqdiwgaW50IG4pCnsKICAgIGludCAgICAgaTsKICAgIAogICAgZm9yKGkgPSAwOyBpIDwgbjsgaSsrKQogICAgICAgIHZbaV0gPSBpOwp9CgppbnQgICAgIG1haW4odm9pZCkKewogICAgaW50ICAgICBpOwogICAgaW50ICAgICBhW05VTUJFUl07CgogICAgc2V0X2lkeChhLCBOVU1CRVIpOwoKICAgIGZvcihpID0gMDsgaSA8IE5VTUJFUjsgaSsrKQogICAgICAgIHByaW50ZigiYVslZF0gPSAlZFxuIiwgaSwgYVtpXSk7CgogICAgcmV0dXJuICAwOwp9Cg==