Job 12305

Owner
Arnold Beiland
Problem
Scrabble
Source
0.51KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:7:17: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[35]' [-Wformat=]
    scanf("%s",&s);
                 ^
prog.cpp:11:39: warning: array subscript has type 'char' [-Wchar-subscripts]
    for(int i=0;s[i];++i) ++s_stat[s[i]];
                                       ^
prog.cpp:20:44: warning: array subscript has type 'char' [-Wchar-subscripts]
         for(int i=0;w[i];++i) ++w_stat[w[i]];
                                            ^

Results

Test numberResultTime
1Wrong answer0.3554s
Questions?

Sponsors Gold