Problem differencearray
User cheryltkx
Submission Time 2026-05-16 10:39:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

differencearray.cpp: In function ‘int main()’:
differencearray.cpp:5:2: error: expected initializer before ‘ios’
5 | ios::sync_with_stdio(false);
| ^~~
differencearray.cpp:8:2: error: ‘ll’ was not declared in this scope
8 | ll n,u;
| ^~
differencearray.cpp:9:7: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
9 | cin>>n>>u;
| ^
| yn
differencearray.cpp:9:10: error: ‘u’ was not declared in this scope
9 | cin>>n>>u;
| ^
differencearray.cpp:10:4: error: expected ‘;’ before ‘a’
10 | ll a[n+2],d[n+2];
| ^~
| ;
differencearray.cpp:11:2: error: ‘a’ was not declared in this scope
11 | a[0]=0,d[0]=0;
| ^
differencearray.cpp:11:9: error: ‘d’ was not declared in this scope
11 | a[0]=0,d[0]=0;
| ^
differencearray.cpp:17:4: error: expected ‘;’ before ‘l’
17 | ll