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_36058455_21469.cpp: In function 'int getMin(const char*, int)':
0_0_36058455_21469.cpp:22:18: error: request for member 'length' in 's', which is of non-class type 'const char*'
     while (i < s.length() && j < s.length()) {
                  ^
0_0_36058455_21469.cpp:22:36: error: request for member 'length' in 's', which is of non-class type 'const char*'
     while (i < s.length() && j < s.length()) {
                                    ^
0_0_36058455_21469.cpp:29:26: error: request for member 'length' in 's', which is of non-class type 'const char*'
             while (k < s.length() &&
                          ^
0_0_36058455_21469.cpp:30:34: error: request for member 'length' in 's', which is of non-class type 'const char*'
                    s[(i + k) % s.length()] == s[(j + k) % s.length()])
                                  ^
0_0_36058455_21469.cpp:30:61: error: request for member 'length' in 's', which is of non-class type 'const char*'
                    s[(i + k) % s.length()] == s[(j + k) % s.length()])
                                                             ^
0_0_36058455_21469.cpp:32:24: error: request for member 'length' in 's', which is of non-class type 'const char*'
             if (k >= s.length())
                        ^
0_0_36058455_21469.cpp:34:31: error: request for member 'length' in 's', which is of non-class type 'const char*'
             if (s[(i + k) % s.length()] > s[(j + k) % s.length()])
                               ^
0_0_36058455_21469.cpp:34:57: error: request for member 'length' in 's', which is of non-class type 'const char*'
             if (s[(i + k) % s.length()] > s[(j + k) % s.length()])
                                                         ^


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-22 23:37:07, Gzip enabled