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_37533858_21136.cpp:7:15: error: expected initializer before numeric constant
 const int mod 1000000007;
               ^
0_0_37533858_21136.cpp: In function 'void build(int, int, int)':
0_0_37533858_21136.cpp:21:34: error: 'mod' was not declared in this scope
     t[k]=((t[k<<1])*(t[k<<1|1]))%mod;
                                  ^
0_0_37533858_21136.cpp: In function 'void upd(int, int, int, int, int)':
0_0_37533858_21136.cpp:50:25: error: 'mod' was not declared in this scope
  t[ind]=(t[rt]*t[rt+1])%mod;
                         ^
0_0_37533858_21136.cpp: In function 'long long int query(int, int, int, int, int)':
0_0_37533858_21136.cpp:59:48: error: 'mod' was not declared in this scope
     if(l<=mid) ans=(ans*query(L,mid,l,r,k<<1))%mod;
                                                ^
0_0_37533858_21136.cpp:60:51: error: 'mod' was not declared in this scope
     if(r>mid) ans=(ans*query(mid+1,R,l,r,k<<1|1))%mod;
                                                   ^
0_0_37533858_21136.cpp:61:16: error: 'mod' was not declared in this scope
     return ans%mod;
                ^


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-10-06 01:42:01, Gzip enabled