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_21377005_11977.cpp: In function 'void work()':
0_0_21377005_11977.cpp:18:36: error: 'min' was not declared in this scope
    minN[i][j]=min(minN[i][j-1],a[j]);
                                    ^
0_0_21377005_11977.cpp:19:36: error: 'max' was not declared in this scope
    maxN[i][j]=max(maxN[i][j-1],a[j]);
                                    ^
0_0_21377005_11977.cpp:45:55: error: 'max' was not declared in this scope
        ans=max(ans,f[1][i-1]+f[j+1][ii-1]+f[jj+1][n]+2);
                                                       ^
0_0_21377005_11977.cpp:47:2: error: 'cout' was not declared in this scope
  cout<<ans<<endl;
  ^
0_0_21377005_11977.cpp:47:13: error: 'endl' was not declared in this scope
  cout<<ans<<endl;
             ^


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-26 10:20:29, Gzip enabled