0_0_26307091_1126.cpp:3:19: error: 'string' has not been declared
int ladderLength(string start, string end, unorder_set<string>& dict)
^
0_0_26307091_1126.cpp:3:33: error: 'string' has not been declared
int ladderLength(string start, string end, unorder_set<string>& dict)
^
0_0_26307091_1126.cpp:3:45: error: 'unorder_set' has not been declared
int ladderLength(string start, string end, unorder_set<string>& dict)
^
0_0_26307091_1126.cpp:3:56: error: expected ',' or '...' before '<' token
int ladderLength(string start, string end, unorder_set<string>& dict)
^
0_0_26307091_1126.cpp: In member function 'int Solution::ladderLength(int, int, int)':
0_0_26307091_1126.cpp:5:3: error: 'queue' was not declared in this scope
queue<string> q1, q2, *p1, *p2;
^
0_0_26307091_1126.cpp:5:9: error: 'string' was not declared in this scope
queue<string> q1, q2, *p1, *p2;
^
0_0_26307091_1126.cpp:5:17: error: 'q1' was not declared in this scope
queue<string> q1, q2, *p1, *p2;
^
0_0_26307091_1126.cpp:5:21: error: 'q2' was not declared in this scope
queue<string> q1, q2, *p1, *p2;
^
0_0_26307091_1126.cpp:5:26: error: 'p1' was not declared in this scope
queue<string> q1, q2, *p1, *p2;
^
0_0_26307091_1126.cpp:5:31: error: 'p2' was not declared in this scope
queue<string> q1, q2, *p1, *p2;
^
0_0_26307091_1126.cpp:8:64: error: 'swap' was not declared in this scope
for (p1=&q1, p2=&q2, p1->push(start); p1->size(); swap(p1, p2))
^
0_0_26307091_1126.cpp:11:16: error: expected ';' before 'str'
for (string str; p1->size(); p1->pop())
^
0_0_26307091_1126.cpp:13:5: error: 'str' was not declared in this scope
str = p1->front();
^
0_0_26307091_1126.cpp:16:13: error: expected ';' before 's'
string s = str;
^
0_0_26307091_1126.cpp:23:7: error: 's' was not declared in this scope
s[i] = ch;
^
0_0_26307091_1126.cpp:29:11: error: 'dict' was not declared in this scope
if (dict.find(s)!=dict.end())
^
|