prog.cpp:24:48: error: 'vector' has not been declared
long long getSum(int n, int x0, int a, int b, vector <int> q) {
^
prog.cpp:24:55: error: expected ',' or '...' before '<' token
long long getSum(int n, int x0, int a, int b, vector <int> q) {
^
prog.cpp: In member function 'void LimitedMemorySeries1::upd(int)':
prog.cpp:18:18: error: 'min' was not declared in this scope
F = min(F, md);
^
prog.cpp: In member function 'long long int LimitedMemorySeries1::getSum(int, int, int, int, int)':
prog.cpp:25:8: error: 'q' was not declared in this scope
sort(q.begin(), q.end());
^
prog.cpp:25:26: error: 'sort' was not declared in this scope
sort(q.begin(), q.end());
^
prog.cpp:27:38: error: no match for 'operator=' (operand types are 'query' and '<brace-enclosed initializer list>')
for (int i = 0; i < qn; i++) qu[i] = { 0, mod - 1, q[i], 0, mod - 1 };
^
prog.cpp:2:8: note: candidate: query& query::operator=(const query&)
struct query {
^
prog.cpp:2:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const query&'
prog.cpp:2:8: note: candidate: query& query::operator=(query&&)
prog.cpp:2:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'query&&'
prog.cpp:43:84: error: 'min' was not declared in this scope
if (cnt[i] > qu[i].k) qu[i].e = qu[i].m - 1, qu[i].res = min(qu[i].res, qu[i].m);
^