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_29588720_14238.cpp: In function 'void SegT::pushdown(int)':
0_0_29588720_14238.cpp:39:25: error: lvalue required as left operand of assignment
   ((long long)mul[lson] *= mul[root]) %= P, (add[lson] *= mul[root]) %= P;
                         ^
0_0_29588720_14238.cpp:40:25: error: lvalue required as left operand of assignment
   ((long long)val[lson] *= mul[root]) %= P;
                         ^
0_0_29588720_14238.cpp:41:25: error: lvalue required as left operand of assignment
   ((long long)sqr[lson] *= (mul[root] * mul[root] % P)) %= P;
                         ^
0_0_29588720_14238.cpp:42:25: error: lvalue required as left operand of assignment
   ((long long)cub[lson] *= (mul[root] * mul[root] % P * mul[root] % P)) %= P;
                         ^
0_0_29588720_14238.cpp:43:25: error: lvalue required as left operand of assignment
   ((long long)mul[rson] *= mul[root]) %= P, (add[rson] *= mul[root]) %= P;
                         ^
0_0_29588720_14238.cpp:44:25: error: lvalue required as left operand of assignment
   ((long long)val[rson] *= mul[root]) %= P;
                         ^
0_0_29588720_14238.cpp:45:25: error: lvalue required as left operand of assignment
   ((long long)sqr[rson] *= (mul[root] * mul[root] % P)) %= P;
                         ^
0_0_29588720_14238.cpp:46:25: error: lvalue required as left operand of assignment
   ((long long)cub[rson] *= (mul[root] * mul[root] % P * mul[root] % P)) %= P;
                         ^
0_0_29588720_14238.cpp:56:25: error: lvalue required as left operand of assignment
   ((long long)val[lson] += (long long)add[root]*len[lson]) %= P;
                         ^
0_0_29588720_14238.cpp:63:25: error: lvalue required as left operand of assignment
   ((long long)val[rson] += (long long)add[root]*len[rson]) %= P;
                         ^


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-16 20:42:16, Gzip enabled