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_29100195_23667.cpp:2:12: error: 'N' was not declared in this scope
 double s_x[N];
            ^
0_0_29100195_23667.cpp:3:9: error: 'N' was not declared in this scope
 int s_t[N];
         ^
0_0_29100195_23667.cpp: In function 'void add(int, int, double)':
0_0_29100195_23667.cpp:7:4: error: 'E' was not declared in this scope
    E[++tot].to = b;
    ^
0_0_29100195_23667.cpp:7:8: error: 'tot' was not declared in this scope
    E[++tot].to = b;
        ^
0_0_29100195_23667.cpp:9:18: error: 'head' was not declared in this scope
    E[tot].next = head[a];
                  ^
0_0_29100195_23667.cpp: In function 'void SPFA(int, int)':
0_0_29100195_23667.cpp:25:4: error: 's_x' was not declared in this scope
    s_x[i] = INF ,s_t[i] = INF;
    ^
0_0_29100195_23667.cpp:25:13: error: 'INF' was not declared in this scope
    s_x[i] = INF ,s_t[i] = INF;
             ^
0_0_29100195_23667.cpp:25:18: error: 's_t' was not declared in this scope
    s_x[i] = INF ,s_t[i] = INF;
                  ^
0_0_29100195_23667.cpp:26:13: error: 'N' was not declared in this scope
    int mark[N] = {0};
             ^
0_0_29100195_23667.cpp:27:4: error: 'mark' was not declared in this scope
    mark[s] = 1;
    ^
0_0_29100195_23667.cpp:28:4: error: 's_x' was not declared in this scope
    s_x[s] = s_t[s] = 0;
    ^
0_0_29100195_23667.cpp:28:13: error: 's_t' was not declared in this scope
    s_x[s] = s_t[s] = 0;
             ^
0_0_29100195_23667.cpp:29:4: error: 'queue' was not declared in this scope
    queue<int>q;
    ^
0_0_29100195_23667.cpp:29:10: error: expected primary-expression before 'int'
    queue<int>q;
          ^
0_0_29100195_23667.cpp:30:4: error: 'q' was not declared in this scope
    q.push(s);
    ^
0_0_29100195_23667.cpp:37:19: error: 'head' was not declared in this scope
       for(int k = head[tou] ;k ;k = E[k].next)
                   ^
0_0_29100195_23667.cpp:37:37: error: 'E' was not declared in this scope
       for(int k = head[tou] ;k ;k = E[k].next)
                                     ^
0_0_29100195_23667.cpp: In function 'int main()':
0_0_29100195_23667.cpp:59:33: error: 'scanf' was not declared in this scope
    while(~scanf("%d %lf" ,&n ,&d))
                                 ^
0_0_29100195_23667.cpp:62:25: error: 'node' was not declared in this scope
       scanf("%lf %lf" ,&node[i].x ,&node[i].y);
                         ^
0_0_29100195_23667.cpp:63:14: error: 'head' was not declared in this scope
       memset(head ,0 ,sizeof(head));
              ^
0_0_29100195_23667.cpp:63:35: error: 'memset' was not declared in this scope
       memset(head ,0 ,sizeof(head));
                                   ^
0_0_29100195_23667.cpp:64:7: error: 'tot' was not declared in this scope
       tot = 1;
       ^
0_0_29100195_23667.cpp:68:27: error: 'node' was not declared in this scope
          double dis = pow(node[i].x - node[j].x ,2.0) + pow(node[i].y - node[j].y,2.0);
                           ^
0_0_29100195_23667.cpp:68:53: error: 'pow' was not declared in this scope
          double dis = pow(node[i].x - node[j].x ,2.0) + pow(node[i].y - node[j].y,2.0);
                                                     ^
0_0_29100195_23667.cpp:71:31: error: 'sqrt' was not declared in this scope
             add(i ,j ,sqrt(dis));
                               ^
0_0_29100195_23667.cpp:79:27: error: 'node' was not declared in this scope
          double dis = pow(node[i].x,2.0) + pow(node[i].y ,2.0);
                           ^
0_0_29100195_23667.cpp:79:40: error: 'pow' was not declared in this scope
          double dis = pow(node[i].x,2.0) + pow(node[i].y ,2.0);
                                        ^
0_0_29100195_23667.cpp:81:28: error: 'sqrt' was not declared in this scope
          add(s ,i ,sqrt(dis) - 7.5);
                            ^
0_0_29100195_23667.cpp:88:10: error: 's_x' was not declared in this scope
       if(s_x[t] == INF)
          ^
0_0_29100195_23667.cpp:88:20: error: 'INF' was not declared in this scope
       if(s_x[t] == INF)
                    ^
0_0_29100195_23667.cpp:89:32: error: 'printf' was not declared in this scope
       printf("can't be saved\n");
                                ^
0_0_29100195_23667.cpp:91:36: error: 's_t' was not declared in this scope
       printf("%.2lf %d\n" ,s_x[t] ,s_t[t]);
                                    ^
0_0_29100195_23667.cpp:91:42: error: 'printf' was not declared in this scope
       printf("%.2lf %d\n" ,s_x[t] ,s_t[t]);
                                          ^


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-25 06:50:45, Gzip enabled