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_16149522_29979.cpp: In function 'int main()':
0_0_16149522_29979.cpp:32:31: error: invalid types 'char[int]' for array subscript
                 if((phone[i][j]-'0')!=(phone[i][j+1]-'0')-1)
                               ^
0_0_16149522_29979.cpp:32:52: error: invalid types 'char[int]' for array subscript
                 if((phone[i][j]-'0')!=(phone[i][j+1]-'0')-1)
                                                    ^
0_0_16149522_29979.cpp:40:31: error: invalid types 'char[int]' for array subscript
                 if((phone[i][j]-'0')!=(phone[i][j+1]-'0')+1)
                               ^
0_0_16149522_29979.cpp:40:52: error: invalid types 'char[int]' for array subscript
                 if((phone[i][j]-'0')!=(phone[i][j+1]-'0')+1)
                                                    ^
0_0_16149522_29979.cpp:46:27: error: invalid types 'char[int]' for array subscript
             c1=(phone[i][3]-'0')*1000+(phone[i][4]-'0')*100+(phone[i][5]-'0')*10+(phone[i][6]-'0');
                           ^
0_0_16149522_29979.cpp:46:50: error: invalid types 'char[int]' for array subscript
             c1=(phone[i][3]-'0')*1000+(phone[i][4]-'0')*100+(phone[i][5]-'0')*10+(phone[i][6]-'0');
                                                  ^
0_0_16149522_29979.cpp:46:72: error: invalid types 'char[int]' for array subscript
             c1=(phone[i][3]-'0')*1000+(phone[i][4]-'0')*100+(phone[i][5]-'0')*10+(phone[i][6]-'0');
                                                                        ^
0_0_16149522_29979.cpp:46:93: error: invalid types 'char[int]' for array subscript
             c1=(phone[i][3]-'0')*1000+(phone[i][4]-'0')*100+(phone[i][5]-'0')*10+(phone[i][6]-'0');
                                                                                             ^
0_0_16149522_29979.cpp:47:27: error: invalid types 'char[int]' for array subscript
             c2=(phone[i][7]-'0')*10+(phone[i][8]-'0');
                           ^
0_0_16149522_29979.cpp:47:48: error: invalid types 'char[int]' for array subscript
             c2=(phone[i][7]-'0')*10+(phone[i][8]-'0');
                                                ^
0_0_16149522_29979.cpp:48:27: error: invalid types 'char[int]' for array subscript
             c3=(phone[i][9]-'0')*10+(phone[i][10]-'0');
                           ^
0_0_16149522_29979.cpp:48:49: error: invalid types 'char[int]' for array subscript
             c3=(phone[i][9]-'0')*10+(phone[i][10]-'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-16 09:49:38, Gzip enabled