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_33905160_11079.cpp: In function 'int main()':
0_0_33905160_11079.cpp:16:8: error: invalid types 'int[int]' for array subscript
   t[n+1] = '0';
        ^
0_0_33905160_11079.cpp:19:24: error: invalid types 'int[int]' for array subscript
    pt[i] = pt[i-1]+(t[i] == '1');
                        ^
0_0_33905160_11079.cpp:24:30: error: invalid types 'int[int]' for array subscript
    sf[i] = sf[i+1]+(s[i]!=t[i]);
                              ^
0_0_33905160_11079.cpp:28:34: error: invalid types 'int[int]' for array subscript
    int tmp = (s[i+1]=='1')+(t[i+1]=='0'); //
                                  ^


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-23 04:38:14, Gzip enabled