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_13809713_12528.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_13809713_12528.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_13809713_12528.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_13809713_12528.cpp:4:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_13809713_12528.cpp:5:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_13809713_12528.cpp:6:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_13809713_12528.cpp:17:5: error: 'vector' does not name a type
     vector edges;
     ^
0_0_13809713_12528.cpp:18:5: error: 'vector' does not name a type
     vector G[maxn];
     ^
0_0_13809713_12528.cpp: In member function 'void BellmanFord::init(int)':
0_0_13809713_12528.cpp:26:15: error: lvalue required as left operand of assignment
         this-n=n;
               ^
0_0_13809713_12528.cpp:28:13: error: expected ';' before 'G'
             G[i].clear();
             ^
0_0_13809713_12528.cpp:28:13: error: 'G' was not declared in this scope
0_0_13809713_12528.cpp:28:25: error: expected ')' before ';' token
             G[i].clear();
                         ^
0_0_13809713_12528.cpp:29:9: error: 'edges' was not declared in this scope
         edges.clear();
         ^
0_0_13809713_12528.cpp: In member function 'void BellmanFord::AddEdge(int, int, int)':
0_0_13809713_12528.cpp:33:9: error: 'edges' was not declared in this scope
         edges.push_back((Edge){from,to,dist});
         ^
0_0_13809713_12528.cpp:35:9: error: 'G' was not declared in this scope
         G[from].push_back(m-1);
         ^
0_0_13809713_12528.cpp: In member function 'bool BellmanFord::negativeCycle()':
0_0_13809713_12528.cpp:39:9: error: 'queueQ' was not declared in this scope
         queueQ;
         ^
0_0_13809713_12528.cpp:40:33: error: 'memset' was not declared in this scope
         memset(inq,0,sizeof(inq));
                                 ^
0_0_13809713_12528.cpp:43:9: error: expected ';' before '{' token
         {
         ^
0_0_13809713_12528.cpp:43:9: error: expected primary-expression before '{' token
0_0_13809713_12528.cpp:43:9: error: expected ')' before '{' token
0_0_13809713_12528.cpp:46:13: error: 'Q' was not declared in this scope
             Q.push(i);
             ^
0_0_13809713_12528.cpp:49:16: error: 'Q' was not declared in this scope
         while(!Q.empty())
                ^
0_0_13809713_12528.cpp:56:13: error: expected ';' before '{' token
             {
             ^
0_0_13809713_12528.cpp:56:13: error: expected primary-expression before '{' token
0_0_13809713_12528.cpp:56:13: error: expected ')' before '{' token
0_0_13809713_12528.cpp:57:25: error: 'edges' was not declared in this scope
                 Edge& e=edges[G[u][i]];
                         ^
0_0_13809713_12528.cpp:57:31: error: 'G' was not declared in this scope
                 Edge& e=edges[G[u][i]];
                               ^
0_0_13809713_12528.cpp:58:27: error: expected ')' before 'd'
                 if(d[e.to]d[u]+e.dist)
                           ^
0_0_13809713_12528.cpp:66:39: error: expected ')' before 'n'
                         if(++cnt[e.to]n)
                                       ^
0_0_13809713_12528.cpp: In function 'int main()':
0_0_13809713_12528.cpp:80:23: error: 'scanf' was not declared in this scope
      scanf("%d",&case1);
                       ^
0_0_13809713_12528.cpp:88:13: error: expected ';' before '{' token
             {
             ^
0_0_13809713_12528.cpp:88:13: error: expected primary-expression before '{' token
0_0_13809713_12528.cpp:88:13: error: expected ')' before '{' token
0_0_13809713_12528.cpp:95:13: error: expected ';' before '{' token
             {
             ^
0_0_13809713_12528.cpp:95:13: error: expected primary-expression before '{' token
0_0_13809713_12528.cpp:95:13: error: expected ')' before '{' token
0_0_13809713_12528.cpp:103:31: error: 'printf' was not declared in this scope
                 printf("YES\n");
                               ^
0_0_13809713_12528.cpp:105:30: error: 'printf' was not declared in this scope
                 printf("NO\n");
                              ^


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-06-25 13:49:44, Gzip enabled