| Problem | nis |
|---|---|
| User | benji9736 |
| Submission Time | 2025-12-12 15:55:53 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
nis.cpp: In function ‘void upd(int, int)’:
nis.cpp:6:27: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
6 | fwt[x] = (fwt[x] + v) % mod;
| ^~~
| modf
nis.cpp: In function ‘int qry(int)’:
nis.cpp:13:26: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
13 | ret = (ret + fwt[x]) % mod;
| ^~~
| modf
nis.cpp: In function ‘int main()’:
nis.cpp:28:46: error: no matching function for call to ‘lower_bound(std::vector<int>::iterator, std::vector<int>::iterator)’
28 | v[i] = lower_bound(disc.begin(), disc.end()) - disc.begin()
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h: