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_39345949_25199.cpp:2:9: error: 'N' was not declared in this scope
    2 | char op[N];
      |         ^
0_0_39345949_25199.cpp:3:7: error: 'N' was not declared in this scope
    3 | int v[N];
      |       ^
0_0_39345949_25199.cpp: In function 'int Mod(int)':
0_0_39345949_25199.cpp:6:15: error: 'P' was not declared in this scope
    6 |     return x>=P?x-P:x;
      |               ^
0_0_39345949_25199.cpp: In function 'void dfs(int, int, int, int)':
0_0_39345949_25199.cpp:14:12: error: 'op' was not declared in this scope
   14 |         if(op[i]=='+' && lst1<i) dfs(S-(1<<i),Mod(x+v[i]),i,-1);
      |            ^~
0_0_39345949_25199.cpp:14:53: error: 'v' was not declared in this scope
   14 |         if(op[i]=='+' && lst1<i) dfs(S-(1<<i),Mod(x+v[i]),i,-1);
      |                                                     ^
0_0_39345949_25199.cpp:15:12: error: 'op' was not declared in this scope
   15 |         if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
      |            ^~
0_0_39345949_25199.cpp:15:53: error: 'v' was not declared in this scope
   15 |         if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
      |                                                     ^
0_0_39345949_25199.cpp:15:58: error: 'P' was not declared in this scope
   15 |         if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
      |                                                          ^
0_0_39345949_25199.cpp: In function 'int main()':
0_0_39345949_25199.cpp:26:9: error: 'i' was not declared in this scope
   26 |     rep(i,0,9) bin[1<<i]=i;
      |         ^
0_0_39345949_25199.cpp:26:5: error: 'rep' was not declared in this scope
   26 |     rep(i,0,9) bin[1<<i]=i;
      |     ^~~
0_0_39345949_25199.cpp:28:9: error: '_' was not declared in this scope
   28 |     rep(_,1,rd()) {
      |         ^
0_0_39345949_25199.cpp:28:13: error: 'rd' was not declared in this scope
   28 |     rep(_,1,rd()) {
      |             ^~


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:32:03, Gzip enabled