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_15055205_16011.cpp: In function 'int main()':
0_0_15055205_16011.cpp:2:14: error: '_int64' was not declared in this scope
 int main() { _int64 N=0,i=0,a=0,b=0,sum[51]={0}; scanf("%d",&N); sum[0]=1; sum[1]=1; for(i=2;i<51;i++) sum[i]=sum[i-1]+sum[i-2]; while(N--) { scanf("%d%d",&a,&b); printf("%I64dn",sum[b-a]); } return 1; } 
              ^
0_0_15055205_16011.cpp:2:62: error: 'N' was not declared in this scope
 int main() { _int64 N=0,i=0,a=0,b=0,sum[51]={0}; scanf("%d",&N); sum[0]=1; sum[1]=1; for(i=2;i<51;i++) sum[i]=sum[i-1]+sum[i-2]; while(N--) { scanf("%d%d",&a,&b); printf("%I64dn",sum[b-a]); } return 1; } 
                                                              ^
0_0_15055205_16011.cpp:2:66: error: 'sum' was not declared in this scope
 int main() { _int64 N=0,i=0,a=0,b=0,sum[51]={0}; scanf("%d",&N); sum[0]=1; sum[1]=1; for(i=2;i<51;i++) sum[i]=sum[i-1]+sum[i-2]; while(N--) { scanf("%d%d",&a,&b); printf("%I64dn",sum[b-a]); } return 1; } 
                                                                  ^
0_0_15055205_16011.cpp:2:90: error: 'i' was not declared in this scope
 int main() { _int64 N=0,i=0,a=0,b=0,sum[51]={0}; scanf("%d",&N); sum[0]=1; sum[1]=1; for(i=2;i<51;i++) sum[i]=sum[i-1]+sum[i-2]; while(N--) { scanf("%d%d",&a,&b); printf("%I64dn",sum[b-a]); } return 1; } 
                                                                                          ^
0_0_15055205_16011.cpp:2:157: error: 'a' was not declared in this scope
 int main() { _int64 N=0,i=0,a=0,b=0,sum[51]={0}; scanf("%d",&N); sum[0]=1; sum[1]=1; for(i=2;i<51;i++) sum[i]=sum[i-1]+sum[i-2]; while(N--) { scanf("%d%d",&a,&b); printf("%I64dn",sum[b-a]); } return 1; } 
                                                                                                                                                             ^
0_0_15055205_16011.cpp:2:160: error: 'b' was not declared in this scope
 int main() { _int64 N=0,i=0,a=0,b=0,sum[51]={0}; scanf("%d",&N); sum[0]=1; sum[1]=1; for(i=2;i<51;i++) sum[i]=sum[i-1]+sum[i-2]; while(N--) { scanf("%d%d",&a,&b); printf("%I64dn",sum[b-a]); } return 1; } 
                                                                                                                                                                ^


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-20 23:24:05, Gzip enabled