Problem bossbattle
User Tyx2019
Submission Time 2023-12-06 11:34:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bossbattle.cpp:8:13: error: array bound is not an integer constant before ‘]’ token
8 | int fw[mak+5];
| ^
bossbattle.cpp: In function ‘void update(long long int, long long int)’:
bossbattle.cpp:12:33: error: ‘fw’ was not declared in this scope
12 | for (; x<300010; x+=x&(-x)) fw[x] = fw[x] + v;
| ^~
bossbattle.cpp: In function ‘long long int sum(long long int)’:
bossbattle.cpp:17:38: error: ‘fw’ was not declared in this scope
17 | for(; x; x-=x&(-x)) res = (res + fw[x] ) ;
| ^~
bossbattle.cpp: In function ‘int main()’:
bossbattle.cpp:28:9: error: ‘fw’ was not declared in this scope
28 | memset(fw,0,sizeof(fw));
| ^~