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_38988829_5489.cpp:26:18: error: expected primary-expression before ';' token
   26 | const int MAXN = ;
      |                  ^
0_0_38988829_5489.cpp:30:12: error: expected primary-expression before ']' token
   30 | }edge[MAXN*];
      |            ^
0_0_38988829_5489.cpp:31:13: error: expected primary-expression before ']' token
   31 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
      |             ^
0_0_38988829_5489.cpp:31:25: error: size of array 'pre' is not an integral constant-expression
   31 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
      |                         ^~~~
0_0_38988829_5489.cpp:31:33: error: size of array 'a' is not an integral constant-expression
   31 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
      |                                 ^~~~
0_0_38988829_5489.cpp:31:45: error: size of array 'first' is not an integral constant-expression
   31 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
      |                                             ^~~~
0_0_38988829_5489.cpp:31:60: error: expected primary-expression before ']' token
   31 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
      |                                                            ^
0_0_38988829_5489.cpp:31:75: error: expected primary-expression before ']' token
   31 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
      |                                                                           ^
0_0_38988829_5489.cpp:31:81: error: size of array 'vis' is not an integral constant-expression
   31 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
      |                                                                                 ^~~~
0_0_38988829_5489.cpp:31:90: error: size of array 'fa' is not an integral constant-expression
   31 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
      |                                                                                          ^~~~
0_0_38988829_5489.cpp: In function 'void add(int, int)':
0_0_38988829_5489.cpp:33:5: error: 'edge' was not declared in this scope
   33 |     edge[ind].to = y;
      |     ^~~~
0_0_38988829_5489.cpp: In function 'void dfs(int, int, int)':
0_0_38988829_5489.cpp:41:15: error: expected primary-expression before ';' token
   41 |     vis[rt] = ;
      |               ^
0_0_38988829_5489.cpp:42:5: error: 'rev' was not declared in this scope
   42 |     rev[++tot] = rt;
      |     ^~~
0_0_38988829_5489.cpp:44:5: error: 'dfn' was not declared in this scope; did you mean 'dfs'?
   44 |     dfn[tot] = deq;
      |     ^~~
      |     dfs
