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_26443227_18352.cpp:2:14: error: 'one' was not declared in this scope
 int exchange(one:int, two:int)
              ^
0_0_26443227_18352.cpp:2:23: error: 'two' was not declared in this scope
 int exchange(one:int, two:int)
                       ^
0_0_26443227_18352.cpp:2:30: error: expression list treated as compound expression in initializer [-fpermissive]
 int exchange(one:int, two:int)
                              ^
0_0_26443227_18352.cpp:3:1: error: expected ',' or ';' before '{' token
 {
 ^
0_0_26443227_18352.cpp: In function 'int main()':
0_0_26443227_18352.cpp:18:37: error: 'exchange' cannot be used as a function
         if(a_ >= b_) exchange(a_, b_);
                                     ^
0_0_26443227_18352.cpp:19:37: error: 'exchange' cannot be used as a function
         if(a_ >= c_) exchange(a_, c_);
                                     ^
0_0_26443227_18352.cpp:20:37: error: 'exchange' cannot be used as a function
         if(b_ >= c_) exchange(b_, c_);
                                     ^


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-07-03 05:12:21, Gzip enabled