/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
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];
                    ~~^~~~~~~~~~
foo.cc:69:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll {aka long long int}' [-Wformat=]
     printf("%d\n",ans);
                      ^
foo.cc:55:33: warning: 'qq' may be used uninitialized in this function [-Wmaybe-uninitialized]
         int res = (q - c + j) * qq;
                                 ^~
foo.cc:55:22: warning: 'q' may be used uninitialized in this function [-Wmaybe-uninitialized]
         int res = (q - c + j) * qq;
                    ~~^~~

自豪地采用[jd5](https://github.com/masnn/jd5)进行评测
# 状态 耗时 内存占用
#1 Accepted 2ms 228.0 KiB
#2 Wrong Answer 2ms 252.0 KiB
#3 Wrong Answer 2ms 228.0 KiB
#4 Runtime Error 段错误 2ms 232.0 KiB

信息

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