fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. double a[10];
  5.  
  6. int main() {
  7. memset(a,-1,sizeof(a));
  8. for(int i = 0; i < 10; ++i){
  9. cout << fixed << setprecision(15) << a[i] << "\n";
  10. }
  11. if(a[0]==a[1]) printf("Yes\n"); //I bet you expect this to happen
  12. else printf("No\n");
  13. return 0;
  14. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
No