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_21299274_20470.cpp:3:5: error: 'stack' does not name a type
     stack<TreeNode*>sta;
     ^
0_0_21299274_20470.cpp:4:23: error: expected ')' before '*' token
     Solution(TreeNode *root) {
                       ^
0_0_21299274_20470.cpp:10:5: error: 'TreeNode' does not name a type
     TreeNode* next() {
     ^
0_0_21299274_20470.cpp:17:18: error: 'TreeNode' has not been declared
     void goAlong(TreeNode *temp){
                  ^
0_0_21299274_20470.cpp: In member function 'bool Solution::hasNext()':
0_0_21299274_20470.cpp:8:17: error: 'sta' was not declared in this scope
         return !sta.empty();
                 ^
0_0_21299274_20470.cpp: In member function 'void Solution::goAlong(int*)':
0_0_21299274_20470.cpp:19:13: error: 'sta' was not declared in this scope
             sta.push(temp);
             ^
0_0_21299274_20470.cpp:20:26: error: request for member 'left' in '* temp', which is of non-class type 'int'
             temp = temp->left;
                          ^


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-26 23:02:59, Gzip enabled