Problem fenwicktree
User waffles1823
Submission Time 2023-11-10 10:25:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp:22:30: error: stray ‘#’ in program
22 | if command[0] == 0: # Query
| ^
fenwicktree.cpp:26:32: error: stray ‘#’ in program
26 | elif command[0] == 1: # Update
| ^
fenwicktree.cpp:31:3: error: invalid preprocessing directive #Read
31 | # Read input
| ^~~~
fenwicktree.cpp:41:3: error: invalid preprocessing directive #Process
41 | # Process queries and updates
| ^~~~~~~
fenwicktree.cpp:2:9: error: expected class-name before ‘__init__’
2 | def __init__(self, n):
| ^~~~~~~~
fenwicktree.cpp:2:9: error: expected ‘{’ before ‘__init__’
fenwicktree.cpp:2:18: error: ‘self’ was not declared in this scope
2 | def __init__(self, n):
| ^~~~
fenwicktree.cpp:2:24: error: ‘n’ was not declared in this scope
2 | def __init__(self, n):
|