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_20535956_28218.cpp:62:9: error: conflicting declaration 'int a [20]'
 int a[20], b[20], T, s = 1;  
         ^
0_0_20535956_28218.cpp:4:5: note: previous declaration as 'int a [1000]'
 int a[1000],b[1000];
     ^
0_0_20535956_28218.cpp:62:16: error: conflicting declaration 'int b [20]'
 int a[20], b[20], T, s = 1;  
                ^
0_0_20535956_28218.cpp:4:13: note: previous declaration as 'int b [1000]'
 int a[1000],b[1000];
             ^
0_0_20535956_28218.cpp:62:22: error: conflicting declaration 'int s'
 int a[20], b[20], T, s = 1;  
                      ^
0_0_20535956_28218.cpp:5:5: note: previous declaration as 'int s [1000100]'
 int s[1000100];
     ^
0_0_20535956_28218.cpp: In function 'int main()':
0_0_20535956_28218.cpp:64:5: error: redefinition of 'int main()'
 int main() {  
     ^
0_0_20535956_28218.cpp:7:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_20535956_28218.cpp:73:39: error: lvalue required as increment operand
             printf("Case #%d: %d\n", s++, (ch[0] - '0' + dh[0] - '0') % 10);  
                                       ^
0_0_20535956_28218.cpp:124:38: error: lvalue required as increment operand
             printf("Case #%d: 0\n", s++);  
                                      ^
0_0_20535956_28218.cpp:126:39: error: lvalue required as increment operand
             printf("Case #%d: %s\n", s++, ans);  
                                       ^


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-29 19:57:54, Gzip enabled