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_18897320_8844.cpp: In function 'int main()':
0_0_18897320_8844.cpp:7:5: error: expected initializer before 'char'
     char str[120];
     ^
0_0_18897320_8844.cpp:12:12: error: invalid types 'int[int]' for array subscript
         n[0]=0;n[1]=0;n[2]=0;n[3]=0;n[4]=0;
            ^
0_0_18897320_8844.cpp:12:19: error: invalid types 'int[int]' for array subscript
         n[0]=0;n[1]=0;n[2]=0;n[3]=0;n[4]=0;
                   ^
0_0_18897320_8844.cpp:12:26: error: invalid types 'int[int]' for array subscript
         n[0]=0;n[1]=0;n[2]=0;n[3]=0;n[4]=0;
                          ^
0_0_18897320_8844.cpp:12:33: error: invalid types 'int[int]' for array subscript
         n[0]=0;n[1]=0;n[2]=0;n[3]=0;n[4]=0;
                                 ^
0_0_18897320_8844.cpp:12:40: error: invalid types 'int[int]' for array subscript
         n[0]=0;n[1]=0;n[2]=0;n[3]=0;n[4]=0;
                                        ^
0_0_18897320_8844.cpp:13:14: error: 'str' was not declared in this scope
         gets(str);
              ^
0_0_18897320_8844.cpp:14:9: error: 'l' was not declared in this scope
         l=strlen(str);
         ^
0_0_18897320_8844.cpp:18:21: error: invalid types 'int[int]' for array subscript
                 {n[0]++;continue;}
                     ^
0_0_18897320_8844.cpp:20:20: error: invalid types 'int[int]' for array subscript
                {n[1]++;continue;}
                    ^
0_0_18897320_8844.cpp:22:21: error: invalid types 'int[int]' for array subscript
                 {n[2]++;continue;}
                     ^
0_0_18897320_8844.cpp:24:21: error: invalid types 'int[int]' for array subscript
                 {n[3]++;continue;}
                     ^
0_0_18897320_8844.cpp:26:21: error: invalid types 'int[int]' for array subscript
                 {n[4]++;continue;}}
                     ^
0_0_18897320_8844.cpp:27:60: error: invalid types 'int[int]' for array subscript
                 printf("a:%d\ne:%d\ni:%d\no:%d\nu:%d\n",n[0],n[1],n[2],n[3],n[4]);
                                                            ^
0_0_18897320_8844.cpp:27:65: error: invalid types 'int[int]' for array subscript
                 printf("a:%d\ne:%d\ni:%d\no:%d\nu:%d\n",n[0],n[1],n[2],n[3],n[4]);
                                                                 ^
0_0_18897320_8844.cpp:27:70: error: invalid types 'int[int]' for array subscript
                 printf("a:%d\ne:%d\ni:%d\no:%d\nu:%d\n",n[0],n[1],n[2],n[3],n[4]);
                                                                      ^
0_0_18897320_8844.cpp:27:75: error: invalid types 'int[int]' for array subscript
                 printf("a:%d\ne:%d\ni:%d\no:%d\nu:%d\n",n[0],n[1],n[2],n[3],n[4]);
                                                                           ^
0_0_18897320_8844.cpp:27:80: error: invalid types 'int[int]' for array subscript
                 printf("a:%d\ne:%d\ni:%d\no:%d\nu:%d\n",n[0],n[1],n[2],n[3],n[4]);
                                                                                ^


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-11-15 02:09:14, Gzip enabled