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_26252359_8771.cpp:3:18: error: 'string' does not name a type
 int Sunday(const string& T, const string& P) {
                  ^
0_0_26252359_8771.cpp:3:35: error: 'string' does not name a type
 int Sunday(const string& T, const string& P) {
                                   ^
0_0_26252359_8771.cpp: In function 'int Sunday(const int&, const int&)':
0_0_26252359_8771.cpp:4:15: error: request for member 'length' in 'T', which is of non-class type 'const int'
     int n = T.length();
               ^
0_0_26252359_8771.cpp:5:15: error: request for member 'length' in 'P', which is of non-class type 'const int'
     int m = P.length();
               ^
0_0_26252359_8771.cpp:15:18: error: invalid types 'const int[int]' for array subscript
         shift[P[i]] = m - i;
                  ^
0_0_26252359_8771.cpp:24:22: error: invalid types 'const int[int]' for array subscript
         while(T[s + j] == P[j]) {
                      ^
0_0_26252359_8771.cpp:24:30: error: invalid types 'const int[int]' for array subscript
         while(T[s + j] == P[j]) {
                              ^
0_0_26252359_8771.cpp:34:27: error: invalid types 'const int[int]' for array subscript
         s += shift[T[s + m]];
                           ^


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-18 18:34:22, Gzip enabled