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_20882762_11194.cpp: In function 'void _outTreeIter(int)':
0_0_20882762_11194.cpp:203:29: error: 'fp' was not declared in this scope
     if ( son ) _outTreeIter(fp,son);
                             ^
0_0_20882762_11194.cpp:206:29: error: 'fp' was not declared in this scope
     if ( son ) _outTreeIter(fp,son);
                             ^
In file included from 0_0_20882762_11194.cpp:11:0:
0_0_20882762_11194.cpp: In function 'bool read()':
0_0_20882762_11194.cpp:244:16: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'FILE* {aka _iobuf*}'
     outputTree(stdout,Root);
                ^
0_0_20882762_11194.cpp:211:6: note: in passing argument 1 of 'void outputTree(int&)'
 void outputTree(int& root){
      ^


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-19 20:56:51, Gzip enabled