记录详情

Wrong Answer

foo.cc: In function 'int* m(SeqList&, SeqList&)':
foo.cc:24:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   24 |         {if (obj1.a[i] = obj2.a[j]){c[k] = obj1.a[i];k++;};}}
      |              ~~~~~~~~~~^~~~~~~~~~~
foo.cc:25:16: warning: address of local variable 'c' returned [-Wreturn-local-addr]
   25 |         return c; }
      |                ^
foo.cc:20:21: note: declared here
   20 |                 int c[100]={0};
      |                     ^
foo.cc:19:21: warning: unused variable 'n' [-Wunused-variable]
   19 |                 int n = obj1.n;
      |                     ^
foo.cc: In function 'int main()':
foo.cc:37:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
   37 |         for (int i = 0;i < sizeof(m(c[0], c[1]));i++)
      |                        ~~^~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 2ms 284.0 KiB

信息

递交者
类型
自测
题目
P1015 OO3-2 无序顺序表类的集合运算
语言
C++
递交时间
2023-05-14 19:59:16
评测时间
2023-05-14 20:01:02
评测机
分数
0
总耗时
2ms
峰值内存
284.0 KiB