0_0_17326194_14399.cpp:5:1: error: 'll' does not name a type
ll a[1005];
^
0_0_17326194_14399.cpp:6:7: error: 'll' does not name a type
const ll mod=1e9+7;
^
0_0_17326194_14399.cpp:7:1: error: 'll' does not name a type
ll A(ll x)
^
0_0_17326194_14399.cpp: In function 'int main()':
0_0_17326194_14399.cpp:17:15: error: 'll' was not declared in this scope
int n;ll p;
^
0_0_17326194_14399.cpp:18:28: error: 'p' was not declared in this scope
scanf("%d%lld",&n,&p);
^
0_0_17326194_14399.cpp:21:17: error: 'dp' was not declared in this scope
dp[i][j]=0;
^
0_0_17326194_14399.cpp:24:27: error: 'a' was not declared in this scope
scanf("%lld",&a[i]);
^
0_0_17326194_14399.cpp:25:26: error: 'A' was not declared in this scope
a[i]=A(a[i]%p);
^
0_0_17326194_14399.cpp:26:13: error: 'dp' was not declared in this scope
dp[i][a[i]]=1;
^
0_0_17326194_14399.cpp:30:21: error: 'dp' was not declared in this scope
if(dp[i-1][j])
^
0_0_17326194_14399.cpp:33:32: error: 'mod' was not declared in this scope
dp[i][j]%=mod;
^
0_0_17326194_14399.cpp:34:31: error: 'a' was not declared in this scope
dp[i][(j+a[i])%p]+=dp[i-1][j];
^
0_0_17326194_14399.cpp:37:26: error: 'dp' was not declared in this scope
printf("%lld\n",(dp[n][0]+1)%mod);
^
0_0_17326194_14399.cpp:37:38: error: 'mod' was not declared in this scope
printf("%lld\n",(dp[n][0]+1)%mod);
^
|