Main.cc:1:1: error: ‘include’ does not name a type; did you mean ‘__has_include’?
include
^~~~~~~
__has_include
Main.cc: In function ‘int main()’:
Main.cc:6:5: error: ‘cin’ was not declared in this scope
cin>>n;
^~~
Main.cc:6:5: note: suggested alternative: ‘main’
cin>>n;
^~~
main
Main.cc:10:9: error: ‘inti’ was not declared in this scope
for(inti=1;i<=n-1;i++){
^~~~
Main.cc:10:9: note: suggested alternative: ‘int’
for(inti=1;i<=n-1;i++){
^~~~
int
Main.cc:10:16: error: ‘i’ was not declared in this scope
for(inti=1;i<=n-1;i++){
^
Main.cc:12:11: error: ‘abs’ was not declared in this scope
c=abs(a[i+1]-a[i]);
^~~
Main.cc:13:14: error: ‘max’ was not declared in this scope
maxn=max(c,maxn);
^~~
Main.cc:13:14: note: suggested alternative: ‘maxn’
maxn=max(c,maxn);
^~~
maxn
Main.cc:15:5: error: ‘cout’ was not declared in this scope
cout<