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