/in/foo.c: In function 'main':
/in/foo.c:20:5: error: variable-sized object may not be initialized
int result[n]={1},buff[n]={1},sum=sum0;
^~~
/in/foo.c:20:20: warning: excess elements in array initializer
int result[n]={1},buff[n]={1},sum=sum0;
^
/in/foo.c:20:20: note: (near initialization for 'result')
/in/foo.c:20:5: error: variable-sized object may not be initialized
int result[n]={1},buff[n]={1},sum=sum0;
^~~
/in/foo.c:20:32: warning: excess elements in array initializer
int result[n]={1},buff[n]={1},sum=sum0;
^
/in/foo.c:20:32: note: (near initialization for 'buff')