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_34707329_25663.cpp:2:7: error: 'N' was not declared in this scope
 int B[N]={1,1,2};
       ^
0_0_34707329_25663.cpp: In function 'int main()':
0_0_34707329_25663.cpp:5:9: error: 'sf' was not declared in this scope
     sf(t);
         ^
0_0_34707329_25663.cpp:6:19: error: 'N' was not declared in this scope
     for(int i=3;i<N;++i)
                   ^
0_0_34707329_25663.cpp:11:16: error: 'B' was not declared in this scope
         if(j%2)B[i]=(B[i]+B[i-w])%mod;
                ^
0_0_34707329_25663.cpp:11:35: error: 'mod' was not declared in this scope
         if(j%2)B[i]=(B[i]+B[i-w])%mod;
                                   ^
0_0_34707329_25663.cpp:12:14: error: 'B' was not declared in this scope
         else B[i]=(B[i]-B[i-w]+mod)%mod;
              ^
0_0_34707329_25663.cpp:12:32: error: 'mod' was not declared in this scope
         else B[i]=(B[i]-B[i-w]+mod)%mod;
                                ^
0_0_34707329_25663.cpp:17:13: error: 'B' was not declared in this scope
         ans=B[n]%mod;
             ^
0_0_34707329_25663.cpp:17:18: error: 'mod' was not declared in this scope
         ans=B[n]%mod;
                  ^
0_0_34707329_25663.cpp:25:26: error: 'printf' was not declared in this scope
         printf("%d\n",ans);
                          ^


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 08:44:54, Gzip enabled