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

Compile Error

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.first-prv.first;
| ^~~~~
catdog.cpp:109:27: error: ‘struct std::array<long long int, 2>’ has no member named ‘first’
109 | a = cur.first-prv.first;
| ^~~~~
catdog.cpp:110:17: error: ‘struct std::array<long long int, 2>’ has no member named ‘second’
110 | b = cur.second-prv.second;
| ^~~~~~
catdog.cpp:110:28: error: ‘struct std::array<long long int, 2>’ has no memb