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_38807268_8422.cpp: In function 'int main()':
0_0_38807268_8422.cpp:139:46: error: invalid operands of types 'int' and 'std::ios_base&(std::ios_base&)' to binary 'operator-'
  139 |             upper_right[point[i].idx]=n-i-num-right[point[i].hx]-left[point[i].hy];
      |                                       ~~~~~~~^~~~~~~~~~~~~~~~~~~
      |                                          |                     |
      |                                          int                   std::ios_base&(std::ios_base&)
0_0_38807268_8422.cpp:140:29: error: lvalue required as increment operand
  140 |             left[point[i].hy]++;
      |                             ^
0_0_38807268_8422.cpp:141:30: error: lvalue required as increment operand
  141 |             right[point[i].hx]++;
      |                              ^


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-06-30 18:00:57, Gzip enabled