Problem differencearray
User PerihelionfromAphelion
Submission Time 2026-05-17 17:28:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

differencearray.cpp: In function ‘int main()’:
differencearray.cpp:8:7: error: ‘i’ was not declared in this scope
8 | for (i = 0; i < n; i++) {
| ^
differencearray.cpp:18:7: error: ‘i’ was not declared in this scope
18 | for (i = 0; i < n; i++) {
| ^
differencearray.cpp:20:3: error: ‘a’ was not declared in this scope
20 | a[i] += add;
| ^
differencearray.cpp:22:10: error: ‘a’ was not declared in this scope
22 | cout << a[i];
| ^
differencearray.cpp:22:12: error: ‘i’ was not declared in this scope
22 | cout << a[i];
| ^