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_29507477_3119.cpp:17:14: error: invalid declarator before 'g'
 vector<edge> g[80007];
              ^
0_0_29507477_3119.cpp: In function 'void dij(int)':
0_0_29507477_3119.cpp:38:17: error: 'g' was not declared in this scope
   for(int i=0;i<g[v].size();i++)
                 ^
0_0_29507477_3119.cpp: In function 'int main()':
0_0_29507477_3119.cpp:80:4: error: 'g' was not declared in this scope
    g[ma[make_pair(x1,y1)]].push_back(   edge(  ma[make_pair(x2,y2)],cost) );
    ^
0_0_29507477_3119.cpp:92:18: error: 'g' was not declared in this scope
    for(int j=0;j<g[i].size();j++)
                  ^


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