0_0_25720988_3079.cpp:7:17: error: 'MANX' was not declared in this scope
int ans[MAXN],a[MANX],n;
^
0_0_25720988_3079.cpp: In function 'void add(int, int)':
0_0_25720988_3079.cpp:16:35: error: expected primary-expression before ')' token
for(int i=x;i<=n;i+=lowbit(i)))tree[i]=(tree[i]+v)%MOD;
^
0_0_25720988_3079.cpp: In function 'int main()':
0_0_25720988_3079.cpp:23:42: error: 'a' was not declared in this scope
for(int i=1;i<=n;i++)scanf("%d",&a[i]);
^
0_0_25720988_3079.cpp:30:21: error: 'a' was not declared in this scope
add(a[j],dp[i-1][j]);
^
|