/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:68:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0; i < v.size(); i++) if(abs(v[i]) < mi) mi = abs(v[i]),ans = v[i];
                    ~~^~~~~~~~~~
/in/foo.cc:69:38: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll {aka long long int}' [-Wformat=]
     if(ans != -INF) printf("%d\n",ans);
                                      ^
/in/foo.cc:55:33: warning: 'qq' may be used uninitialized in this function [-Wmaybe-uninitialized]
         int res = (q - c + j) * qq;
                                 ^~
/in/foo.cc:53:17: warning: 'q' may be used uninitialized in this function [-Wmaybe-uninitialized]
     for(int j = -q; j <= q*10; j++)
                 ^~
# 状态 耗时 内存占用
#1 Accepted 1ms 196.0 KiB
#2 Wrong Answer 1ms 204.0 KiB
#3 Wrong Answer 1ms 212.0 KiB
#4 Runtime Error 1ms 204.0 KiB

信息

递交者
类型
递交
题目
P1346 税收与补贴问题
语言
C++
递交时间
2019-11-30 14:11:53
评测时间
2019-11-30 14:11:53
评测机
分数
25
总耗时
5ms
峰值内存
212.0 KiB