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

Compile Error

differencearray.cpp:3:9: error: ‘longlong’ does not name a type
3 | typedef longlong ll;
| ^~~~~~~~
differencearray.cpp: In function ‘int main()’:
differencearray.cpp:9:2: error: ‘ll’ was not declared in this scope
9 | ll n,u;
| ^~
differencearray.cpp:10:7: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
10 | cin>>n>>u;
| ^
| yn
differencearray.cpp:10:10: error: ‘u’ was not declared in this scope
10 | cin>>n>>u;
| ^
differencearray.cpp:11:4: error: expected ‘;’ before ‘a’
11 | ll a[n+2],d[n+2];
| ^~
| ;
differencearray.cpp:12:2: error: ‘a’ was not declared in this scope
12 | a[0]=0,d[0]=0;
| ^
differencearray.cpp:12:9: error: ‘d’ was not declared in this scope
12 | a[0]=0,d[0]=0;
| ^
differencearray.cpp:18:4: error: expected ‘;’ before ‘l’
18 |