F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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())
           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 18:43:33, Gzip enabled