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_19150783_22238.cpp: In function 'void solve()':
0_0_19150783_22238.cpp:9:27: error: 'memset' was not declared in this scope
     memset(dp,0,sizeof(dp));
                           ^
0_0_19150783_22238.cpp:13:34: error: 'max' was not declared in this scope
         dp[1]=max(dp[1],a[i]*a[i]);
                                  ^
0_0_19150783_22238.cpp:19:64: error: 'min' was not declared in this scope
             if((l!=1)&&(r==n||a[l-1]>a[r+1]))Min=min(Min,a[--l]);
                                                                ^
0_0_19150783_22238.cpp:20:36: error: 'min' was not declared in this scope
             else Min=min(Min,a[++r]);
                                    ^


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-30 22:52:50, Gzip enabled