foo.c: In function 'main':
foo.c:9:38: error: subscripted value is neither array nor pointer nor vector
for(i=1;i<=n;i++) ev[i]=(double)e[i][i];
^
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&Q);
^~~~~~~~~~~~~~~~~~~~
foo.c:7:20: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++) scanf("%d",&e[i]);
^~~~~~~~~~~~~~~~~
foo.c:8:20: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++) scanf("%d",&v[i]);
^~~~~~~~~~~~~~~~~
foo.c:11:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&l,&r,&V);
^~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务