Job 12726

Owner
Cir Constantin
Problem
Spiral
Contest
MindCoding 2016 Test Round (Div. 2)
Source
1.11KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:22:17: warning: statement has no effect [-Wunused-value]
         for ( j ; j <= n && k < m1 * m2; j ++ )
                 ^
prog.cpp:31:17: warning: statement has no effect [-Wunused-value]
         for ( i ; i <= m && k < m1 * m2; i ++ )
                 ^
prog.cpp:40:17: warning: statement has no effect [-Wunused-value]
         for ( j ; j >= i - m + 1 && k < m1 * m2; j -- )
                 ^
prog.cpp:49:17: warning: statement has no effect [-Wunused-value]
         for ( j ; i > 1 && k < m1 * m2; i -- )
                 ^

Results

Test numberResultTime
1Wrong answer0.7531s
Questions?

Sponsors Gold