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_16826809_20222.cpp: In function 'int main()':
0_0_16826809_20222.cpp:8:4: error: invalid types 'int[int]' for array subscript
 a[0]=a[1]=1;
    ^
0_0_16826809_20222.cpp:8:9: error: invalid types 'int[int]' for array subscript
 a[0]=a[1]=1;
         ^
0_0_16826809_20222.cpp:11:4: error: invalid types 'int[int]' for array subscript
 a[i]=(a[i-2]*a+a[i-1]*b)%7;
    ^
0_0_16826809_20222.cpp:11:12: error: invalid types 'int[int]' for array subscript
 a[i]=(a[i-2]*a+a[i-1]*b)%7;
            ^
0_0_16826809_20222.cpp:11:21: error: invalid types 'int[int]' for array subscript
 a[i]=(a[i-2]*a+a[i-1]*b)%7;
                     ^
0_0_16826809_20222.cpp:12:7: error: invalid types 'int[int]' for array subscript
 if(a[i]==1&&a[i-1]==1) break;
       ^
0_0_16826809_20222.cpp:12:18: error: invalid types 'int[int]' for array subscript
 if(a[i]==1&&a[i-1]==1) break;
                  ^
0_0_16826809_20222.cpp:15:29: error: invalid types 'int[int]' for array subscript
 if(n==0) printf("%d/n",a[i-2]);
                             ^
0_0_16826809_20222.cpp:16:25: error: invalid types 'int[int]' for array subscript
 else printf("%d/n",a[n-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-27 00:09:14, Gzip enabled