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_33929463_27084.cpp:19:20: error: 'u' was not declared in this scope
 int dp[MAXN], tval[u], sz[MAXN];
                    ^
0_0_33929463_27084.cpp: In function 'int check(int, int, int)':
0_0_33929463_27084.cpp:23:16: error: 'tval' was not declared in this scope
         return tval[u];
                ^
0_0_33929463_27084.cpp: In function 'void insert(int&, int, int)':
0_0_33929463_27084.cpp:51:17: error: 'tval' was not declared in this scope
         dp[u] = tval[u] = x;
                 ^
0_0_33929463_27084.cpp: In function 'int Merge(int, int, int)':
0_0_33929463_27084.cpp:68:21: error: 'tval' was not declared in this scope
             dp[u] = tval[u];
                     ^


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.001000(s) query 1, Server time : 2025-01-10 17:49:20, Gzip enabled