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_29320773_5109.cpp: In function 'int main()':
0_0_29320773_5109.cpp:13:25: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
         int len=strlen(a);
                         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstring:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:48,
                 from 0_0_29320773_5109.cpp:1:
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_29320773_5109.cpp:22:22: error: 'l' was not declared in this scope
                 if(k>l)
                      ^
0_0_29320773_5109.cpp:24:25: error: invalid types 'int[int]' for array subscript
                 if(a[a-1]=='y'&&a[b-1]=='r'&&a[k-1]=='x')
                         ^
0_0_29320773_5109.cpp:24:38: error: invalid types 'int[int]' for array subscript
                 if(a[a-1]=='y'&&a[b-1]=='r'&&a[k-1]=='x')
                                      ^
0_0_29320773_5109.cpp:24:51: error: invalid types 'int[int]' for array subscript
                 if(a[a-1]=='y'&&a[b-1]=='r'&&a[k-1]=='x')
                                                   ^
0_0_29320773_5109.cpp:26:25: error: invalid types 'int[int]' for array subscript
                 if(a[a-1]=='x'&&a[b-1]=='r'&&a[k-1]=='y')
                         ^
0_0_29320773_5109.cpp:26:38: error: invalid types 'int[int]' for array subscript
                 if(a[a-1]=='x'&&a[b-1]=='r'&&a[k-1]=='y')
                                      ^
0_0_29320773_5109.cpp:26:51: error: invalid types 'int[int]' for array subscript
                 if(a[a-1]=='x'&&a[b-1]=='r'&&a[k-1]=='y')
                                                   ^


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-09-28 12:48:57, Gzip enabled