fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. double x,y;
  7. cin >> x >> y;
  8. cout << ( (pow(x,2)+pow(y,2)<=1 && (y>=x || x<=0))) ? "YES" : "NO");
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:68: error: expected ‘;’ before ‘)’ token
  cout << ( (pow(x,2)+pow(y,2)<=1 && (y>=x || x<=0))) ? "YES" : "NO");
                                                                    ^
                                                                    ;
stdout
Standard output is empty