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_14303319_6702.cpp:11:31: error: macro "Swap" passed 3 arguments, but takes just 2
 void Swap(int *a, int m, int n){
                               ^
0_0_14303319_6702.cpp:40:21: error: macro "Swap" passed 3 arguments, but takes just 2
         Swap(a, 1, i);
                     ^
0_0_14303319_6702.cpp:11:6: error: variable or field 'Swap' declared void
 void Swap(int *a, int m, int n){
      ^
0_0_14303319_6702.cpp:12:5: error: expected primary-expression before 'int'
     int temp;
     ^
0_0_14303319_6702.cpp:12:5: error: expected '}' before 'int'
0_0_14303319_6702.cpp:13:5: error: 'temp' does not name a type
     temp = a[m];
     ^
0_0_14303319_6702.cpp:14:5: error: 'a' does not name a type
     a[m] = a[n];
     ^
0_0_14303319_6702.cpp:15:5: error: 'a' does not name a type
     a[n] = temp;
     ^
0_0_14303319_6702.cpp:16:1: error: expected declaration 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 06:19:01, Gzip enabled