prog.cpp:49:11: error: ‘string’ was not declared in this scope
int match(string t, string s)
^~~~~~
prog.cpp:49:11: note: suggested alternative: ‘struct’
int match(string t, string s)
^~~~~~
struct
prog.cpp:49:21: error: ‘string’ was not declared in this scope
int match(string t, string s)
^~~~~~
prog.cpp:49:21: note: suggested alternative: ‘struct’
int match(string t, string s)
^~~~~~
struct
prog.cpp:49:29: error: expression list treated as compound expression in initializer [-fpermissive]
int match(string t, string s)
^
prog.cpp:60:12: error: ‘string’ was not declared in this scope
int presuf(string t, string s)
^~~~~~
prog.cpp:60:12: note: suggested alternative: ‘struct’
int presuf(string t, string s)
^~~~~~
struct
prog.cpp:60:22: error: ‘string’ was not declared in this scope
int presuf(string t, string s)
^~~~~~
prog.cpp:60:22: note: suggested alternative: ‘struct’
int presuf(string t, string s)
^~~~~~
struct
prog.cpp:60:30: error: expression list treated as compound expression in initializer [-fpermissive]
int presuf(string t, string s)
^
prog.cpp:71:1: error: ‘string’ does not name a type; did you mean ‘struct’?
string a, b;
^~~~~~
struct
prog.cpp: In function ‘lli solve(int, int, int, int)’:
prog.cpp:81:20: error: ‘a’ was not declared in this scope
int srt = t1 ? a[pos] - 'a' : 0;
^
prog.cpp:82:20: error: ‘b’ was not declared in this scope
int ert = t2 ? b[pos] - 'a' : 25;
^
prog.cpp: At global scope:
prog.cpp:93:32: error: ‘string’ has not been declared
int findGoodStrings(int n, string s1, string s2, string evil)
^~~~~~
prog.cpp:93:43: error: ‘string’ has not been declared
int findGoodStrings(int n, string s1, string s2, string evil)
^~~~~~
prog.cpp:93:54: error: ‘string’ has not been declared
int findGoodStrings(int n, string s1, string s2, string evil)
^~~~~~
prog.cpp: In member function ‘int Solution::findGoodStrings(int, int, int, int)’:
prog.cpp:95:9: error: ‘a’ was not declared in this scope
a = s1;
^
prog.cpp:96:9: error: ‘b’ was not declared in this scope
b = s2;
^
prog.cpp:98:9: error: ‘string’ was not declared in this scope
string s = evil;
^~~~~~
prog.cpp:98:9: note: suggested alternative: ‘struct’
string s = evil;
^~~~~~
struct
prog.cpp:99:17: error: ‘s’ was not declared in this scope
m = int(s.si);
^
prog.cpp:100:9: error: ‘vector’ was not declared in this scope
vector<string> v(m + 1, "");
^~~~~~
prog.cpp:100:24: error: ‘v’ was not declared in this scope
vector<string> v(m + 1, "");
^
prog.cpp:110:59: error: ‘presuf’ cannot be used as a function
phi[i][j] = presuf(s, v[i] + char('a' + j));
^
prog.cpp:115:9: error: ‘memset’ was not declared in this scope
memset(dp, -1, sizeof(dp));
^~~~~~
prog.cpp:115:9: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
prog.cpp:1:1:
+#include <cstring>
typedef long long int lli;
prog.cpp:115:9:
memset(dp, -1, sizeof(dp));
^~~~~~