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_16109980_25587.cpp: In function 'int bfs()':
0_0_16109980_25587.cpp:18:17: error: invalid types 'char[int]' for array subscript
   for(i=0;a[i][0]!='0';i++)
                 ^
0_0_16109980_25587.cpp:20:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    if(vis[i]==1)
               ^
0_0_16109980_25587.cpp:22:13: error: invalid types 'char[int]' for array subscript
    if(a[i][0]==p)
             ^
0_0_16109980_25587.cpp:24:17: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
     s=strlen(a[i]);
                 ^
In file included from 0_0_16109980_25587.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/string.h:54:18: note: initializing argument 1 of 'size_t strlen(const char*)'
   size_t __cdecl strlen(const char *_Str);
                  ^
0_0_16109980_25587.cpp:25:16: error: invalid types 'char[int]' for array subscript
     if(a[i][s-1]=='m')
                ^
0_0_16109980_25587.cpp:30:11: error: incompatible types in assignment of 'int' to 'int [100]'
     vis[i]=1;
           ^
0_0_16109980_25587.cpp:31:20: error: invalid types 'char[int]' for array subscript
     Q.push(a[i][s-1]);
                    ^
0_0_16109980_25587.cpp: In function 'int main()':
0_0_16109980_25587.cpp:43:19: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   if(!strcmp(s,"0"))
                   ^
In file included from 0_0_16109980_25587.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/string.h:53:15: note: initializing argument 1 of 'int strcmp(const char*, const char*)'
   int __cdecl strcmp(const char *_Str1,const char *_Str2);
               ^
0_0_16109980_25587.cpp:46:12: error: invalid types 'char[int]' for array subscript
   if(a[i][0]=='b')
            ^
0_0_16109980_25587.cpp:48:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    s=strlen(a[i]);
                ^
In file included from 0_0_16109980_25587.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/string.h:54:18: note: initializing argument 1 of 'size_t strlen(const char*)'
   size_t __cdecl strlen(const char *_Str);
                  ^
0_0_16109980_25587.cpp:49:19: error: invalid types 'char[int]' for array subscript
    Q.push(a[i][s-1]);
                   ^


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-02-18 19:41:40, Gzip enabled