/ XMU_ACM /

记录详情

Wrong Answer

/in/foo.cc: In function 'int number(int*, int)':
/in/foo.cc:12:19: warning: NULL used in arithmetic [-Wpointer-arith]
   if (a[i + j] == NULL) { state = 100; }
                   ^~~~
/in/foo.cc:14:51: warning: NULL used in arithmetic [-Wpointer-arith]
   if (a[i + j] >= a[i + j - 1] && a[i + j + 1] == NULL) {
                                                   ^~~~
/in/foo.cc:26:52: warning: NULL used in arithmetic [-Wpointer-arith]
    if (a[i + j] <= a[i + j - 1] && a[i + j + 1] == NULL) {
                                                    ^~~~
/in/foo.cc:5:9: warning: unused variable 'over' [-Wunused-variable]
  int j, over, b, v, k;
         ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:109:9: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
  a[i] = NULL;
         ^~~~
/in/foo.cc:110:22: warning: NULL used in arithmetic [-Wpointer-arith]
  for (i = 0; a[i] != NULL; i++) {
                      ^~~~
/in/foo.cc: In function 'int number(int*, int)':
/in/foo.cc:91:66: warning: 'v' may be used uninitialized in this function [-Wmaybe-uninitialized]
     else if (a[i + k] != a[i + k - 1]) { sum[i + k] = sum[i + k] + v - count2 - k; g++; }
                                                       ~~~~~~~~~~~^~~
/in/foo.cc:85:10: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
    sum[i + b] = x + 1;
        ~~^~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 360.0 KiB
#2 Wrong Answer 3ms 372.0 KiB
#3 Wrong Answer 2ms 368.0 KiB
#4 Wrong Answer 3ms 384.0 KiB
#5 Wrong Answer 4ms 360.0 KiB
#6 Wrong Answer 3ms 348.0 KiB
#7 Wrong Answer 2ms 256.0 KiB
#8 Wrong Answer 3ms 384.0 KiB
#9 Wrong Answer 12ms 488.0 KiB
#10 Wrong Answer 11ms 488.0 KiB

信息

递交者
类型
递交
题目
game
比赛
清明测试!
语言
C++
递交时间
2018-04-06 16:09:52
评测时间
2018-04-06 16:09:52
评测机
分数
0
总耗时
49ms
峰值内存
488.0 KiB