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_30501100_2388.cpp:8:4: error: 'N' was not declared in this scope
 }p[N];
    ^
0_0_30501100_2388.cpp:9:12: error: 'N' was not declared in this scope
 int belong[N], vis[N], head[N], tot, cnt, num, dfn[N], low[N], in[N], out[N];
            ^
0_0_30501100_2388.cpp:9:20: error: 'N' was not declared in this scope
 int belong[N], vis[N], head[N], tot, cnt, num, dfn[N], low[N], in[N], out[N];
                    ^
0_0_30501100_2388.cpp:9:29: error: 'N' was not declared in this scope
 int belong[N], vis[N], head[N], tot, cnt, num, dfn[N], low[N], in[N], out[N];
                             ^
0_0_30501100_2388.cpp:9:52: error: 'N' was not declared in this scope
 int belong[N], vis[N], head[N], tot, cnt, num, dfn[N], low[N], in[N], out[N];
                                                    ^
0_0_30501100_2388.cpp:9:60: error: 'N' was not declared in this scope
 int belong[N], vis[N], head[N], tot, cnt, num, dfn[N], low[N], in[N], out[N];
                                                            ^
0_0_30501100_2388.cpp:9:67: error: 'N' was not declared in this scope
 int belong[N], vis[N], head[N], tot, cnt, num, dfn[N], low[N], in[N], out[N];
                                                                   ^
0_0_30501100_2388.cpp:9:75: error: 'N' was not declared in this scope
 int belong[N], vis[N], head[N], tot, cnt, num, dfn[N], low[N], in[N], out[N];
                                                                           ^
0_0_30501100_2388.cpp:10:1: error: 'stack' does not name a type
 stack<int> sta;
 ^
0_0_30501100_2388.cpp: In function 'void init()':
0_0_30501100_2388.cpp:14:12: error: 'dfn' was not declared in this scope
     memset(dfn, 0, sizeof(dfn));
            ^
0_0_30501100_2388.cpp:14:31: error: 'memset' was not declared in this scope
     memset(dfn, 0, sizeof(dfn));
                               ^
0_0_30501100_2388.cpp:15:12: error: 'belong' was not declared in this scope
     memset(belong, 0, sizeof(belong));
            ^
0_0_30501100_2388.cpp:16:12: error: 'vis' was not declared in this scope
     memset(vis, 0, sizeof(vis));
            ^
0_0_30501100_2388.cpp:17:12: error: 'head' was not declared in this scope
     memset(head, -1, sizeof(head));
            ^
0_0_30501100_2388.cpp:18:12: error: 'in' was not declared in this scope
     memset(in, 0, sizeof(in));
            ^
0_0_30501100_2388.cpp:19:12: error: 'out' was not declared in this scope
     memset(out, 0, sizeof(out));
            ^
0_0_30501100_2388.cpp:20:11: error: 'sta' was not declared in this scope
     while(sta.size()) sta.pop();
           ^
0_0_30501100_2388.cpp: In function 'void add(int, int)':
0_0_30501100_2388.cpp:24:55: error: 'head' was not declared in this scope
     edge[tot].u = u; edge[tot].v = v; edge[tot].nxt = head[u]; head[u] = tot++;
                                                       ^
0_0_30501100_2388.cpp: In function 'bool dis(int, int)':
0_0_30501100_2388.cpp:28:23: error: 'p' was not declared in this scope
     double a = sqrt(((p[u].x - p[v].x) * (p[u].x - p[v].x) + (p[u].y - p[v].y) * (p[u].y - p[v].y)) * 1.0);
                       ^
0_0_30501100_2388.cpp:28:106: error: 'sqrt' was not declared in this scope
     double a = sqrt(((p[u].x - p[v].x) * (p[u].x - p[v].x) + (p[u].y - p[v].y) * (p[u].y - p[v].y)) * 1.0);
                                                                                                          ^
0_0_30501100_2388.cpp: In function 'void tarjan(int)':
0_0_30501100_2388.cpp:34:5: error: 'vis' was not declared in this scope
     vis[u] = 1;
     ^
0_0_30501100_2388.cpp:35:5: error: 'sta' was not declared in this scope
     sta.push(u);
     ^
0_0_30501100_2388.cpp:36:5: error: 'dfn' was not declared in this scope
     dfn[u] = low[u] = ++cnt;
     ^
0_0_30501100_2388.cpp:36:14: error: 'low' was not declared in this scope
     dfn[u] = low[u] = ++cnt;
              ^
0_0_30501100_2388.cpp:37:17: error: 'head' was not declared in this scope
     for(int i = head[u]; ~i; i = edge[i].nxt) {
                 ^
0_0_30501100_2388.cpp:50:13: error: 'belong' was not declared in this scope
             belong[v] = num; vis[v] = 0;
             ^
0_0_30501100_2388.cpp: In function 'int main()':
0_0_30501100_2388.cpp:59:19: error: 'scanf' was not declared in this scope
     scanf("%d", &t);
                   ^
0_0_30501100_2388.cpp:64:68: error: 'p' was not declared in this scope
         for(int i = 1; i <= n; i++) scanf("%I64d%I64d%I64d%I64d", &p[i].x, &p[i].y, &p[i].r, &p[i].c);
                                                                    ^
0_0_30501100_2388.cpp:71:41: error: 'dfn' was not declared in this scope
         for(int i = 1; i <= n; i++) if(!dfn[i]) tarjan(i);
                                         ^
0_0_30501100_2388.cpp:73:25: error: 'head' was not declared in this scope
             for(int i = head[u]; ~i; i = edge[i].nxt) {
                         ^
0_0_30501100_2388.cpp:75:20: error: 'belong' was not declared in this scope
                 if(belong[u] != belong[v]) {
                    ^
0_0_30501100_2388.cpp:76:21: error: 'out' was not declared in this scope
                     out[belong[u]]++;
                     ^
0_0_30501100_2388.cpp:77:21: error: 'in' was not declared in this scope
                     in[belong[v]]++;
                     ^
0_0_30501100_2388.cpp:83:16: error: 'in' was not declared in this scope
             if(in[i] == 0) {
                ^
0_0_30501100_2388.cpp:84:26: error: 'INF' was not declared in this scope
                 int mi = INF;
                          ^
0_0_30501100_2388.cpp:86:24: error: 'belong' was not declared in this scope
                     if(belong[j] == i) {
                        ^
0_0_30501100_2388.cpp:87:28: error: 'p' was not declared in this scope
                         if(p[j].c < mi) mi = p[j].c;
                            ^
0_0_30501100_2388.cpp:93:44: error: 'printf' was not declared in this scope
         printf("Case #%d: %d\n", cas++, ans);
                                            ^


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-23 00:38:49, Gzip enabled