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_32658758_2139.cpp:1:1: error: 'include' does not name a type
 include<bits/stdc++.h>
 ^
0_0_32658758_2139.cpp: In function 'void init()':
0_0_32658758_2139.cpp:15:47: error: 'memset' was not declared in this scope
     tol = 0; memset( head , -1 , sizeof(head) );
                                               ^
0_0_32658758_2139.cpp: In function 'void dijkstra()':
0_0_32658758_2139.cpp:42:5: error: 'priority_queue' was not declared in this scope
     priority_queue<node>Q;
     ^
0_0_32658758_2139.cpp:42:24: error: expected primary-expression before '>' token
     priority_queue<node>Q;
                        ^
0_0_32658758_2139.cpp:42:25: error: 'Q' was not declared in this scope
     priority_queue<node>Q;
                         ^
0_0_32658758_2139.cpp: In function 'int main()':
0_0_32658758_2139.cpp:72:30: error: 'scanf' was not declared in this scope
     int T; scanf ( "%d" , &T );
                              ^
0_0_32658758_2139.cpp:84:29: error: 'printf' was not declared in this scope
             printf ( "-1\n" );
                             ^
0_0_32658758_2139.cpp:86:51: error: 'log2' was not declared in this scope
             printf ( "%d\n" , (int)log2(dis[n]*1.0) );
                                                   ^
0_0_32658758_2139.cpp:86:53: error: 'printf' was not declared in this scope
             printf ( "%d\n" , (int)log2(dis[n]*1.0) );
                                                     ^


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-29 14:55:17, Gzip enabled