-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.cpp
executable file
·59 lines (46 loc) · 1.4 KB
/
test.cpp
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define mod 1000000007
#define inf 1e18
#define pb emplace_back
#define vi vector<ll>
#define vii vector<vector<ll>>
#define vs vector<string>
#define pii pair<ll,ll>
#define vp vector<pair<ll,ll>>
#define mp make_pair
#define pq_max priority_queue<ll>
#define pq_min priority_queue<ll,vi,greater<ll> >
#define ff first
#define ss second
#define mid(l,r) (l+(r-l)/2)
#define loop(i,a,b) for(int i=(a);i<(b);i++)
#define revloop(i,a,b) for(int i=(a);i>=(b);i--)
#define printarr(arr,a,b) for(int z=(a);z<=(b);z++) cout<<(arr[z])<<" ";cout<<endl;
void io_file() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
#ifndef ONLINE_JUDGE
freopen("/home/parvesh/Desktop/Codes/io_files/input.txt","r", stdin);
freopen("/home/parvesh/Desktop/Codes/io_files/output.txt","w", stdout);
freopen("/home/parvesh/Desktop/Codes/io_files/error.txt","w", stderr);
#endif
}
void code_here() {
int a1[6] = {1, 2, 3, 4, 5, 6};
int* a2[4] = {a1+3, a1+1, a1, a1+5};
int ** a3[2] = {a2+2, a2};
int* (*ptr)[4] = &a2;
cout << (**(*ptr+2)) << "\n";
}
int main() {
clock_t start = clock();
io_file();
code_here();
clock_t end = clock();
cerr<<endl<<endl<<"Executed In: "<<double(end - start) / CLOCKS_PER_SEC*1000<<" ms";
return 0;
}