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_36985861_23513.cpp: In function 'int main()':
0_0_36985861_23513.cpp:7:17: error: conflicting declaration 'char a [n][100]'
    char a[n][100];
                 ^
0_0_36985861_23513.cpp:4:10: note: previous declaration as 'int a'
    int n,a=0,e=0,i=0,o=0,u=0;
          ^
0_0_36985861_23513.cpp:10:20: error: invalid types 'int[int]' for array subscript
            gets(a[x]);//gcc好像会报错gets
                    ^
0_0_36985861_23513.cpp:13:36: error: invalid types 'int[int]' for array subscript
            for(int j=0;j<strlen(a[x]);j++){
                                    ^
0_0_36985861_23513.cpp:14:18: error: invalid types 'int[int]' for array subscript
            if(a[x][j]=='a') a++;
                  ^
0_0_36985861_23513.cpp:15:18: error: invalid types 'int[int]' for array subscript
            if(a[x][j]=='e') e++;
                  ^
0_0_36985861_23513.cpp:16:18: error: invalid types 'int[int]' for array subscript
            if(a[x][j]=='i') i++;
                  ^
0_0_36985861_23513.cpp:17:18: error: invalid types 'int[int]' for array subscript
            if(a[x][j]=='o') o++;
                  ^
0_0_36985861_23513.cpp:18:18: error: invalid types 'int[int]' for array subscript
            if(a[x][j]=='u') u++;
                  ^


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-07-06 02:02:05, Gzip enabled