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_38881322_1662.cpp:4:7: error: 'mod' does not name a type
    4 | const mod=1e9+7;
      |       ^~~
0_0_38881322_1662.cpp: In function 'int main()':
0_0_38881322_1662.cpp:8:17: error: 'lg2' was not declared in this scope; did you mean 'log2'?
    8 |                 lg2[1<<i]=i;
      |                 ^~~
      |                 log2
0_0_38881322_1662.cpp:16:24: error: 'g' was not declared in this scope
   16 |                 memset(g,0,sizeof(g));
      |                        ^
0_0_38881322_1662.cpp:26:47: error: 'lg2' was not declared in this scope; did you mean 'log2'?
   26 |                                         int k=lg2[j&-j];
      |                                               ^~~
      |                                               log2
0_0_38881322_1662.cpp:27:87: error: 'mod' was not declared in this scope; did you mean 'modf'?
   27 |                                         h[i]=(h[i]+(l[k]<=x&&x<=r[k]?g[i&~(j&-j)]:0))%mod;
      |                                                                                       ^~~
      |                                                                                       modf
0_0_38881322_1662.cpp:29:40: error: 'lg2' was not declared in this scope; did you mean 'log2'?
   29 |                                 int id=lg2[i&(-i)];mint k=i^(1<<id);
      |                                        ^~~
      |                                        log2
0_0_38881322_1662.cpp:29:52: error: 'mint' was not declared in this scope; did you mean 'rint'?
   29 |                                 int id=lg2[i&(-i)];mint k=i^(1<<id);
      |                                                    ^~~~
      |                                                    rint
0_0_38881322_1662.cpp:30:43: error: 'k' was not declared in this scope
   30 |                                 for(int j=k;;j=(j-1)&k){
      |                                           ^
0_0_38881322_1662.cpp:31:73: error: 'mod' was not declared in this scope; did you mean 'modf'?
   31 |                                         g[i]=(g[i]+g[k^j]*h[j|(1<<id)])%mod;
      |                                                                         ^~~
      |                                                                         modf
0_0_38881322_1662.cpp:38:25: error: 'm' was not declared in this scope
   38 |                 cout<<h[m-1];
      |                         ^


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-17 11:52:49, Gzip enabled