0_0_38650503_23876.cpp:3:11: error: expected unqualified-id before numeric constant
#define P 1000000007
^~~~~~~~~~
0_0_38650503_23876.cpp:9:5: note: in expansion of macro 'P'
int P[1005];
^
0_0_38650503_23876.cpp: In function 'int main()':
0_0_38650503_23876.cpp:13:23: error: invalid types 'int[int]' for array subscript
dp[1][1]=1;S[1]=1;P[1]=1;
^
0_0_38650503_23876.cpp:20:27: error: invalid types 'int[long long int]' for array subscript
dp[i][j]=(dp[i][j]+P[j])%P;
^
0_0_38650503_23876.cpp:27:8: error: invalid types 'int[long long int]' for array subscript
P[i+1]=0;
^
0_0_38650503_23876.cpp:29:7: error: invalid types 'int[long long int]' for array subscript
P[j]=(P[j+1]+dp[i][j])%P;
^
0_0_38650503_23876.cpp:29:15: error: invalid types 'int[long long int]' for array subscript
P[j]=(P[j+1]+dp[i][j])%P;
^
|