prog.cpp:3:19: error: ‘string’ has not been declared
bool isSubSeq(string& a, string& b)
^~~~~~
prog.cpp:3:30: error: ‘string’ has not been declared
bool isSubSeq(string& a, string& b)
^~~~~~
prog.cpp: In member function ‘bool Solution::isSubSeq(int&, int&)’:
prog.cpp:8:19: error: request for member ‘size’ in ‘a’, which is of non-class type ‘int’
while(i<a.size() && j<b.size())
^~~~
prog.cpp:8:33: error: request for member ‘size’ in ‘b’, which is of non-class type ‘int’
while(i<a.size() && j<b.size())
^~~~
prog.cpp:10:19: error: invalid types ‘int[int]’ for array subscript
if(a[i] == b[j]) // if the characters are matching
^
prog.cpp:10:27: error: invalid types ‘int[int]’ for array subscript
if(a[i] == b[j]) // if the characters are matching
^
prog.cpp:25:19: error: request for member ‘size’ in ‘a’, which is of non-class type ‘int’
if(i == a.size()) // if that is the case then i == a.size()
^~~~