Skip to content

Commit

Permalink
removed debug
Browse files Browse the repository at this point in the history
  • Loading branch information
susmitmishra125 committed Mar 3, 2021
1 parent 851435a commit 0b9c7a3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions heap.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
#include<iostream>
using namespace std;
#ifndef ONLINE_JUDGE
template<typename A, typename B> ostream& operator<<(ostream &os, const pair<A, B> &p) { return os << '(' << p.first << ", " << p.second << ')'; }
template<typename T_container, typename T = typename enable_if<!is_same<T_container, string>::value, typename T_container::value_type>::type> ostream& operator<<(ostream &os, const T_container &v) { os << '{'; string sep; for (const T &x : v) os << sep << x, sep = ", "; return os << '}'; }
void debug_out() { cout << endl; }
template<typename Head, typename... Tail> void debug_out(Head H, Tail... T) { cout << ' ' << H; debug_out(T...); }
#define debug(...) cout << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)
#else
#define debug(...)
#endif

class heap{//max heap A[parent(i)]>=A[i]
public:
int *a,n,h;
Expand Down

0 comments on commit 0b9c7a3

Please sign in to comment.