Job 20937

Owner
Dragos Tanase
Problem
Circle
Source
0.49KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:10:56: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if((xi*xi) + (yi*yi) < R || ((xi*xi)+(yi*yi)) == R && !(xi*xi+yi*yi>R)){
                                                        ^
prog.cpp:16:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 if((d < R) || (d==R) && x!=0 && y!=0){
                              ^

Results

Test numberResultTime
1Ok0.2797s
2Wrong answer0.2737s
Questions?

Sponsors Gold