-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugging Tool.cpp
More file actions
38 lines (31 loc) · 1.07 KB
/
Debugging Tool.cpp
File metadata and controls
38 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <bits/stdc++.h>
using namespace std;
#define debug(...) cerr << "[" << #__VA_ARGS__ << "] =>", dbg_out(__VA_ARGS__)
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 dbg_out() { cerr << " , "; }
template<typename Up, typename... Down> void dbg_out(Up U, Down... D) { cerr << ' ' << U; dbg_out(D...); }
#define endline_debug cerr << endl;
void solve() {
int a; cin >> a;
vector<int> v = {1,2,3,4};
for(int i = 0; i < a; i++) {
int x = 2;
debug(i);
debug(x);
endline_debug
int ans =12;
debug(v);
debug(ans);
endline_debug
endline_debug
}
}
int32_t main()
{
int t = 1;
while (t--)
solve();
return 0;
}