Problem | fenwicktree_easy |
---|---|
User | TngShihAn |
Submission Time | 2023-11-09 14:54:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree_easy.cpp: In function ‘int main()’:
fenwicktree_easy.cpp:10:5: error: expected initializer before ‘cin’
10 | cin >> currentages
| ^~~
fenwicktree_easy.cpp:11:17: error: ‘p’ was not declared in this scope
11 | for (int p=0; p<N; p++)
| ^
fenwicktree_easy.cpp:17:13: error: ‘ArrayN’ was not declared in this scope
17 | ArrayN[x]=y;
| ^~~~~~
fenwicktree_easy.cpp:21:29: error: ‘arr’ cannot be used as a function
21 | sum += arr(q);
| ^
fenwicktree_easy.cpp:22:38: error: expected ‘;’ before ‘}’ token
22 | cout << arr[y]-arr[x]
| ^
| ;
23 | }
| ~