Problem ballgame
User JoshJuice
Submission Time 2025-10-18 21:06:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ballgame.cpp: In function ‘void up(long long int, long long int)’:
ballgame.cpp:41:32: error: ‘ft’ was not declared in this scope; did you mean ‘fw’?
41 | for (; p < MAXN; p += ls(p)) ft[p] += v;
| ^~
| fw
ballgame.cpp: In function ‘long long int query(long long int)’:
ballgame.cpp:47:32: error: ‘ft’ was not declared in this scope; did you mean ‘fw’?
47 | for (; p; p -= ls(p)) sum += ft[p];
| ^~
| fw
ballgame.cpp: In function ‘int32_t ballgame(int32_t, int32_t, int32_t, int32_t*, int32_t*)’:
ballgame.cpp:54:13: error: ‘n’ was not declared in this scope
54 | vc<int> c(n);
| ^