foo.cpp:1:1: error: 'include' does not name a type
include<iostream> include<cstdlib> include<cstdio> include<algorithm>
^
foo.cpp: In function 'int main()':
foo.cpp:23:1: error: 'cin' was not declared in this scope
cin>>apple>>tt;
^
foo.cpp:28:28: error: 'sort' was not declared in this scope
sort(tt2+1,tt2+tt+1,compare);
^
foo.cpp:32:1: error: 'cout' was not declared in this scope
cout<<tt-tt3<<endl;
^
foo.cpp:32:15: error: 'endl' was not declared in this scope
cout<<tt-tt3<<endl;
^
foo.cpp: In function 'int ser(int)':
foo.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^