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]];
^
|