0_0_13515642_9486.cpp: In function 'int main()':
0_0_13515642_9486.cpp:31:34: error: no match for 'operator=' (operand types are 'line' and 'int')
lines[num++] = temp;
^
0_0_13515642_9486.cpp:31:34: note: candidates are:
0_0_13515642_9486.cpp:6:8: note: line& line::operator=(const line&)
struct line
^
0_0_13515642_9486.cpp:6:8: note: no known conversion for argument 1 from 'int' to 'const line&'
0_0_13515642_9486.cpp:6:8: note: line& line::operator=(line&&)
0_0_13515642_9486.cpp:6:8: note: no known conversion for argument 1 from 'int' to 'line&&'
0_0_13515642_9486.cpp:42:28: error: expected primary-expression before '+' token
sort( lines+1, line+linesCount, cmp );
^
0_0_13515642_9486.cpp:46:28: error: request for member 'start' in 'lines', which is of non-class type 'line [5005]'
for( s = lines.start; s != set[s]; s = set[s] )
^
0_0_13515642_9486.cpp:48:28: error: request for member 'end' in 'lines', which is of non-class type 'line [5005]'
for( e = lines.end; e != set[e]; e = set[e] )
^
0_0_13515642_9486.cpp:52:21: error: no match for 'operator+=' (operand types are 'int' and 'line')
sum += lines[i];
^
0_0_13515642_9486.cpp:56:28: error: 'print' was not declared in this scope
print( "%d\n", sum );
^
|