foo.cpp: In function 'int dp(int, int, int, int)':
foo.cpp:28:61: error: 'min' was not declared in this scope
if(a>0)f[k][a][b][c]=min(f[k][a][b][c],dp(k,0,b,c)+1);
^
foo.cpp:28:61: note: suggested alternative:
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/algorithm:62:0,
from foo.cpp:5:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algo.h:3444:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
foo.cpp:29:61: error: 'min' was not declared in this scope
if(b>0)f[k][a][b][c]=min(f[k][a][b][c],dp(k,a,0,c)+1);
^
foo.cpp:29:61: note: suggested alternative:
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/algorithm:62:0,
from foo.cpp:5:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algo.h:3444:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
foo.cpp:30:61: error: 'min' was not declared in this scope
if(c>0)f[k][a][b][c]=min(f[k][a][b][c],dp(k,a,b,0)+1);
^
foo.cpp:30:61: note: suggested alternative:
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/algorithm:62:0,
from foo.cpp:5:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algo.h:3444:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^