Accepted

/in/foo.cc: In function 'bool bh(int, int*)':
/in/foo.cc:8:30: warning: 'sizeof' on array function parameter 'b' will return size of 'int*' [-Wsizeof-array-argument]
    8 |         for(int i=0;i<sizeof(b);i++)
      |                             ~^~
/in/foo.cc:6:19: note: declared here
    6 | bool bh(int a,int b[100000])
      |               ~~~~^~~~~~~~~
/in/foo.cc:8:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
    8 |         for(int i=0;i<sizeof(b);i++)
      |                     ~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 532.0 KiB

信息

递交者
类型
自测
题目
P1147 OO11-1 vector<int>中的查找删除
语言
C++
递交时间
2025-10-09 23:30:40
评测时间
2025-10-09 23:30:48
评测机
分数
10
总耗时
2ms
峰值内存
532.0 KiB