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_14721143_22912.cpp: In function 'int main()':
0_0_14721143_22912.cpp:7:18: error: conflicting declaration 'long long int a [100]'
     __int64 a[100], s;
                  ^
0_0_14721143_22912.cpp:6:13: note: previous declaration as 'long long int a'
     __int64 a, b, i, p;
             ^
0_0_14721143_22912.cpp:11:12: error: invalid types 'long long int[int]' for array subscript
         a[1] = a % 10;
            ^
0_0_14721143_22912.cpp:15:16: error: invalid types 'long long int[long long int]' for array subscript
             a[i] = a[i - 1] * a % 10;
                ^
0_0_14721143_22912.cpp:15:27: error: invalid types 'long long int[long long int]' for array subscript
             a[i] = a[i - 1] * a % 10;
                           ^
0_0_14721143_22912.cpp:17:19: error: invalid types 'long long int[long long int]' for array subscript
             if(a[i] == a[1])
                   ^
0_0_14721143_22912.cpp:17:27: error: invalid types 'long long int[int]' for array subscript
             if(a[i] == a[1])
                           ^
0_0_14721143_22912.cpp:23:38: error: invalid types 'long long int[long long int]' for array subscript
                 printf("%I64d\n", a[s]);
                                      ^
0_0_14721143_22912.cpp:28:34: error: invalid types 'long long int[long long int]' for array subscript
         printf("%I64d\n", a[i - 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-10-25 11:20:49, Gzip enabled