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));
^
|