Problem nis
User Henries
Submission Time 2025-01-24 11:27:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nis.cpp: In constructor ‘node::node(int, int)’:
nis.cpp:7:20: error: class ‘node’ does not have any field named ‘S’
7 | node(int s,int e):S(s),E(e){
| ^
nis.cpp:8:7: error: ‘S’ was not declared in this scope
8 | if (S == E){
| ^
nis.cpp:12:8: error: ‘S’ was not declared in this scope
12 | M = (S + E) / 2;
| ^
nis.cpp: In member function ‘long long int node::qry(int, int)’:
nis.cpp:18:20: error: ‘S’ was not declared in this scope
18 | if (l > E || r < S){
| ^
nis.cpp:21:12: error: ‘S’ was not declared in this scope
21 | if (l <= S && r >= E){
| ^
nis.cpp: In member function ‘void node::upd(int, long int)’:
nis.cpp:27:7: error: ‘S’ was not declared in this scope
27 | if (S == E){
| ^
nis.cpp:28:22: error: ‘v’ was not declared in this scope
28 | val = (val% MOD + v% MOD) %