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_16798505_18353.cpp: In function 'int main()':
0_0_16798505_18353.cpp:2:20: error: expected ']' before ';' token
 #define N 100000001;
                    ^
0_0_16798505_18353.cpp:5:29: note: in expansion of macro 'N'
          int t,n1,n2,n3,i,f[N]={0,1,1};
                             ^
0_0_16798505_18353.cpp:5:30: error: expected primary-expression before ']' token
          int t,n1,n2,n3,i,f[N]={0,1,1};
                              ^
0_0_16798505_18353.cpp:10:9: error: 'f' was not declared in this scope
         f[i]=(n1*f[i-1]+n2f[i-2])%7;
         ^
0_0_16798505_18353.cpp:10:25: error: 'n2f' was not declared in this scope
         f[i]=(n1*f[i-1]+n2f[i-2])%7;
                         ^
0_0_16798505_18353.cpp:11:11: error: 'f' was not declared in this scope
         t=f[n3];
           ^


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-29 19:12:24, Gzip enabled