Job 15979

Owner
Badea Adrian Catalin
Problem
Byte Trains
Source
0.61KB
Result
Accepted

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:10:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[8010]' [-Wformat=]
     scanf("%s",&s);
                  ^
prog.cpp:18:25: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses]
                 if (s[k]!='0'!=0) {
                         ^

Results

Test numberResultTime
1Ok0.2567s
2Ok0.2578s
3Ok0.2584s
4Ok0.2642s
5Ok0.2595s
6Ok0.2592s
7Ok0.2572s
8Ok0.2596s
9Ok0.2583s
Questions?

Sponsors Gold