prog.cpp:1:1: error: no template named 'vector'
vector<int>dp(52,false);
^
prog.cpp:2:1: error: no template named 'vector'
vector<string>ret;
^
prog.cpp:2:8: error: use of undeclared identifier 'string'
vector<string>ret;
^
prog.cpp:3:1: error: no template named 'set'
set<string>st;
^
prog.cpp:3:5: error: use of undeclared identifier 'string'
set<string>st;
^
prog.cpp:5:1: error: no template named 'vector'
vector<int>words[52];
^
prog.cpp:6:1: error: unknown type name 'string'
string S;
^
prog.cpp:8:21: error: unknown type name 'string'
void solve(int pos, string line){
^
prog.cpp:15:9: error: unknown type name 'string'
string now;
^
prog.cpp:26:1: error: no template named 'vector'
vector<string> Solution::wordBreak(string A, vector<string> &B) {
^
prog.cpp:26:8: error: use of undeclared identifier 'string'
vector<string> Solution::wordBreak(string A, vector<string> &B) {
^
prog.cpp:26:16: error: use of undeclared identifier 'Solution'
vector<string> Solution::wordBreak(string A, vector<string> &B) {
^
prog.cpp:26:36: error: unknown type name 'string'
vector<string> Solution::wordBreak(string A, vector<string> &B) {
^
prog.cpp:26:46: error: no template named 'vector'
vector<string> Solution::wordBreak(string A, vector<string> &B) {
^
prog.cpp:26:53: error: use of undeclared identifier 'string'
vector<string> Solution::wordBreak(string A, vector<string> &B) {
^
15 errors generated.