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_26196013_23320.cpp: In constructor 'edge::edge(int, int, int)':
0_0_26196013_23320.cpp:7:52: error: class 'edge' does not have any field named 'dis'
        edge(int a=0,int b=0,int c=0):from(a),to(b),dis(c){}
                                                    ^
0_0_26196013_23320.cpp: At global scope:
0_0_26196013_23320.cpp:13:22: error: 'maxn' was not declared in this scope
        vector<int> G[maxn];
                      ^
0_0_26196013_23320.cpp:14:17: error: 'maxn' was not declared in this scope
        bool inq[maxn];
                 ^
0_0_26196013_23320.cpp:15:14: error: 'maxn' was not declared in this scope
        int d[maxn];
              ^
0_0_26196013_23320.cpp:16:14: error: 'maxn' was not declared in this scope
        int p[maxn];
              ^
0_0_26196013_23320.cpp:17:16: error: 'maxn' was not declared in this scope
        int vnt[maxn];
                ^
0_0_26196013_23320.cpp:25:30: error: 'nt' has not been declared
        void addedge(int from,nt to,int dist) {
                              ^
0_0_26196013_23320.cpp: In member function 'void bellmnford::init()':
0_0_26196013_23320.cpp:21:33: error: 'maxn' was not declared in this scope
             for (int i = 0; i < maxn; ++) G[i].clear();
                                 ^
0_0_26196013_23320.cpp:21:41: error: expected primary-expression before ')' token
             for (int i = 0; i < maxn; ++) G[i].clear();
                                         ^
0_0_26196013_23320.cpp:21:43: error: 'G' was not declared in this scope
             for (int i = 0; i < maxn; ++) G[i].clear();
                                           ^
0_0_26196013_23320.cpp: In member function 'void bellmnford::addedge(int, int, int)':
0_0_26196013_23320.cpp:28:13: error: 'G' was not declared in this scope
             G[from].push_back(m-1);
             ^
0_0_26196013_23320.cpp: In member function 'bool bellmnford::negative(int)':
0_0_26196013_23320.cpp:33:20: error: 'inq' was not declared in this scope
             memset(inq,0,sizeof(inq));
                    ^
0_0_26196013_23320.cpp:34:20: error: 'cnt' was not declared in this scope
             memset(cnt,0,sizeof(cnt));
                    ^
0_0_26196013_23320.cpp:35:40: error: 'd' was not declared in this scope
             for(int i = 0; i < n; i++) d[i] = INF;
                                        ^
0_0_26196013_23320.cpp:35:47: error: 'INF' was not declared in this scope
             for(int i = 0; i < n; i++) d[i] = INF;
                                               ^
0_0_26196013_23320.cpp:36:13: error: 'd' was not declared in this scope
             d[s] = 0;
             ^
0_0_26196013_23320.cpp:43:37: error: 'G' was not declared in this scope
                 for (int i = 0; i < G[u].size(); i++) {
                                     ^
0_0_26196013_23320.cpp:45:32: error: 'INF' was not declared in this scope
                     if (d[u] < INF && d[e.to] > d[u]+e.dist) {
                                ^
0_0_26196013_23320.cpp:50:41: error: 'struct edge' has no member named 't'
                             if (++cnt[e.t] > n) return false;
                                         ^
0_0_26196013_23320.cpp: In function 'int main()':
0_0_26196013_23320.cpp:65:54: error: 'addedge' was not declared in this scope
         for (int i = 1; i <= 2000; i++) addedge(0,i,0);
                                                      ^
0_0_26196013_23320.cpp:67:32: error: 'l1' was not declared in this scope
             scanf ("%d%d%d%d",&l1,&r1,&l2,&r2);
                                ^
0_0_26196013_23320.cpp:67:36: error: 'r1' was not declared in this scope
             scanf ("%d%d%d%d",&l1,&r1,&l2,&r2);
                                    ^
0_0_26196013_23320.cpp:67:40: error: 'l2' was not declared in this scope
             scanf ("%d%d%d%d",&l1,&r1,&l2,&r2);
                                        ^
0_0_26196013_23320.cpp:67:44: error: 'r2' was not declared in this scope
             scanf ("%d%d%d%d",&l1,&r1,&l2,&r2);
                                            ^
0_0_26196013_23320.cpp:71:17: error: 'vis' was not declared in this scope
                 vis[l1][l2] = 2; //2dengyu
                 ^
0_0_26196013_23320.cpp:75:17: error: 'vis' was not declared in this scope
                 vis[l1][l2] = -1; //-1xiaoyu
                 ^
0_0_26196013_23320.cpp:81:17: error: 'vis' was not declared in this scope
                 vis[l1][l2] = 1;
                 ^
0_0_26196013_23320.cpp:87:17: error: 'vis' was not declared in this scope
                 vis[l1][r2] = 1;
                 ^


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-07-01 17:13:16, Gzip enabled