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_29460096_28013.cpp:116:1: error: stray '\266' in program
 ¶þάÊý×é´úÂ룺
 ^
0_0_29460096_28013.cpp:116:1: error: stray '\376' in program
0_0_29460096_28013.cpp:116:1: error: stray '\316' in program
0_0_29460096_28013.cpp:116:1: error: stray '\254' in program
0_0_29460096_28013.cpp:116:1: error: stray '\312' in program
0_0_29460096_28013.cpp:116:1: error: stray '\375' in program
0_0_29460096_28013.cpp:116:1: error: stray '\327' in program
0_0_29460096_28013.cpp:116:1: error: stray '\351' in program
0_0_29460096_28013.cpp:116:1: error: stray '\264' in program
0_0_29460096_28013.cpp:116:1: error: stray '\372' in program
0_0_29460096_28013.cpp:116:1: error: stray '\302' in program
0_0_29460096_28013.cpp:116:1: error: stray '\353' in program
0_0_29460096_28013.cpp:116:1: error: stray '\243' in program
0_0_29460096_28013.cpp:116:1: error: stray '\272' in program
0_0_29460096_28013.cpp:125:11: error: redefinition of 'const int maxm'
 const int maxm = 500005;
           ^
0_0_29460096_28013.cpp:10:11: note: 'const int maxm' previously defined here
 const int maxm = 500005;
           ^
0_0_29460096_28013.cpp:126:11: error: redefinition of 'const int maxn'
 const int maxn = 100005;
           ^
0_0_29460096_28013.cpp:9:11: note: 'const int maxn' previously defined here
 const int maxn = 100005;
           ^
0_0_29460096_28013.cpp:127:17: error: redefinition of 'const long long int INF'
 const long long INF = 1e17;
                 ^
0_0_29460096_28013.cpp:8:17: note: 'const long long int INF' previously defined here
 const long long INF = 1e17;
                 ^
0_0_29460096_28013.cpp:128:8: error: redefinition of 'struct Edge'
 struct Edge
        ^
0_0_29460096_28013.cpp:13:8: error: previous definition of 'struct Edge'
 struct Edge
        ^
0_0_29460096_28013.cpp:134:15: error: invalid type in declaration before ';' token
 }edge[2][maxm];
               ^
0_0_29460096_28013.cpp:134:15: error: conflicting declaration 'int edge [2][500005]'
0_0_29460096_28013.cpp:20:2: note: previous declaration as 'Edge edge [500005]'
 }edge[maxm];
  ^
0_0_29460096_28013.cpp:135:8: error: redefinition of 'struct HeapNode'
 struct HeapNode
        ^
0_0_29460096_28013.cpp:21:8: error: previous definition of 'struct HeapNode'
 struct HeapNode
        ^
0_0_29460096_28013.cpp:145:5: error: redefinition of 'int n'
 int n, m, head[2][maxn];
     ^
0_0_29460096_28013.cpp:11:5: note: 'int n' previously declared here
 int n, m;
     ^
0_0_29460096_28013.cpp:145:8: error: redefinition of 'int m'
 int n, m, head[2][maxn];
        ^
0_0_29460096_28013.cpp:11:8: note: 'int m' previously declared here
 int n, m;
        ^
0_0_29460096_28013.cpp:147:18: error: redefinition of 'std::map<std::basic_string<char>, int> mp'
 map<string, int> mp;
                  ^
0_0_29460096_28013.cpp:12:18: note: 'std::map<std::basic_string<char>, int> mp' previously declared here
 map<string, int> mp;
                  ^
0_0_29460096_28013.cpp: In function 'int getid(std::string)':
0_0_29460096_28013.cpp:148:5: error: redefinition of 'int getid(std::string)'
 int getid(string s)
     ^
0_0_29460096_28013.cpp:69:5: note: 'int getid(std::string)' previously defined here
 int getid(string s)
     ^
0_0_29460096_28013.cpp: In function 'void Dijkstra(int, int)':
0_0_29460096_28013.cpp:165:63: error: no match for 'operator[]' (operand types are 'Edge' and 'int')
         for(int i = head[flag][now.u]; i != -1; i = edge[flag][i].next)
                                                               ^
0_0_29460096_28013.cpp:167:32: error: no match for 'operator[]' (operand types are 'Edge' and 'int')
             int to = edge[flag][i].v;
                                ^
0_0_29460096_28013.cpp:168:61: error: no match for 'operator[]' (operand types are 'Edge' and 'int')
             if(dis[flag][to] > dis[flag][now.u] + edge[flag][i].w)
                                                             ^
0_0_29460096_28013.cpp:170:62: error: no match for 'operator[]' (operand types are 'Edge' and 'int')
                 dis[flag][to] = dis[flag][now.u] + edge[flag][i].w;
                                                              ^
0_0_29460096_28013.cpp: In function 'int main()':
0_0_29460096_28013.cpp:176:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_29460096_28013.cpp:75:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_29460096_28013.cpp:190:20: error: no match for 'operator[]' (operand types are 'Edge' and 'int')
             edge[0][i] = Edge(u, v, w, head[0][u]);
                    ^
0_0_29460096_28013.cpp:192:20: error: no match for 'operator[]' (operand types are 'Edge' and 'int')
             edge[1][i] = Edge(v, u, w, head[1][v]);
                    ^
0_0_29460096_28013.cpp:207:28: error: no match for 'operator[]' (operand types are 'Edge' and 'int')
             int u = edge[0][i].u, v = edge[0][i].v;
                            ^
0_0_29460096_28013.cpp:208:37: error: no match for 'operator[]' (operand types are 'Edge' and 'int')
             long long dist = edge[0][i].w;
                                     ^
0_0_29460096_28013.cpp:209:41: error: 'v' was not declared in this scope
             if(ans > dis[0][u] + dis[1][v] + dist / 2)
                                         ^


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-28 09:10:20, Gzip enabled