0_0_21437103_2662.cpp: In function 'int main()':
0_0_21437103_2662.cpp:34:13: error: no match for 'operator=' (operand types are 'stick' and 'int')
a[++k]=a[i].w;
^
0_0_21437103_2662.cpp:34:13: note: candidates are:
0_0_21437103_2662.cpp:4:8: note: stick& stick::operator=(const stick&)
struct stick{
^
0_0_21437103_2662.cpp:4:8: note: no known conversion for argument 1 from 'int' to 'const stick&'
0_0_21437103_2662.cpp:4:8: note: stick& stick::operator=(stick&&)
0_0_21437103_2662.cpp:4:8: note: no known conversion for argument 1 from 'int' to 'stick&&'
|