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_39864168_21726.cpp:3:1: error: 'coust' does not name a type; did you mean 'const'?
    3 | coust N=110;
      | ^~~~~
      | const
0_0_39864168_21726.cpp:4:9: error: 'N' was not declared in this scope
    4 | int arr=N;
      |         ^
0_0_39864168_21726.cpp: In function 'int main()':
0_0_39864168_21726.cpp:8:37: error: invalid types 'int[int]' for array subscript
    8 |         for(int i=0;i<n;i++)cin>>arr[i];
      |                                     ^
0_0_39864168_21726.cpp:9:25: error: request for member 'size' in 'arr', which is of non-class type 'int'
    9 |         for(int end=arr.size()-1;end>=0;end--)
      |                         ^~~~
0_0_39864168_21726.cpp:11:27: error: invalid types 'int[int]' for array subscript
   11 |                 if(abs(arr[i-1])>abs(arr[i])) swap(abs(arr[i]),abs(arr[i-1]));
      |                           ^
0_0_39864168_21726.cpp:11:41: error: invalid types 'int[int]' for array subscript
   11 |                 if(abs(arr[i-1])>abs(arr[i])) swap(abs(arr[i]),abs(arr[i-1]));
      |                                         ^
0_0_39864168_21726.cpp:11:59: error: invalid types 'int[int]' for array subscript
   11 |                 if(abs(arr[i-1])>abs(arr[i])) swap(abs(arr[i]),abs(arr[i-1]));
      |                                                           ^
0_0_39864168_21726.cpp:11:71: error: invalid types 'int[int]' for array subscript
   11 |                 if(abs(arr[i-1])>abs(arr[i])) swap(abs(arr[i]),abs(arr[i-1]));
      |                                                                       ^
0_0_39864168_21726.cpp:13:38: error: invalid types 'int[int]' for array subscript
   13 |         for(int i=0;i<n;i++)cout<<arr[i]<<" ";
      |                                      ^
0_0_39864168_21726.cpp: At global scope:
0_0_39864168_21726.cpp:16:1: error: expected declaration before '}' token
   16 | }
      | ^


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-13 01:57:43, Gzip enabled