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_25844405_20474.cpp:8:7: error: 'll' does not name a type
 const ll mod=1e9+7;
       ^
0_0_25844405_20474.cpp:9:1: error: 'll' does not name a type
 ll read(){
 ^
0_0_25844405_20474.cpp:16:7: error: 'NM' was not declared in this scope
 int a[NM],l[NM],r[NM],n,root,sizes[NM];
       ^
0_0_25844405_20474.cpp:16:13: error: 'NM' was not declared in this scope
 int a[NM],l[NM],r[NM],n,root,sizes[NM];
             ^
0_0_25844405_20474.cpp:16:19: error: 'NM' was not declared in this scope
 int a[NM],l[NM],r[NM],n,root,sizes[NM];
                   ^
0_0_25844405_20474.cpp:16:36: error: 'NM' was not declared in this scope
 int a[NM],l[NM],r[NM],n,root,sizes[NM];
                                    ^
0_0_25844405_20474.cpp:17:1: error: 'll' does not name a type
 ll inv[NM],ans;
 ^
0_0_25844405_20474.cpp: In function 'void dfs(int)':
0_0_25844405_20474.cpp:20:5: error: 'sizes' was not declared in this scope
     sizes[x]=1;
     ^
0_0_25844405_20474.cpp:21:8: error: 'l' was not declared in this scope
     if(l[x])dfs(l[x]),sizes[x]+=sizes[l[x]];
        ^
0_0_25844405_20474.cpp:22:8: error: 'r' was not declared in this scope
     if(r[x])dfs(r[x]),sizes[x]+=sizes[r[x]];
        ^
0_0_25844405_20474.cpp:23:5: error: 'ans' was not declared in this scope
     ans*=inv[sizes[x]];ans%=mod;
     ^
0_0_25844405_20474.cpp:23:10: error: 'inv' was not declared in this scope
     ans*=inv[sizes[x]];ans%=mod;
          ^
0_0_25844405_20474.cpp:23:29: error: 'mod' was not declared in this scope
     ans*=inv[sizes[x]];ans%=mod;
                             ^
0_0_25844405_20474.cpp: In function 'void init()':
0_0_25844405_20474.cpp:26:11: error: 'inv' was not declared in this scope
     n=1e6;inv[1]=1;
           ^
0_0_25844405_20474.cpp:27:9: error: 'i' was not declared in this scope
     inc(i,2,n)inv[i]=inv[inf%i]*(inf-inf/i)%inf;
         ^
0_0_25844405_20474.cpp:27:14: error: 'inc' was not declared in this scope
     inc(i,2,n)inv[i]=inv[inf%i]*(inf-inf/i)%inf;
              ^
0_0_25844405_20474.cpp: In function 'int main()':
0_0_25844405_20474.cpp:30:16: error: 'read' was not declared in this scope
     int T=read();
                ^
0_0_25844405_20474.cpp:32:9: error: 'ans' was not declared in this scope
         ans=n=read();ans*=inv[2];ans%=mod;
         ^
0_0_25844405_20474.cpp:32:27: error: 'inv' was not declared in this scope
         ans=n=read();ans*=inv[2];ans%=mod;
                           ^
0_0_25844405_20474.cpp:32:39: error: 'mod' was not declared in this scope
         ans=n=read();ans*=inv[2];ans%=mod;
                                       ^
0_0_25844405_20474.cpp:34:13: error: 'a' was not declared in this scope
             a[i]=read();
             ^
0_0_25844405_20474.cpp:35:13: error: 'l' was not declared in this scope
             l[i]=r[i]=0;
             ^
0_0_25844405_20474.cpp:35:18: error: 'r' was not declared in this scope
             l[i]=r[i]=0;
                  ^
0_0_25844405_20474.cpp:38:31: error: 'a' was not declared in this scope
             while(!s.empty()&&a[i]>a[s.top()])l[i]=s.top(),s.pop();
                               ^
0_0_25844405_20474.cpp:38:47: error: 'l' was not declared in this scope
             while(!s.empty()&&a[i]>a[s.top()])l[i]=s.top(),s.pop();
                                               ^
0_0_25844405_20474.cpp:39:27: error: 'r' was not declared in this scope
             if(!s.empty())r[s.top()]=i;
                           ^


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-12-02 21:01:27, Gzip enabled