Job 12748

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

Compiler output

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

Results

Test numberResultTime
1Wrong answer0.6324s
Questions?

Sponsors Gold