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_26507723_8892.cpp: In function 'int reverse(int*, int)':
0_0_26507723_8892.cpp:15:29: error: 'i' was not declared in this scope
        int k=Array[i];Array[i]=Array[len-i-1];Array[len-i-1]=k;
                             ^
0_0_26507723_8892.cpp:15:62: error: 'k' was not declared in this scope
        int k=Array[i];Array[i]=Array[len-i-1];Array[len-i-1]=k;
                                                              ^
0_0_26507723_8892.cpp:16:12: error: invalid conversion from 'int*' to 'int' [-fpermissive]
     return Array;
            ^
0_0_26507723_8892.cpp: In function 'int main()':
0_0_26507723_8892.cpp:30:10: error: incompatible types in assignment of 'int' to 'int [1010]'
         A=reverse(A,len1);
          ^
0_0_26507723_8892.cpp:31:10: error: incompatible types in assignment of 'int' to 'int [1010]'
         B=reverse(B,len2);
          ^


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-25 14:25:35, Gzip enabled