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_39864092_11957.cpp: In function 'int main()':
0_0_39864092_11957.cpp:7:43: error: 'arr' was not declared in this scope
    7 |                 for(int i=0;i<n;i++) cin>>arr[i];
      |                                           ^~~
0_0_39864092_11957.cpp:11:28: error: 'arr' was not declared in this scope
   11 |                     if(abs(arr[j])>abs(arr[maxIndex])) maxIndex=j;
      |                            ^~~
0_0_39864092_11957.cpp:12:26: error: 'arr' was not declared in this scope
   12 |                     swap(arr[i],arr[maxIndex]);
      |                          ^~~
0_0_39864092_11957.cpp:14:44: error: 'arr' was not declared in this scope
   14 |                 for(int i=0;i<n;i++) cout<<arr[i]<<" ";
      |                                            ^~~


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-12-12 23:44:05, Gzip enabled