/ new_bzoj /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:32:18: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
   scanf("%lld",&n);
                  ^
/in/foo.cc:33:51: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
   for (int i = 1; i <= n; ++ i) scanf("%lld",&b[i]) ,b[i]-=i; 
                                                   ^
/in/foo.cc:69:51: error: 'min' was not declared in this scope
         g[i] = min(g[i], g[from] + pre[k] + suf[k]); 
                                                   ^
/in/foo.cc:69:51: note: suggested alternative:
In file included from /usr/include/c++/6/algorithm:62:0,
                 from /in/foo.cc:9:
/usr/include/c++/6/bits/stl_algo.h:3453:5: note:   'std::min'
     min(initializer_list<_Tp> __l, _Compare __comp)
     ^~~

信息

递交者
类型
递交
题目
数字序列
语言
C++
递交时间
2021-01-27 22:05:17
评测时间
2021-01-27 22:05:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes