Problem segmenttreebeats
User jatrophalouvre
Submission Time 2024-06-30 19:56:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttreebeats.cpp: In member function ‘void SEG::upd(long long int, long long int)’:
segmenttreebeats.cpp:33:13: error: ‘v’ was not declared in this scope
33 | if (v<10) return;
| ^
segmenttreebeats.cpp:36:17: error: ‘v’ was not declared in this scope
36 | sum=v=sod(v);
| ^
segmenttreebeats.cpp: In member function ‘long long int SEG::qry(long long int)’:
segmenttreebeats.cpp:51:26: error: ‘v’ was not declared in this scope
51 | if (l==r) return v;
| ^
segmenttreebeats.cpp: In function ‘int main()’:
segmenttreebeats.cpp:83:18: error: ‘struct SEG’ has no member named ‘update’
83 | seg->update(l, r);
| ^~~~~~
segmenttreebeats.cpp:88:24: error: ‘struct SEG’ has no member named ‘query’; did you mean ‘qry’?
88 | cout<<seg->query(pos)<<endl;
|