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_26356741_22187.cpp:5:6: error: 'N' was not declared in this scope
 }mem[N*2], *h[N], *null, *tot; 
      ^
0_0_26356741_22187.cpp:5:15: error: 'N' was not declared in this scope
 }mem[N*2], *h[N], *null, *tot; 
               ^
0_0_26356741_22187.cpp: In function 'void init()':
0_0_26356741_22187.cpp:14:15: error: 'mem' was not declared in this scope
  null = tot = mem; 
               ^
0_0_26356741_22187.cpp:17:22: error: 'n' was not declared in this scope
  for(int i = 1; i <= n; i++) h[i] = null; 
                      ^
0_0_26356741_22187.cpp:17:30: error: 'h' was not declared in this scope
  for(int i = 1; i <= n; i++) h[i] = null; 
                              ^
0_0_26356741_22187.cpp: In function 'heap* merge(heap*, heap*)':
0_0_26356741_22187.cpp:23:27: error: 'swap' was not declared in this scope
  if(x->v < y->v) swap(x, y); 
                           ^
0_0_26356741_22187.cpp:25:59: error: 'swap' was not declared in this scope
  if(x->ch[0]->dis < x->ch[1]->dis) swap(x->ch[0], x->ch[1]); 
                                                           ^


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-26 11:54:30, Gzip enabled