Accepted
/in/foo.cc: In function 'void getTen(int*, int*)': /in/foo.cc:77:24: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument] memset(a,0,sizeof(a)); ^ /in/foo.cc:76:35: note: declared here void getTen(int bin[400],int a[400]){ ^ /in/foo.cc:77:22: 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(a,0,sizeof(a)); ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1095 约瑟夫问题10E100版
- 语言
- C++
- 递交时间
- 2019-03-25 17:18:28
- 评测时间
- 2019-03-25 17:18:28
- 评测机
- 分数
- 100
- 总耗时
- 17ms
- 峰值内存
- 208.0 KiB