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_14497519_28923.cpp: In function 'int main()':
0_0_14497519_28923.cpp:88:17: error: redeclaration of 'int v1'
             int v1=ms63;if(b[ed])v1=max(d[ed-1]+1,d[a[b[ed]]]+1);//从前而来的话,需要比前后都大
                 ^
0_0_14497519_28923.cpp:66:17: note: 'int v1' previously declared here
             int v1=ms63;if(b[st])v1=d[st-1]+1;//从前而来的话,只需比之前一个大即可
                 ^
0_0_14497519_28923.cpp:89:17: error: redeclaration of 'int v2'
             int v2=ms63;if(c[ed])v2=d[ed-1]+1;//从后而来的话,只需比之后一个大即可
                 ^
0_0_14497519_28923.cpp:67:17: note: 'int v2' previously declared here
             int v2=ms63;if(c[st])v2=max(d[st-1]+1,d[a[c[st]]]+1);//从后而来的话,需要比前后都大
                 ^
0_0_14497519_28923.cpp:91:17: error: redeclaration of 'int v'
             int v=min(v1,v2);//尝试取最小值更新它
                 ^
0_0_14497519_28923.cpp:69:17: note: 'int v' previously declared here
             int v=min(v1,v2);//尝试取最小值更新它
                 ^


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-10-02 15:57:13, Gzip enabled