0_0_38007555_15816.cpp: In function 'int main()':
0_0_38007555_15816.cpp:21:26: error: template argument 2 is invalid
map<ll,map<ll,ll>a> dp;
^
0_0_38007555_15816.cpp:21:26: error: template argument 4 is invalid
0_0_38007555_15816.cpp:21:30: error: invalid type in declaration before ';' token
map<ll,map<ll,ll>a> dp;
^
0_0_38007555_15816.cpp:30:7: error: invalid types 'int[int]' for array subscript
dp[0][0]=1;
^
0_0_38007555_15816.cpp:43:28: error: invalid types 'int[int]' for array subscript
dp[posa[x]][i - posa[x]] += dp[posa[x] - 1][i - posa[x]];
^
0_0_38007555_15816.cpp:43:60: error: invalid types 'int[int]' for array subscript
dp[posa[x]][i - posa[x]] += dp[posa[x] - 1][i - posa[x]];
^
0_0_38007555_15816.cpp:44:28: error: invalid types 'int[int]' for array subscript
dp[posa[x]][i - posa[x]]%=mod;
^
0_0_38007555_15816.cpp:48:31: error: invalid types 'int[int]' for array subscript
dp[i - posb[x]][posb[x]] += dp[i - posb[x]][posb[x] - 1];
^
0_0_38007555_15816.cpp:48:59: error: invalid types 'int[int]' for array subscript
dp[i - posb[x]][posb[x]] += dp[i - posb[x]][posb[x] - 1];
^
0_0_38007555_15816.cpp:49:31: error: invalid types 'int[int]' for array subscript
dp[i - posb[x]][posb[x]]%=mod;
^
0_0_38007555_15816.cpp:53:21: error: invalid types 'int[int]' for array subscript
cout << dp[n][n]<< '\n';
^
|