Problem differencearray
User lxmine
Submission Time 2026-05-16 10:43:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

differencearray.cpp: In function ‘int32_t main()’:
differencearray.cpp:6:12: error: expected ‘;’ before ‘int’
6 | cin.tie(0)
| ^
| ;
7 | int n, u;
| ~~~
differencearray.cpp:8:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | cin >> n >> u;
| ^
| yn
differencearray.cpp:8:14: error: ‘u’ was not declared in this scope
8 | cin >> n >> u;
| ^
differencearray.cpp:10:2: error: ‘dif’ was not declared in this scope; did you mean ‘div’?
10 | dif[0] = 0;
| ^~~
| div
differencearray.cpp:11:2: error: ‘arr’ was not declared in this scope
11 | arr[0] = 0;
| ^~~