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_35729731_29826.cpp: In function 'int main()':
0_0_35729731_29826.cpp:8:9: error: conflicting declaration 'int b'
     int b, c;
         ^
0_0_35729731_29826.cpp:7:16: note: previous declaration as 'char b [1010]'
     char a[N], b[N];
                ^
0_0_35729731_29826.cpp:14:34: error: invalid operands of types 'int' and 'char [1010]' to binary 'operator*'
             sum += (a[i] - 48) * b;
                                  ^


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-06-17 09:24:35, Gzip enabled