Problem shamelessad4
User Mimikyu
Submission Time 2024-12-11 10:26:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shamelessad4.cpp: In member function ‘void node::upd(long long int, long long int, long long int)’:
shamelessad4.cpp:38:12: error: expected ‘;’ before ‘V’
38 | ladd%MOD
| ^
| ;
39 | V+=v*(E-S+1);
| ~
shamelessad4.cpp: In function ‘int main()’:
shamelessad4.cpp:67:10: error: expected ‘;’ before ‘seggs’
67 | t=t%MOD
| ^
| ;
68 | seggs->upd(i+1,i+1,t);
| ~~~~~
shamelessad4.cpp:75:25: error: ‘r’ cannot be used as a function
75 | seggs->upd(l,r(k*temp)%MOD);
| ^