Job 20936

Owner
Dragos Tanase
Problem
Circle
Source
0.51KB
Result
Wrong answer

Compiler output

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

Results

Test numberResultTime
1Ok0.2755s
2Wrong answer0.2759s
Questions?

Sponsors Gold