Problem fenwicktree
User Daddy
Submission Time 2023-11-09 09:58:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp: In function ‘int main()’:
fenwicktree.cpp:11:11: error: ‘n’ was not declared in this scope
11 | int A[n];
| ^
fenwicktree.cpp:14:16: error: ‘A’ was not declared in this scope
14 | cin >> A[i];
| ^
fenwicktree.cpp:31:24: error: ‘A’ was not declared in this scope
31 | sum += A[i];
| ^
fenwicktree.cpp:40:17: error: ‘A’ was not declared in this scope
40 | A[i] += c;
| ^