foo.cpp:1:1: error: 'include' does not name a type
include<iostream>
^
foo.cpp: In function 'void df(int)':
foo.cpp:69:28: error: 'max' was not declared in this scope
mxd=max(mxd,deep[cur]);
^
foo.cpp:69:28: note: suggested alternative:
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62:0,
from foo.cpp:7:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:4259:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
foo.cpp: In function 'int lca(int, int)':
foo.cpp:81:12: error: 'swap' was not declared in this scope
swap(a,b);
^
foo.cpp:81:12: note: suggested alternatives:
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:66:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from foo.cpp:7:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\functional:2570:5: note: 'std::swap'
swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y)
^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\exception:152:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\new:40,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_construct.h:59,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_tempbuf.h:60,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:62,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from foo.cpp:7:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\exception_ptr.h:160:5: note: 'std::__exception_ptr::swap'
swap(exception_ptr& __lhs, exception_ptr& __rhs)
^
foo.cpp:86:5: error: 'cout' was not declared in this scope
cout<<a<<"-"<<b<<endl;
^
foo.cpp:86:22: error: 'endl' was not declared in this scope
cout<<a<<"-"<<b<<endl;
^
foo.cpp:94:24: error: 'min' was not declared in this scope
rec=min(rec,mx[a][j]);
^
foo.cpp:94:24: note: suggested alternative:
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62:0,
from foo.cpp:7:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:4249:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
foo.cpp:110:38: error: 'min' was not declared in this scope
rec=min(rec,min(mx[a][j],mx[b][j]));
^
foo.cpp:110:38: note: suggested alternative:
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62:0,
from foo.cpp:7:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:4249:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
foo.cpp:110:39: error: 'min' was not declared in this scope
rec=min(rec,min(mx[a][j],mx[b][j]));
^
foo.cpp:110:39: note: suggested alternative:
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62:0,
from foo.cpp:7:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:4249:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
foo.cpp:110:39: error: redeclaration of '<typeprefixerror>min'
rec=min(rec,min(mx[a][j],mx[b][j]));
^
foo.cpp:110:38: note: previous declaration '<typeprefixerror>min'
rec=min(rec,min(mx[a][j],mx[b][j]));
^
foo.cpp:114:26: error: 'min' was not declared in this scope
return min(rec,mx[a][0]);
^
foo.cpp:114:26: note: suggested alternative:
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62:0,
from foo.cpp:7:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:4249:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
foo.cpp: In