| Problem | differencearray |
|---|---|
| User | PerihelionfromAphelion |
| Submission Time | 2026-05-17 17:31:42 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
differencearray.cpp: In function ‘int main()’:
differencearray.cpp:10:2: error: expected ‘,’ or ‘;’ before ‘vector’
10 | vector <long long> diff(n + 2, 0);
| ^~~~~~
differencearray.cpp:17:3: error: ‘diff’ was not declared in this scope
17 | diff[l - 1] += v;
| ^~~~
differencearray.cpp:22:10: error: ‘diff’ was not declared in this scope
22 | add += diff[i];
| ^~~~