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_36632027_5340.cpp:27:9: error: 'N' was not declared in this scope
 char op[N];
         ^
0_0_36632027_5340.cpp:28:7: error: 'N' was not declared in this scope
 int v[N];
       ^
0_0_36632027_5340.cpp: In function 'int Mod(int)':
0_0_36632027_5340.cpp:31:15: error: 'P' was not declared in this scope
     return x>=P?x-P:x;
               ^
0_0_36632027_5340.cpp: In function 'void dfs(int, int, int, int)':
0_0_36632027_5340.cpp:39:12: error: 'op' was not declared in this scope
         if(op[i]=='+' && lst1<i) dfs(S-(1<<i),Mod(x+v[i]),i,-1);
            ^
0_0_36632027_5340.cpp:39:53: error: 'v' was not declared in this scope
         if(op[i]=='+' && lst1<i) dfs(S-(1<<i),Mod(x+v[i]),i,-1);
                                                     ^
0_0_36632027_5340.cpp:40:12: error: 'op' was not declared in this scope
         if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
            ^
0_0_36632027_5340.cpp:40:53: error: 'v' was not declared in this scope
         if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
                                                     ^
0_0_36632027_5340.cpp:40:58: error: 'P' was not declared in this scope
         if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
                                                          ^
0_0_36632027_5340.cpp: In function 'int main()':
0_0_36632027_5340.cpp:54:13: error: 'P' was not declared in this scope
         ans=P;
             ^
0_0_36632027_5340.cpp:58:19: error: 'op' was not declared in this scope
             while(op[i]=getchar(), op[i]!='*' && op[i]!='+');
                   ^
0_0_36632027_5340.cpp:59:13: error: 'v' was not declared in this scope
             v[i]=rd();
             ^
0_0_36632027_5340.cpp:64:25: error: 'op' was not declared in this scope
         rep(i,0,n-1) if(op[i]=='*') S|=1<<i;
                         ^
0_0_36632027_5340.cpp:81:51: error: 'v' was not declared in this scope
                 rep(i,0,n-1) if(x&(1<<i)) w=1ll*w*v[i]%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-22 22:03:59, Gzip enabled