F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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 );
                            ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-07 04:22:03, Gzip enabled