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