记录详情

Compile Error

/in/foo.cc: In member function 'void Array::SetInter(Array)':
/in/foo.cc:38:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
       if (c[k] = c[i]) n = 0;
                      ^
/in/foo.cc:57:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
       if (c[k] = c[i]) n = 0;
                      ^
/in/foo.cc: At global scope:
/in/foo.cc:77:11: error: '::main' must return 'int'
 void main() {
           ^

信息

递交者
类型
递交
比赛
数据结构课堂练习9-16
语言
C++
递交时间
2019-09-16 11:13:33
评测时间
2019-09-16 11:13:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes