Main.cc: In function ‘int main()’: Main.cc:16:2: error: ‘cin’ was not declared in this scope cin>>n; ^~~ Main.cc:16:2: note: suggested alternative: ‘main’ cin>>n; ^~~ main Main.cc:22:2: error: ‘sort’ was not declared in this scope sort(a,a+n,cmp);//按定义的排序方法排序 ^~~~ Main.cc:22:2: note: suggested alternative: ‘short’ sort(a,a+n,cmp);//按定义的排序方法排序 ^~~~ short Main.cc:32:9: error: ‘max’ was not declared in this scope ans=max(ans,b[i]); ^~~ Main.cc:32:9: note: suggested alternative: ‘main’ ans=max(ans,b[i]); ^~~ main Main.cc:36:2: error: ‘cout’ was not declared in this scope cout<