| Problem | differencearray |
|---|---|
| User | sharelletqx |
| Submission Time | 2026-05-16 10:35:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
differencearray.cpp: In function ‘int32_t main()’:
differencearray.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
differencearray.cpp:7:2: note: in expansion of macro ‘int’
7 | int n,u; cin>>n>>u;
| ^~~
differencearray.cpp:7:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
7 | int n,u; cin>>n>>u;
| ^
| yn
differencearray.cpp:7:8: error: ‘u’ was not declared in this scope
7 | int n,u; cin>>n>>u;
| ^
differencearray.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
differencearray.cpp:8:2: note: in expansion of macro ‘int’
8 | int a[n+1], d[n+1];
| ^~~
differencearray.cpp:8:6: error: ‘a’ was not declared in this scope
8 | int a[n+1], d[n+1]