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_20541115_265.cpp:24:21: error: conflicting declaration 'int k [1111]'
 int fa[maxn], k[maxn];
                     ^
0_0_20541115_265.cpp:23:8: note: previous declaration as 'int k'
 int n, k, num[maxn];
        ^
0_0_20541115_265.cpp: In function 'void init()':
0_0_20541115_265.cpp:33:12: error: invalid types 'int[int]' for array subscript
         k[i] = 0;
            ^
0_0_20541115_265.cpp:42:16: error: invalid types 'int[int]' for array subscript
             k[y]++;
                ^
0_0_20541115_265.cpp:47:20: error: invalid types 'int[int]' for array subscript
         if(k == k[i])
                    ^


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-09-21 19:32:20, Gzip enabled