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_17717639_23487.cpp:5:18: error: expected ']' before ';' token
 #define M 1000100;
                  ^
0_0_17717639_23487.cpp:11:8: note: in expansion of macro 'M'
 } edge[M];
        ^
0_0_17717639_23487.cpp:11:9: error: expected unqualified-id before ']' token
 } edge[M];
         ^
0_0_17717639_23487.cpp:4:17: error: expected ']' before ';' token
 #define N 100100;
                 ^
0_0_17717639_23487.cpp:13:13: note: in expansion of macro 'N'
 int p, head[N];
             ^
0_0_17717639_23487.cpp:13:14: error: expected unqualified-id before ']' token
 int p, head[N];
              ^
0_0_17717639_23487.cpp:15:1: error: 'LL' does not name a type
 LL quickPow(LL x, LL y) 
 ^
0_0_17717639_23487.cpp:26:1: error: 'LL' does not name a type
 LL inv(LL x) 
 ^
0_0_17717639_23487.cpp: In function 'void add(int, int)':
0_0_17717639_23487.cpp:33:5: error: 'edge' was not declared in this scope
     edge[p].to = v;
     ^
0_0_17717639_23487.cpp:34:20: error: 'head' was not declared in this scope
     edge[p].next = head[u];
                    ^
0_0_17717639_23487.cpp: At global scope:
0_0_17717639_23487.cpp:38:1: error: 'LL' does not name a type
 LL w[N], ans[N], val[N], Sum;
 ^
0_0_17717639_23487.cpp:38:7: error: expected unqualified-id before ']' token
 LL w[N], ans[N], val[N], Sum;
       ^
0_0_17717639_23487.cpp:38:15: error: expected unqualified-id before ']' token
 LL w[N], ans[N], val[N], Sum;
               ^
0_0_17717639_23487.cpp:38:23: error: expected unqualified-id before ']' token
 LL w[N], ans[N], val[N], Sum;
                       ^
0_0_17717639_23487.cpp:4:17: error: expected ']' before ';' token
 #define N 100100;
                 ^
0_0_17717639_23487.cpp:39:9: note: in expansion of macro 'N'
 int dfn[N], low[N], dt, use[N];
         ^
0_0_17717639_23487.cpp:39:10: error: expected unqualified-id before ']' token
 int dfn[N], low[N], dt, use[N];
          ^
0_0_17717639_23487.cpp:39:18: error: expected unqualified-id before ']' token
 int dfn[N], low[N], dt, use[N];
                  ^
0_0_17717639_23487.cpp:39:30: error: expected unqualified-id before ']' token
 int dfn[N], low[N], dt, use[N];
                              ^
0_0_17717639_23487.cpp: In function 'void init(int)':
0_0_17717639_23487.cpp:43:5: error: 'Sum' was not declared in this scope
     Sum = dt = p = 0;
     ^
0_0_17717639_23487.cpp:43:11: error: 'dt' was not declared in this scope
     Sum = dt = p = 0;
           ^
0_0_17717639_23487.cpp:44:12: error: 'use' was not declared in this scope
     memset(use, 0, sizeof use);
            ^
0_0_17717639_23487.cpp:45:12: error: 'dfn' was not declared in this scope
     memset(dfn, 0, sizeof dfn);
            ^
0_0_17717639_23487.cpp:46:12: error: 'head' was not declared in this scope
     memset(head, -1, sizeof head);
            ^
0_0_17717639_23487.cpp: In function 'void dfs(int)':
0_0_17717639_23487.cpp:51:5: error: 'use' was not declared in this scope
     use[u] = 1; val[u] = w[u];
     ^
0_0_17717639_23487.cpp:51:17: error: 'val' was not declared in this scope
     use[u] = 1; val[u] = w[u];
                 ^
0_0_17717639_23487.cpp:51:26: error: 'w' was not declared in this scope
     use[u] = 1; val[u] = w[u];
                          ^
0_0_17717639_23487.cpp:52:17: error: 'head' was not declared in this scope
     for(int i = head[u]; ~i; i = edge[i].next) 
                 ^
0_0_17717639_23487.cpp:52:34: error: 'edge' was not declared in this scope
     for(int i = head[u]; ~i; i = edge[i].next) 
                                  ^
0_0_17717639_23487.cpp: At global scope:
0_0_17717639_23487.cpp:60:17: error: variable or field 'add' declared void
 inline void add(LL &x, LL y) 
                 ^
0_0_17717639_23487.cpp:60:17: error: 'LL' was not declared in this scope
0_0_17717639_23487.cpp:60:21: error: 'x' was not declared in this scope
 inline void add(LL &x, LL y) 
                     ^
0_0_17717639_23487.cpp:60:24: error: 'LL' was not declared in this scope
 inline void add(LL &x, LL y) 
                        ^
0_0_17717639_23487.cpp:67:1: error: 'LL' does not name a type
 LL tarjan(int fa, int u, int root) 
 ^
0_0_17717639_23487.cpp:4:17: error: expected ']' before ';' token
 #define N 100100;
                 ^
0_0_17717639_23487.cpp:106:9: note: in expansion of macro 'N'
 int vec[N];
         ^
0_0_17717639_23487.cpp:106:10: error: expected unqualified-id before ']' token
 int vec[N];
          ^
0_0_17717639_23487.cpp: In function 'int read()':
0_0_17717639_23487.cpp:111:21: error: 'isdigit' was not declared in this scope
     while(!isdigit(c)) c = getchar();
                     ^
0_0_17717639_23487.cpp:113:20: error: 'isdigit' was not declared in this scope
     while(isdigit(c)) 
                    ^
0_0_17717639_23487.cpp: In function 'int main()':
0_0_17717639_23487.cpp:127:37: error: 'w' was not declared in this scope
         for(int i = 1; i <= n; i++) w[i] = read();
                                     ^
0_0_17717639_23487.cpp:136:16: error: 'use' was not declared in this scope
             if(use[i]) continue;
                ^
0_0_17717639_23487.cpp:137:13: error: 'vec' was not declared in this scope
             vec[++tot] = i; dfs(i);
             ^
0_0_17717639_23487.cpp:138:17: error: 'Sum' was not declared in this scope
             add(Sum, val[i]);
                 ^
0_0_17717639_23487.cpp:138:22: error: 'val' was not declared in this scope
             add(Sum, val[i]);
                      ^
0_0_17717639_23487.cpp:141:23: error: 'vec' was not declared in this scope
             tarjan(0, vec[i], vec[i]);
                       ^
0_0_17717639_23487.cpp:141:37: error: 'tarjan' was not declared in this scope
             tarjan(0, vec[i], vec[i]);
                                     ^
0_0_17717639_23487.cpp:142:9: error: 'LL' was not declared in this scope
         LL S = 0;
         ^
0_0_17717639_23487.cpp:144:17: error: 'S' was not declared in this scope
             add(S, ans[i] * i % Mod);
                 ^
0_0_17717639_23487.cpp:144:20: error: 'ans' was not declared in this scope
             add(S, ans[i] * i % Mod);
                    ^
0_0_17717639_23487.cpp:145:26: error: 'S' was not declared in this scope
         printf("%LLd\n", S);
                          ^


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 05:30:04, Gzip enabled