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_24107276_4343.cpp: In function 'int main()':
0_0_24107276_4343.cpp:9:22: error: invalid types 'int[int]' for array subscript
     char data[1010[20];
                      ^
0_0_24107276_4343.cpp:9:23: error: expected ']' before ';' token
     char data[1010[20];
                       ^
0_0_24107276_4343.cpp:16:39: error: 'data' was not declared in this scope
             for(int i=0;i<n;i++) cin>>data[i];
                                       ^
0_0_24107276_4343.cpp:17:18: error: 'data' was not declared in this scope
             sort(data,data+n);
                  ^
0_0_24107276_4343.cpp:23:62: error: expected ';' before ':' token
                     if(strcmp(data[i],data[j])==0) count[i]++:
                                                              ^
0_0_24107276_4343.cpp:26:24: error: no match for 'operator[]' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'int')
                 if(cout[i]>max) max=count[i];
                        ^
0_0_24107276_4343.cpp:35:5: error: break statement not within loop or switch
     break;
     ^


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-03 20:23:36, Gzip enabled