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_33032048_24788.cpp:20:5: error: 'N25' was not declared in this scope
 } t[N25];
     ^
0_0_33032048_24788.cpp: In function 'void yspm::push_up(long long int)':
0_0_33032048_24788.cpp:19:16: error: 't' was not declared in this scope
 #define sum(p) t[p].sum
                ^
0_0_33032048_24788.cpp:22:37: note: in expansion of macro 'sum'
 inline void push_up(int p) { return sum(p) = sum(ls(p)) + sum(rs(p)), void(); }
                                     ^
0_0_33032048_24788.cpp:22:76: error: return-statement with a value, in function returning 'void' [-fpermissive]
 inline void push_up(int p) { return sum(p) = sum(ls(p)) + sum(rs(p)), void(); }
                                                                            ^
0_0_33032048_24788.cpp: In function 'void yspm::update(long long int&, long long int, long long int, long long int, long long int, long long int)':
0_0_33032048_24788.cpp:25:5: error: 't' was not declared in this scope
     t[p] = t[pre];
     ^
0_0_33032048_24788.cpp:27:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
         return sum(p) += val, void();
                                    ^
0_0_33032048_24788.cpp: In function 'long long int yspm::query(long long int, long long int, long long int, long long int, long long int, long long int)':
0_0_33032048_24788.cpp:19:16: error: 't' was not declared in this scope
 #define sum(p) t[p].sum
                ^
0_0_33032048_24788.cpp:37:16: note: in expansion of macro 'sum'
         return sum(r) - sum(l);
                ^
0_0_33032048_24788.cpp:17:15: error: 't' was not declared in this scope
 #define ls(p) t[p].ls
               ^
0_0_33032048_24788.cpp:40:22: note: in expansion of macro 'ls'
         ans += query(ls(l), ls(r), st, mid, fr, to);
                      ^
0_0_33032048_24788.cpp:18:15: error: 't' was not declared in this scope
 #define rs(p) t[p].rs
               ^
0_0_33032048_24788.cpp:43:22: note: in expansion of macro 'rs'
         ans += query(rs(l), rs(r), mid + 1, ed, fr, to);
                      ^
0_0_33032048_24788.cpp: In function 'void yspm::work()':
0_0_33032048_24788.cpp:59:12: error: 't' was not declared in this scope
     memset(t, 0, sizeof(t));
            ^


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-26 22:57:40, Gzip enabled