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:7:8: error: ‘cin’ was not declared in this scope
while(cin>>w[++n]){
^~~
Main.cc:7:8: note: suggested alternative: ‘main’
while(cin>>w[++n]){
^~~
main
Main.cc:21:23: error: ‘max’ was not declared in this scope
if(w[i]>=w[j])f[i]=max(f[i],f[j]+1);
^~~
Main.cc:21:23: note: suggested alternative: ‘maxn’
if(w[i]>=w[j])f[i]=max(f[i],f[j]+1);
^~~
maxn
Main.cc:22:9: error: ‘max’ was not declared in this scope
maxn=max(maxn,f[i]);
^~~
Main.cc:22:9: note: suggested alternative: ‘maxn’
maxn=max(maxn,f[i]);
^~~
maxn
Main.cc:25:2: error: ‘cout’ was not declared in this scope
cout<