F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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';
                     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-24 17:49:46, Gzip enabled