/ Vijos /

记录详情

Compile Error

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)
     ^

信息

递交者
类型
递交
题目
P1323 化工厂装箱员
语言
C++
递交时间
2015-10-28 23:29:27
评测时间
2015-10-28 23:29:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes