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]; ~~^~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1691 输油管道问题
- 语言
- C++
- 递交时间
- 2018-05-26 17:06:13
- 评测时间
- 2018-05-26 17:06:13
- 评测机
- 分数
- 60
- 总耗时
- 46ms
- 峰值内存
- 384.0 KiB