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_34881091_25452.cpp:12:9: error: conflicting declaration 'int a [12]'
 int a[12];
         ^
0_0_34881091_25452.cpp:8:5: note: previous declaration as 'int a'
 int a;
     ^
0_0_34881091_25452.cpp: In function 'int main()':
0_0_34881091_25452.cpp:15:9: error: invalid types 'int[int]' for array subscript
     a[12] = a[10] = a[8] = a[7] = a[5] = a[3] = a[1] = 31;
         ^
0_0_34881091_25452.cpp:15:17: error: invalid types 'int[int]' for array subscript
     a[12] = a[10] = a[8] = a[7] = a[5] = a[3] = a[1] = 31;
                 ^
0_0_34881091_25452.cpp:15:24: error: invalid types 'int[int]' for array subscript
     a[12] = a[10] = a[8] = a[7] = a[5] = a[3] = a[1] = 31;
                        ^
0_0_34881091_25452.cpp:15:31: error: invalid types 'int[int]' for array subscript
     a[12] = a[10] = a[8] = a[7] = a[5] = a[3] = a[1] = 31;
                               ^
0_0_34881091_25452.cpp:15:38: error: invalid types 'int[int]' for array subscript
     a[12] = a[10] = a[8] = a[7] = a[5] = a[3] = a[1] = 31;
                                      ^
0_0_34881091_25452.cpp:15:45: error: invalid types 'int[int]' for array subscript
     a[12] = a[10] = a[8] = a[7] = a[5] = a[3] = a[1] = 31;
                                             ^
0_0_34881091_25452.cpp:15:52: error: invalid types 'int[int]' for array subscript
     a[12] = a[10] = a[8] = a[7] = a[5] = a[3] = a[1] = 31;
                                                    ^
0_0_34881091_25452.cpp:16:8: error: invalid types 'int[int]' for array subscript
     a[2] = 28;
        ^
0_0_34881091_25452.cpp:17:8: error: invalid types 'int[int]' for array subscript
     a[4] = a[6] = a[9] = a[11] = 30;
        ^
0_0_34881091_25452.cpp:17:15: error: invalid types 'int[int]' for array subscript
     a[4] = a[6] = a[9] = a[11] = 30;
               ^
0_0_34881091_25452.cpp:17:22: error: invalid types 'int[int]' for array subscript
     a[4] = a[6] = a[9] = a[11] = 30;
                      ^
0_0_34881091_25452.cpp:17:30: error: invalid types 'int[int]' for array subscript
     a[4] = a[6] = a[9] = a[11] = 30;
                              ^
0_0_34881091_25452.cpp:18:27: error: expected ')' before '{' token
     while (scanf("%d/",a) {
                           ^
0_0_34881091_25452.cpp:23:24: error: invalid types 'int[int]' for array subscript
             sum1 += a[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-12-02 22:26:26, Gzip enabled