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_38969769_31539.cpp:8:8: error: stray '\243' in program
    8 | int zzz<a3><bb>
      |        ^~~~
0_0_38969769_31539.cpp:8:9: error: stray '\273' in program
    8 | int zzz<a3><bb>
      |            ^~~~
0_0_38969769_31539.cpp:9:1: error: expected initializer before 'struct'
    9 | struct node{
      | ^~~~~~
0_0_38969769_31539.cpp:12:2: error: 'tr' does not name a type; did you mean 'tm'?
   12 | }tr[N*80];
      |  ^~
      |  tm
0_0_38969769_31539.cpp: In function 'void pushup(long long int)':
0_0_38969769_31539.cpp:14:9: error: 'tr' was not declared in this scope; did you mean 'tm'?
   14 |         tr[x].w=tr[tr[x].l].w+tr[tr[x].r].w;
      |         ^~
      |         tm
0_0_38969769_31539.cpp: In function 'void build(long long int&, long long int, long long int)':
0_0_38969769_31539.cpp:20:22: error: 'tr' was not declared in this scope; did you mean 'r'?
   20 |                 cin>>tr[x].w;
      |                      ^~
      |                      r
0_0_38969769_31539.cpp:24:15: error: 'tr' was not declared in this scope; did you mean 'r'?
   24 |         build(tr[x].l,l,mid);
      |               ^~
      |               r
0_0_38969769_31539.cpp: In function 'void modify(long long int&, long long int, long long int, long long int, long long int, long long int, long long int)':
0_0_38969769_31539.cpp:31:9: error: 'tr' was not declared in this scope; did you mean 'r'?
   31 |         tr[now]=tr[pre];
      |         ^~
      |         r
0_0_38969769_31539.cpp: In function 'long long int query(long long int, long long int, long long int, long long int, long long int, long long int)':
0_0_38969769_31539.cpp:45:24: error: 'tr' was not declared in this scope; did you mean 'r'?
   45 |                 return tr[now].w+w*(r-l+1);
      |                        ^~
      |                        r
0_0_38969769_31539.cpp:49:32: error: 'tr' was not declared in this scope; did you mean 'r'?
   49 |         if(x<=mid)ans += query(tr[now].l,l,mid,x,y,tr[now].add+w);
      |                                ^~
      |                                r
0_0_38969769_31539.cpp:50:31: error: 'tr' was not declared in this scope; did you mean 'r'?
   50 |         if(y>mid)ans += query(tr[now].r,mid+1,r,x,y,w+tr[now].add);
      |                               ^~
      |                               r


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-16 12:17:16, Gzip enabled