Job 12306

Owner
Arnold Beiland
Problem
Scrabble
Source
0.78KB
Result
Accepted

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:17:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[31]' [-Wformat=]
     scanf("%s",&s);
                  ^
prog.cpp:21:40: warning: array subscript has type 'char' [-Wchar-subscripts]
     for(int i=0;s[i];++i) ++s_stat[s[i]];
                                        ^
prog.cpp:29:60: warning: array subscript has type 'char' [-Wchar-subscripts]
         for(int i=0;words[iw][i];++i) ++w_stat[words[iw][i]];
                                                            ^

Results

Test numberResultTime
1Ok0.3404s
2Ok0.1191s
3Ok0.1160s
4Ok0.1416s
5Ok0.2740s
6Ok0.1541s
7Ok0.2200s
8Ok0.1743s
9Ok0.1805s
10Ok0.1124s
Questions?

Sponsors Gold