/ Vijos /

记录详情

Compile Error

foo.cpp:4:13: warning: anonymous type with no linkage used to declare variable '<anonymous struct> line [400000]' with linkage [enabled by default]
foo.cpp: In function 'void bfs()':
foo.cpp:34:9: error: no match for 'operator=' in 'line[t] = line'
foo.cpp:34:9: note: candidate is:
foo.cpp:2:7: note: <anonymous struct>&<anonymous struct>::operator=(const<anonymous struct>&)
foo.cpp:2:7: note:   no known conversion for argument 1 from '<anonymous struct> [400000]' to 'const<anonymous struct>&'
foo.cpp:49:9: error: no match for 'operator=' in 'line[t] = line'
foo.cpp:49:9: note: candidate is:
foo.cpp:2:7: note: <anonymous struct>&<anonymous struct>::operator=(const<anonymous struct>&)
foo.cpp:2:7: note:   no known conversion for argument 1 from '<anonymous struct> [400000]' to 'const<anonymous struct>&'
foo.cpp:51:36: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int*'
foo.cpp:21:6: error: in passing argument 2 of 'void swap(int&, int&)'

信息

递交者
类型
递交
题目
P1029 晴天小猪历险记之Number
语言
C++
递交时间
2013-10-11 23:29:51
评测时间
2013-10-11 23:29:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes