Problem fenwicktree
User Daddy
Submission Time 2023-11-09 10:05:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp: In function ‘int main()’:
fenwicktree.cpp:18:19: error: expected ‘;’ before ‘for’
18 | scanf("%d", M)
| ^
| ;
19 |
20 | for (int k = 0; k < M; k++) {
| ~~~
fenwicktree.cpp:20:21: error: ‘k’ was not declared in this scope
20 | for (int k = 0; k < M; k++) {
| ^