瀏覽代碼

printing values in heap

avadapal 2 年之前
父節點
當前提交
4d66c3b944
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      heap.cpp

+ 7 - 7
heap.cpp

@@ -763,7 +763,7 @@ void Heap(MPCIO & mpcio,
     size_t n_extracts = 0;
     int is_optimized = 0;
     int run_sanity = 0;
-    int itr = 0;
+    //int itr = 0;
 
     // Process command line arguments
     for (int i = 0; i < argc; i += 2) {
@@ -781,17 +781,17 @@ void Heap(MPCIO & mpcio,
         } else if (option == "-s" && i + 1 < argc) {
             run_sanity = std::atoi(args[i + 1]);
         } else if (option == "-itr" && i + 1 < argc) {
-            itr = std::atoi(args[i + 1]);
+            //itr = std::atoi(args[i + 1]);
         }
     }
 
     //std::cout << "maxdepth: " << maxdepth << std::endl;
     //std::cout << "run_sanity: " << run_sanity << std::endl;
-    std::cout << "heapsize: " << heapdepth << std::endl;
-    std::cout << "n_inserts: " << n_inserts << std::endl;
-    std::cout << "n_extracts: " << n_extracts << std::endl;
-    std::cout << "is_optimized: " << is_optimized << std::endl;
-    std::cout << "itr: " << itr << std::endl;
+    // std::cout << "heapsize: " << heapdepth << std::endl;
+    // std::cout << "n_inserts: " << n_inserts << std::endl;
+    // std::cout << "n_extracts: " << n_extracts << std::endl;
+    // std::cout << "is_optimized: " << is_optimized << std::endl;
+    // std::cout << "itr: " << itr << std::endl;
 
     
     MPCTIO tio(mpcio, 0, opts.num_threads);