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_23194852_20128.cpp:47:9: error: redefinition of 'int a [15]'
 int a[15];
         ^
0_0_23194852_20128.cpp:7:5: note: 'int a [15]' previously declared here
 int a[15]; 
     ^
0_0_23194852_20128.cpp:48:5: error: redefinition of 'int sum'
 int sum, n;
     ^
0_0_23194852_20128.cpp:8:5: note: 'int sum' previously declared here
 int sum, n; 
     ^
0_0_23194852_20128.cpp:48:10: error: redefinition of 'int n'
 int sum, n;
          ^
0_0_23194852_20128.cpp:8:10: note: 'int n' previously declared here
 int sum, n; 
          ^
0_0_23194852_20128.cpp: In function 'void solve()':
0_0_23194852_20128.cpp:50:7: error: redefinition of 'void solve()'
 void  solve() {
       ^
0_0_23194852_20128.cpp:10:7: note: 'void solve()' previously defined here
 void  solve() { 
       ^
0_0_23194852_20128.cpp: In function 'int main()':
0_0_23194852_20128.cpp:68:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_23194852_20128.cpp:28:5: note: 'int main()' previously defined here
 int main() { 
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 22:32:29, Gzip enabled