Problem | mountainbridges |
---|---|
User | Tyx2019 |
Submission Time | 2023-11-19 11:48:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mountainbridges.cpp:6:13: error: expected initializer before ‘long’
6 | #define int long long
| ^~~~
mountainbridges.cpp:36:1: note: in expansion of macro ‘int’
36 | int query(int p){
| ^~~
mountainbridges.cpp: In function ‘void update(long long int, long long int)’:
mountainbridges.cpp:52:30: error: ‘fw’ was not declared in this scope
52 | for(; p<maxH; p+=(p&-p)) fw[hole(p)]+=v;
| ^~
mountainbridges.cpp: In function ‘int main()’:
mountainbridges.cpp:100:17: error: ‘query’ was not declared in this scope; did you mean ‘qry’?
100 | int qry=query(H[i]);
| ^~~~~
| qry