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_36549502_10708.cpp:19:17: error: 'N' was not declared in this scope
 int n,m,k,T,x,G[N+5],inv[N+5],now;ll Ans,F[N+5],W1[N+5],W2[N+5];
                 ^
0_0_36549502_10708.cpp:19:26: error: 'N' was not declared in this scope
 int n,m,k,T,x,G[N+5],inv[N+5],now;ll Ans,F[N+5],W1[N+5],W2[N+5];
                          ^
0_0_36549502_10708.cpp:19:44: error: 'N' was not declared in this scope
 int n,m,k,T,x,G[N+5],inv[N+5],now;ll Ans,F[N+5],W1[N+5],W2[N+5];
                                            ^
0_0_36549502_10708.cpp:19:52: error: 'N' was not declared in this scope
 int n,m,k,T,x,G[N+5],inv[N+5],now;ll Ans,F[N+5],W1[N+5],W2[N+5];
                                                    ^
0_0_36549502_10708.cpp:19:60: error: 'N' was not declared in this scope
 int n,m,k,T,x,G[N+5],inv[N+5],now;ll Ans,F[N+5],W1[N+5],W2[N+5];
                                                            ^
0_0_36549502_10708.cpp: In function 'void Solve()':
0_0_36549502_10708.cpp:28:17: error: 'F' was not declared in this scope
     re int i;Me(F,0);Me(W1,0);Me(W2,0);scanf("%d%d",&n,&m);while(m--) scanf("%d",&x),F[x]++;
                 ^
0_0_36549502_10708.cpp:16:24: note: in definition of macro 'Me'
 #define Me(x,y) memset(x,y,sizeof(x))
                        ^
0_0_36549502_10708.cpp:28:25: error: 'W1' was not declared in this scope
     re int i;Me(F,0);Me(W1,0);Me(W2,0);scanf("%d%d",&n,&m);while(m--) scanf("%d",&x),F[x]++;
                         ^
0_0_36549502_10708.cpp:16:24: note: in definition of macro 'Me'
 #define Me(x,y) memset(x,y,sizeof(x))
                        ^
0_0_36549502_10708.cpp:28:34: error: 'W2' was not declared in this scope
     re int i;Me(F,0);Me(W1,0);Me(W2,0);scanf("%d%d",&n,&m);while(m--) scanf("%d",&x),F[x]++;
                                  ^
0_0_36549502_10708.cpp:16:24: note: in definition of macro 'Me'
 #define Me(x,y) memset(x,y,sizeof(x))
                        ^
0_0_36549502_10708.cpp:29:34: error: 'G' was not declared in this scope
  for(i=0;i<(1<<n);i++) W1[i]=1ll*G[i]*F[i],W2[i]=F[i];
                                  ^
0_0_36549502_10708.cpp: In function 'int main()':
0_0_36549502_10708.cpp:34:21: error: 'N' was not declared in this scope
  re int i;for(i=0;i<N;i++){now=i;G[i]=1;while(now) G[i]<<=1,now-=now&-now;}scanf("%d",&T);while(T--) Solve();
                     ^
0_0_36549502_10708.cpp:34:34: error: 'G' was not declared in this scope
  re int i;for(i=0;i<N;i++){now=i;G[i]=1;while(now) G[i]<<=1,now-=now&-now;}scanf("%d",&T);while(T--) Solve();
                                  ^


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-26 07:12:56, Gzip enabled