Problem replacedigits
User Pan
Submission Time 2023-12-10 12:24:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

replacedigits.cpp:1:8: error: ‘lazy’ does not name a type
1 | lazy = -1; //lazy tag of 0 will mean there is no update (sentinel value)
| ^~~~
replacedigits.cpp:2:9: error: expected unqualified-id before ‘if’
2 | if(s != e && l==nullptr){ //node is not yet a leaf, so create two children
| ^~
replacedigits.cpp:7:2: error: expected declaration before ‘}’ token
7 | }
| ^
replacedigits.cpp: In function ‘void propogate()’:
replacedigits.cpp:10:12: error: ‘lazy’ was not declared in this scope
10 | if (lazy==-1) return; //nothing happens
| ^~~~
replacedigits.cpp:11:8: error: ‘val’ was not declared in this scope
11 | val=(lazy*pspower[e-s])%mod;
| ^~~
replacedigits.cpp:11:13: error: ‘lazy’ was not declared in this scope
11 | val=(lazy*pspower[e-s])%mod;
| ^~~~
replacedigits.cpp:11:18: error: ‘pspower’