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