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_39369207_3545.cpp:9:1: error: 'map' does not name a type
    9 | map <int,int> f;
      | ^~~
0_0_39369207_3545.cpp: In function 'int main()':
0_0_39369207_3545.cpp:33:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   33 |         sort(a + 1,a + n + 1,cmp);
      |         ^~~~
      |         short
0_0_39369207_3545.cpp:35:13: error: 'f' was not declared in this scope
   35 |             f[i] = a[i].z;
      |             ^
0_0_39369207_3545.cpp:40:49: error: 'f' was not declared in this scope
   40 |         for(int i = 1;i <= n;i++) ans = max(ans,f[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-11-22 13:25:19, Gzip enabled