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_39628446_14111.cpp: In function 'int main()':
0_0_39628446_14111.cpp:29:34: error: 'lson' was not declared in this scope; did you mean 'ls'?
   29 |                         if(!idx) lson[i]=stk[1];
      |                                  ^~~~
      |                                  ls
0_0_39628446_14111.cpp:30:30: error: 'lson' was not declared in this scope; did you mean 'ls'?
   30 |                         else lson[i]=rson[stk[idx]],rson[stk[idx]]=i;
      |                              ^~~~
      |                              ls
0_0_39628446_14111.cpp:30:38: error: 'rson' was not declared in this scope; did you mean 'rs'?
   30 |                         else lson[i]=rson[stk[idx]],rson[stk[idx]]=i;
      |                                      ^~~~
      |                                      rs


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