0_0_30402945_25302.cpp: In function 'int main()':
0_0_30402945_25302.cpp:11:3: error: 'll' was not declared in this scope
ll cnt=1, ans=0;
^
0_0_30402945_25302.cpp:13:40: error: 'ans' was not declared in this scope
for(int i=0;i<n;++i){scanf("%d",a+i);ans+=a[i];d[i]=k-(a[i])%k;}
^
0_0_30402945_25302.cpp:14:23: error: 'cnt' was not declared in this scope
for(int i=0;i<n;++i)cnt+=a[i]/k;
^
0_0_30402945_25302.cpp:16:19: error: 'cnt' was not declared in this scope
for(int i=0;i<n-cnt;++i)ans+=d[i];
^
0_0_30402945_25302.cpp:16:27: error: 'ans' was not declared in this scope
for(int i=0;i<n-cnt;++i)ans+=d[i];
^
0_0_30402945_25302.cpp:17:17: error: 'ans' was not declared in this scope
printf("%d\n",ans+k);
^
|