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


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-12-05 10:11:50, Gzip enabled