36
|
1
|
|
2 int heap[100];
|
|
3
|
|
4 #define car(e) (heap[(int)(e)])
|
|
5 #define cadr(e) (heap[((int)(e))+1])
|
|
6
|
|
7 #define TEST
|
|
8 int i;
|
|
9 TEST
|
|
10
|
115
|
11 #define TEST0 33
|
|
12 #define TEST111 TEST0
|
|
13
|
36
|
14 #define c(a,b) g(a+1,b+1)
|
|
15 #define g(a,b) printf("%d %d\n",a+1,b+1);
|
180
|
16 #define d(a,b) cadr(b)+3
|
183
|
17 /*
|
|
18
|
|
19 #define stdio stdio
|
|
20 #define f(a,b) aho+a+b
|
|
21 f (a,b)
|
|
22 */
|
36
|
23
|
|
24 main() {
|
|
25 int a,b,e;
|
|
26
|
115
|
27 b = heap[TEST111];
|
180
|
28 d(a,b);
|
36
|
29 a =1; b = 3;
|
|
30 #ifndef a
|
|
31 c(a,
|
|
32 b);
|
|
33 /* 3,5 expected */
|
|
34 #endif
|
111
|
35 e=50; heap[51]=3; heap[3]=4;
|
|
36 /* 5,4 expected */
|
|
37 #if 0
|
|
38 g(car(cadr(e)),cadr(e));
|
|
39 #endif
|
177
|
40 #if 0
|
|
41 printf("1\n");
|
|
42 #elif (1)
|
|
43 printf("2\n");
|
|
44 #elif (2)
|
|
45 printf("3\n");
|
|
46 #else
|
|
47 printf("4\n");
|
|
48 #endif
|
|
49 #if 0
|
|
50 printf("1\n");
|
|
51 #elif (0)
|
|
52 printf("2\n");
|
|
53 #elif (0)
|
|
54 printf("3\n");
|
|
55 #else
|
|
56 printf("4\n");
|
|
57 #endif
|
172
|
58 return 0;
|
36
|
59 }
|
|
60
|