记录详情

Compile Error

/in/foo.cc: In function 'int* m(SeqList&, SeqList&)':
/in/foo.cc:21:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  {if (obj1.a[i] = obj2.a[j]){*(c+k) = obj1.a[i];k++;};}}
                            ^
/in/foo.cc: In function 'int mian()':
/in/foo.cc:34:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0;i < sizeof(m(c[0], c[1]));i++)
                 ~~^~~~~~~~~
/in/foo.cc:39:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status

信息

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