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_23046853_8769.cpp: In function 'int main()':
0_0_23046853_8769.cpp:5:10: error: conflicting declaration 'int a [55]'
  int a[55];
          ^
0_0_23046853_8769.cpp:4:8: note: previous declaration as 'int a'
  int n,a,b,i,flag;
        ^
0_0_23046853_8769.cpp:12:6: error: invalid types 'int[int]' for array subscript
   a[0]=0,a[1]=1,a[2]=2;
      ^
0_0_23046853_8769.cpp:12:13: error: invalid types 'int[int]' for array subscript
   a[0]=0,a[1]=1,a[2]=2;
             ^
0_0_23046853_8769.cpp:12:20: error: invalid types 'int[int]' for array subscript
   a[0]=0,a[1]=1,a[2]=2;
                    ^
0_0_23046853_8769.cpp:15:7: error: invalid types 'int[int]' for array subscript
    a[i]=a[i-2]+a[i-1];
       ^
0_0_23046853_8769.cpp:15:14: error: invalid types 'int[int]' for array subscript
    a[i]=a[i-2]+a[i-1];
              ^
0_0_23046853_8769.cpp:15:21: error: invalid types 'int[int]' for array subscript
    a[i]=a[i-2]+a[i-1];
                     ^
0_0_23046853_8769.cpp:17:23: error: invalid types 'int[int]' for array subscript
   printf("%d\n",a[flag]);
                       ^


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-10-02 01:03:45, Gzip enabled