0_0_38496937_2064.c: In function 'main':
0_0_38496937_2064.c:7:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0;i<k;++i) scanf("%lld",&a[i]);
^
0_0_38496937_2064.c:7:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_38496937_2064.c:10:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int dep=1;dep<=m;++dep){
^
0_0_38496937_2064.c:12:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=1;i<=dep;++i) ppp*=n;
^
0_0_38496937_2064.c:13:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int cnt=1;cnt<=ppp;++cnt,++pos)
^
0_0_38496937_2064.c:14:27: error: lvalue required as left operand of assignment
(ans+=(m-dep)*a[pos]%p)%=p;
^
|