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_35190882_18676.cpp:10:9: error: 'nn' was not declared in this scope
 int val[nn];
         ^
0_0_35190882_18676.cpp:11:9: error: 'nn' was not declared in this scope
 int ans[nn];
         ^
0_0_35190882_18676.cpp:15:4: error: 'nn' was not declared in this scope
 }t[nn<<2];
    ^
0_0_35190882_18676.cpp: In function 'void build(int, int, int)':
0_0_35190882_18676.cpp:20:2: error: 't' was not declared in this scope
  t[rt].maxx = 0;
  ^
0_0_35190882_18676.cpp: In function 'void pushdown(int)':
0_0_35190882_18676.cpp:29:6: error: 't' was not declared in this scope
  if (t[rt].maxx)
      ^
0_0_35190882_18676.cpp: In function 'void updata(int, int, int, int, int, int)':
0_0_35190882_18676.cpp:45:3: error: 't' was not declared in this scope
   t[rt].maxx = max(t[rt].maxx, val);
   ^
0_0_35190882_18676.cpp: In function 'void query(int, int, int, int)':
0_0_35190882_18676.cpp:59:12: error: 't' was not declared in this scope
   ansmin = t[rt].minn;
            ^
0_0_35190882_18676.cpp: In function 'int main()':
0_0_35190882_18676.cpp:77:44: error: 'val' was not declared in this scope
   for (int i = 1; i < n; i++) scanf("%d", &val[i]);
                                            ^
0_0_35190882_18676.cpp:78:10: error: 'ans' was not declared in this scope
   memset(ans, 0, sizeof(ans));
          ^
0_0_35190882_18676.cpp:91:19: error: 'val' was not declared in this scope
    ans[ansmin] += val[i];
                   ^


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:27:35, Gzip enabled