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_14303324_6681.c:11:31: error: macro "Swap" passed 3 arguments, but takes just 2
 void Swap(int *a, int m, int n){
                               ^
0_0_14303324_6681.c:11:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 void Swap(int *a, int m, int n){
                                ^
0_0_14303324_6681.c: In function 'HeapSort':
0_0_14303324_6681.c:40:21: error: macro "Swap" passed 3 arguments, but takes just 2
         Swap(a, 1, i);
                     ^
0_0_14303324_6681.c:40:9: error: 'Swap' undeclared (first use in this function)
         Swap(a, 1, i);
         ^
0_0_14303324_6681.c:40:9: note: each undeclared identifier is reported only once for each function it appears in
0_0_14303324_6681.c: At top level:
0_0_14303324_6681.c:63:1: error: expected identifier or '(' before '--' token
 --
 ^


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-09-28 04:21:04, Gzip enabled