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_39620550_28674.cpp: In function 'Node operator+(const Node&, const Node&)':
0_0_39620550_28674.cpp:147:13: error: declaration of 'int l' shadows a parameter
  147 |         int l = 1, r = 1;
      |             ^
0_0_39620550_28674.cpp:146:30: note: 'const Node& l' previously declared here
  146 | Node operator + (const Node& l, const Node& r) {
      |                  ~~~~~~~~~~~~^
0_0_39620550_28674.cpp:147:20: error: declaration of 'int r' shadows a parameter
  147 |         int l = 1, r = 1;
      |                    ^
0_0_39620550_28674.cpp:146:45: note: 'const Node& r' previously declared here
  146 | Node operator + (const Node& l, const Node& r) {
      |                                 ~~~~~~~~~~~~^
0_0_39620550_28674.cpp:150:33: error: request for member 'maxx' in 'l', which is of non-class type 'int'
  150 |                 if(l <= 10 && l.maxx[l] > r.maxx[r]) {
      |                                 ^~~~
0_0_39620550_28674.cpp:150:45: error: request for member 'maxx' in 'r', which is of non-class type 'int'
  150 |                 if(l <= 10 && l.maxx[l] > r.maxx[r]) {
      |                                             ^~~~
0_0_39620550_28674.cpp:151:36: error: request for member 'maxx' in 'l', which is of non-class type 'int'
  151 |                         res[i] = l.maxx[l];
      |                                    ^~~~
0_0_39620550_28674.cpp:154:36: error: request for member 'maxx' in 'r', which is of non-class type 'int'
  154 |                         res[i] = r.maxx[r];
      |                                    ^~~~


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-11-25 17:58:56, Gzip enabled