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_13289678_1382.cpp:50:14: error: redefinition of 'int dp [100005]'
 int dp[100005], sta, end1, sum[100005];
              ^
0_0_13289678_1382.cpp:2:5: note: 'int dp [100005]' previously declared here
 int dp[100005], sta, end1, sum[100005];
     ^
0_0_13289678_1382.cpp:50:17: error: redefinition of 'int sta'
 int dp[100005], sta, end1, sum[100005];
                 ^
0_0_13289678_1382.cpp:2:17: note: 'int sta' previously declared here
 int dp[100005], sta, end1, sum[100005];
                 ^
0_0_13289678_1382.cpp:50:22: error: redefinition of 'int end1'
 int dp[100005], sta, end1, sum[100005];
                      ^
0_0_13289678_1382.cpp:2:22: note: 'int end1' previously declared here
 int dp[100005], sta, end1, sum[100005];
                      ^
0_0_13289678_1382.cpp:50:38: error: redefinition of 'int sum [100005]'
 int dp[100005], sta, end1, sum[100005];
                                      ^
0_0_13289678_1382.cpp:2:28: note: 'int sum [100005]' previously declared here
 int dp[100005], sta, end1, sum[100005];
                            ^
0_0_13289678_1382.cpp: In function 'int main()':
0_0_13289678_1382.cpp:51:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_13289678_1382.cpp:3:5: note: 'int main()' previously defined here
 int main()
     ^


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-09-22 01:50:10, Gzip enabled