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_38572411_13330.cpp:47:5: error: 'cout' does not name a type; did you mean 'cosl'?
     cout<<"NO"<<endl;
     ^~~~
     cosl
0_0_38572411_13330.cpp:48:5: error: expected unqualified-id before 'return'
     return;
     ^~~~~~
0_0_38572411_13330.cpp:49:2: error: expected ';' after struct definition
 }
  ^
  ;
0_0_38572411_13330.cpp: In member function 'void node::bfs()':
0_0_38572411_13330.cpp:16:12: error: 'book' was not declared in this scope
     memset(book,0,sizeof(book));//1.    queue<node>q;
            ^~~~
0_0_38572411_13330.cpp:16:12: note: suggested alternative: 'bool'
     memset(book,0,sizeof(book));//1.    queue<node>q;
            ^~~~
            bool
0_0_38572411_13330.cpp:20:5: error: 'q' was not declared in this scope
     q.push(start);
     ^
0_0_38572411_13330.cpp:36:33: error: 't' was not declared in this scope
             now.v[j] = min(V[i],t.v[i] + t.v[j]);
                                 ^
0_0_38572411_13330.cpp: In function 'int main()':
0_0_38572411_13330.cpp:62:9: error: 'bfs' was not declared in this scope
         bfs();
         ^~~


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-23 03:19:53, Gzip enabled