Problem catdog
User Sans12345
Submission Time 2024-01-22 19:46:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catdog.cpp: In function ‘void initialize(int, std::vector<int>, std::vector<int>)’:
catdog.cpp:99:32: error: no matching function for call to ‘Segmenttree::build(int, ll)’
99 | ST[i]->build(0,gsz[i]-1);
| ^
catdog.cpp:14:10: note: candidate: ‘void Segmenttree::build(int, int, int)’
14 | void build(int l,int r,int i){
| ^~~~~
catdog.cpp:14:10: note: candidate expects 3 arguments, 2 provided
catdog.cpp: In function ‘int update(ll, ll, ll)’:
catdog.cpp:106:27: error: ‘struct Segmenttree’ has no member named ‘query’
106 | prv = ST[grp[x]]->query();
| ^~~~~
catdog.cpp:108:15: error: ‘root’ was not declared in this scope
108 | cur = root[grp[x]]->query();
| ^~~~
catdog.cpp:109:17: error: ‘struct std::array<long long int, 2>’ has no member named ‘first’
109 | a = cur.