/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:14:21: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
  memset(you,0,sizeof(you));
                     ^
/in/foo.cc:10:6: warning: unused variable 'count' [-Wunused-variable]
  int count = 0,num;
      ^~~~~
/in/foo.cc:13:23: warning: 'n' is used uninitialized in this function [-Wuninitialized]
  int *you = new int[n + 2];
                     ~~^~~
# 状态 耗时 内存占用
#1 Accepted 4ms 372.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Runtime Error 2ms 384.0 KiB
#4 Accepted 3ms 372.0 KiB
#5 Accepted 1ms 200.0 KiB
#6 Runtime Error 3ms 348.0 KiB
#7 Runtime Error 4ms 352.0 KiB
#8 Accepted 5ms 348.0 KiB
#9 Accepted 9ms 376.0 KiB
#10 Runtime Error 3ms 384.0 KiB
#11 Runtime Error 4ms 356.0 KiB

信息

递交者
类型
递交
题目
P1691 输油管道问题
语言
C++
递交时间
2018-05-26 17:06:13
评测时间
2018-05-26 17:06:13
评测机
分数
60
总耗时
46ms
峰值内存
384.0 KiB