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_18649061_27166.cpp:7:15: error: array bound is not an integer constant before ']' token
 int dp[3][maxn][maxn];
               ^
0_0_18649061_27166.cpp:7:21: error: array bound is not an integer constant before ']' token
 int dp[3][maxn][maxn];
                     ^
0_0_18649061_27166.cpp:9:11: error: array bound is not an integer constant before ']' token
 int v[maxn];
           ^
0_0_18649061_27166.cpp:10:13: error: array bound is not an integer constant before ']' token
 int lcm[maxn][maxn];
             ^
0_0_18649061_27166.cpp:10:19: error: array bound is not an integer constant before ']' token
 int lcm[maxn][maxn];
                   ^
0_0_18649061_27166.cpp: In function 'int main()':
0_0_18649061_27166.cpp:34:13: error: 'lcm' was not declared in this scope
             lcm[i][j]=i*j/gcd(i,j);
             ^
0_0_18649061_27166.cpp:40:16: error: 'v' was not declared in this scope
                v[flag++]=i;
                ^
0_0_18649061_27166.cpp:42:11: error: 'dp' was not declared in this scope
    memset(dp,0,sizeof dp);
           ^
0_0_18649061_27166.cpp:44:19: error: 'v' was not declared in this scope
             dp[0][v[j]][v[j]]=1;
                   ^
0_0_18649061_27166.cpp:50:33: error: 'v' was not declared in this scope
                     dp[vv^1][e][v[f]]=0;
                                 ^
0_0_18649061_27166.cpp:55:20: error: 'v' was not declared in this scope
      if(!dp[vv][j][v[p]])
                    ^
0_0_18649061_27166.cpp:59:16: error: 'v' was not declared in this scope
       int tt=j+v[z];
                ^
0_0_18649061_27166.cpp:62:24: error: 'lcm' was not declared in this scope
       dp[vv^1][j+v[z]][lcm[z][v[p]]]+=dp[vv][j][v[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-10-02 15:25:51, Gzip enabled