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_36469646_23729.cpp:2:11: error: '::main' must return 'int'
 void main()
           ^
0_0_36469646_23729.cpp: In function 'int main()':
0_0_36469646_23729.cpp:7:16: error: conflicting declaration 'long long int a [100]'
 long long a[100];
                ^
0_0_36469646_23729.cpp:6:5: note: previous declaration as 'int a'
 int a,b,i;
     ^
0_0_36469646_23729.cpp:11:4: error: invalid types 'int[int]' for array subscript
 a[a]=1;
    ^
0_0_36469646_23729.cpp:12:6: error: invalid types 'int[int]' for array subscript
 a[a+1]=1;
      ^
0_0_36469646_23729.cpp:13:6: error: invalid types 'int[int]' for array subscript
 a[a+2]=2;
      ^
0_0_36469646_23729.cpp:16:4: error: invalid types 'int[int]' for array subscript
 a[i]=a[i-1]+a[i-2];
    ^
0_0_36469646_23729.cpp:16:11: error: invalid types 'int[int]' for array subscript
 a[i]=a[i-1]+a[i-2];
           ^
0_0_36469646_23729.cpp:16:18: error: invalid types 'int[int]' for array subscript
 a[i]=a[i-1]+a[i-2];
                  ^
0_0_36469646_23729.cpp:18:20: error: invalid types 'int[int]' for array subscript
 printf("%lld\n",a[b]);
                    ^


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-29 08:03:52, Gzip enabled