Job 15737

Owner
Badea Adrian Catalin
Problem
Byte Trains
Contest
MindCoding 2016 Round 3 (Div. 1)
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.2607s
2Ok0.2640s
3Ok0.2596s
4Ok0.2726s
5Ok0.2622s
6Ok0.2643s
7Ok0.2597s
8Ok0.2643s
9Ok0.2672s
Questions?

Sponsors Gold