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];
^
|