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_27203671_19010.cpp:38:1: error: stray '\322' in program
 leetcode hdu 11ҳ 
 ^
0_0_27203671_19010.cpp:38:1: error: stray '\263' in program
0_0_27203671_19010.cpp:6:20: error: field 'right' has incomplete type 'Node'
  struct Node* left,right;
                    ^
0_0_27203671_19010.cpp: In function 'int getleveNum(Node*)':
0_0_27203671_19010.cpp:12:11: error: 'NULL' was not declared in this scope
  if(Tree==NULL)
           ^
0_0_27203671_19010.cpp:13:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   return ;
   ^
0_0_27203671_19010.cpp:14:2: error: 'queue' was not declared in this scope
  queue<Node*>Q;
  ^
0_0_27203671_19010.cpp:14:2: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_27203671_19010.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:96:11: note:   'std::queue'
     class queue
           ^
0_0_27203671_19010.cpp:14:12: error: expected primary-expression before '*' token
  queue<Node*>Q;
            ^
0_0_27203671_19010.cpp:14:13: error: expected primary-expression before '>' token
  queue<Node*>Q;
             ^
0_0_27203671_19010.cpp:14:14: error: 'Q' was not declared in this scope
  queue<Node*>Q;
              ^
0_0_27203671_19010.cpp:15:7: error: request for member 'level' in 'Tree', which is of pointer type 'Node*' (maybe you meant to use '->' ?)
  Tree.level=0;
       ^
0_0_27203671_19010.cpp:21:19: error: base operand of '->' has non-pointer type 'Node'
   levelNodeNum[tou->level]++;
                   ^
0_0_27203671_19010.cpp:22:6: error: 'maxLevelNum' was not declared in this scope
   if(maxLevelNum<levelNodeNum[tou->level])
      ^
0_0_27203671_19010.cpp:22:34: error: base operand of '->' has non-pointer type 'Node'
   if(maxLevelNum<levelNodeNum[tou->level])
                                  ^
0_0_27203671_19010.cpp:23:32: error: base operand of '->' has non-pointer type 'Node'
    maxLevelNum=levelNodeNum[tou->level];
                                ^
0_0_27203671_19010.cpp:24:9: error: base operand of '->' has non-pointer type 'Node'
   if(tou->left)
         ^
0_0_27203671_19010.cpp:26:7: error: base operand of '->' has non-pointer type 'Node'
    tou->left->level=tou.level+1;
       ^
0_0_27203671_19010.cpp:27:14: error: base operand of '->' has non-pointer type 'Node'
    Q.push(tou->left);
              ^
0_0_27203671_19010.cpp:29:9: error: base operand of '->' has non-pointer type 'Node'
   if(tou->right)
         ^
0_0_27203671_19010.cpp:31:7: error: base operand of '->' has non-pointer type 'Node'
    tou->right->level=tou.level+1;
       ^
0_0_27203671_19010.cpp:32:14: error: base operand of '->' has non-pointer type 'Node'
    Q.push(tou->right);
              ^
0_0_27203671_19010.cpp:35:9: error: 'maxLevelNum' was not declared in this scope
  return maxLevelNum;
         ^
0_0_27203671_19010.cpp: At global scope:
0_0_27203671_19010.cpp:38:1: error: 'leetcode' does not name a type
 leetcode hdu 11ҳ 
 ^


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