0_0_38988829_5489.cpp:46:32: error: expected primary-expression before ';' token
   46 |     for(int i = pre[rt]; i != -; i = edge[i].next){
      |                                ^
0_0_38988829_5489.cpp:46:38: error: 'edge' was not declared in this scope
   46 |     for(int i = pre[rt]; i != -; i = edge[i].next){
      |                                      ^~~~
0_0_38988829_5489.cpp:49:23: error: expected primary-expression before ',' token
   49 |             dfs(t,deq+,rt);
      |                       ^
0_0_38988829_5489.cpp: At global scope:
0_0_38988829_5489.cpp:55:7: error: size of array 'b' is not an integral constant-expression
   55 | int b[MAXN],cnt;
      |       ^~~~
0_0_38988829_5489.cpp: In function 'void rmq()':
0_0_38988829_5489.cpp:57:17: error: expected primary-expression before ';' token
   57 |     for(int i = ; i <= tot; i++){
      |                 ^
0_0_38988829_5489.cpp:58:9: error: 'dp' was not declared in this scope
   58 |         dp[i][] = i;
      |         ^~
0_0_38988829_5489.cpp:58:15: error: expected primary-expression before ']' token
   58 |         dp[i][] = i;
      |               ^
0_0_38988829_5489.cpp:60:17: error: expected primary-expression before ';' token
   60 |     for(int i = ; i < ; i++){
      |                 ^
0_0_38988829_5489.cpp:60:23: error: expected primary-expression before ';' token
   60 |     for(int i = ; i < ; i++){
      |                       ^
0_0_38988829_5489.cpp:61:21: error: expected primary-expression before ';' token
   61 |         for(int j = ; j + ( << i) -  <= tot; j++){
      |                     ^
0_0_38988829_5489.cpp:61:29: error: expected primary-expression before '<<' token
   61 |         for(int j = ; j + ( << i) -  <= tot; j++){
      |                             ^~
0_0_38988829_5489.cpp:61:38: error: expected primary-expression before '<=' token
   61 |         for(int j = ; j + ( << i) -  <= tot; j++){
      |                                      ^~
0_0_38988829_5489.cpp:62:21: error: 'dp' was not declared in this scope
   62 |             int x = dp[j][i-];
      |                     ^~
0_0_38988829_5489.cpp:62:29: error: expected primary-expression before ']' token
   62 |             int x = dp[j][i-];
      |                             ^
0_0_38988829_5489.cpp:63:27: error: expected primary-expression before '<<' token
   63 |             int y = dp[j+(<<(i-))][i-];
      |                           ^~
0_0_38988829_5489.cpp:63:32: error: expected primary-expression before ')' token
   63 |             int y = dp[j+(<<(i-))][i-];
      |                                ^
0_0_38988829_5489.cpp:63:38: error: expected primary-expression before ']' token
   63 |             int y = dp[j+(<<(i-))][i-];
      |                                      ^
0_0_38988829_5489.cpp:64:16: error: 'dfn' was not declared in this scope; did you mean 'dfs'?
   64 |             if(dfn[x] > dfn[y]){
      |                ^~~
      |                dfs
0_0_38988829_5489.cpp: In function 'int lca(int, int)':
0_0_38988829_5489.cpp:76:31: error: expected primary-expression before ')' token
   76 |     int k = (int)(log(y - x + ) * 1.0 / log(2.0));
      |                               ^
0_0_38988829_5489.cpp:77:13: error: 'dp' was not declared in this scope
   77 |     int l = dp[x][k];
      |             ^~
0_0_38988829_5489.cpp:78:21: error: expected primary-expression before '<<' token
   78 |     int r = dp[y - (<<k) + ][k];
      |                     ^~
0_0_38988829_5489.cpp:78:28: error: expected primary-expression before ']' token
   78 |     int r = dp[y - (<<k) + ][k];
      |                            ^
0_0_38988829_5489.cpp:79:8: error: 'dfn' was not declared in this scope; did you mean 'dfs'?
   79 |     if(dfn[l] > dfn[r]){
      |        ^~~
      |        dfs
0_0_38988829_5489.cpp: In function 'int main()':
0_0_38988829_5489.cpp:87:21: error: expected primary-expression before ';' token
   87 |         for(int i = ; i <= n; i++)scanf("%d",&a[i]);
      |                     ^
0_0_38988829_5489.cpp:88:15: error: expected primary-expression before ';' token
   88 |         ind = ;
      |               ^
0_0_38988829_5489.cpp:89:21: error: expected primary-expression before ',' token
   89 |         memset(pre,-,sizeof(pre));
      |                     ^
0_0_38988829_5489.cpp:90:21: error: expected primary-expression before ';' token
   90 |         for(int i = ; i < n; i++){
      |                     ^
0_0_38988829_5489.cpp:95:15: error: expected primary-expression before ';' token
   95 |         tot = ;
      |               ^
0_0_38988829_5489.cpp:96:20: error: expected primary-expression before ',' token
   96 |         memset(vis,,sizeof(vis));
      |                    ^
0_0_38988829_5489.cpp:97:13: error: expected primary-expression before ',' token
   97 |         dfs(,,-);
      |             ^
0_0_38988829_5489.cpp:97:14: error: expected primary-expression before ',' token
   97 |         dfs(,,-);
      |              ^
0_0_38988829_5489.cpp:97:16: error: expected primary-expression before ')' token
   97 |         dfs(,,-);
      |                ^
0_0_38988829_5489.cpp:102:21: error: expected primary-expression before ')' token
  102 |             if(k == ){
      |                     ^
0_0_38988829_5489.cpp:109:23: error: expected primary-expression before ';' token
  109 |                 cnt = ;
      |                       ^
0_0_38988829_5489.cpp:110:26: error: 'rev' was not declared in this scope
  110 |                 int tp = rev[lca(x,y)];
      |                          ^~~
0_0_38988829_5489.cpp:122:40: error: expected primary-expression before ']' token
  122 |                 else printf("%d\n",b[k-]);
      |                                        ^
0_0_38988829_5489.cpp:126:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
  126 |     return ;
      |     ^~~~~~


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-02 08:24:25, Gzip enabled