Problem digits
User bakchormee
Submission Time 2024-05-04 22:49:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

digits.cpp:6:1: error: ‘ll’ does not name a type; did you mean ‘l’?
6 | ll pw[200005];
| ^~
| l
digits.cpp: In member function ‘void node::up(int, int)’:
digits.cpp:30:15: error: ‘pw’ was not declared in this scope; did you mean ‘pow’?
30 | v = (l->v * pw[r->e - r->s + 1] + r->v) % mod;
| ^~
| pow
digits.cpp: In member function ‘int node::qry(int, int)’:
digits.cpp:38:31: error: ‘pw’ was not declared in this scope; did you mean ‘pow’?
38 | else return (l->qry(x, m) * pw[y-m] + r->qry(m+1, y)) % mod;
| ^~
| pow
digits.cpp: In function ‘int main()’:
digits.cpp:46:5: error: ‘pw’ was not declared in this scope; did you mean ‘pow’?
46 | pw[0]=1;
| ^~
| pow