#ifndef POINTER09_H_
#define POINTER09_H_
#include <cassert>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
void sort(int *p[], int n);
int main() {
int arr[5000], n, *pointer[5000];
arr[0] = 1;
arr[1] = 3;
arr[2] = 4;
arr[3] = 5;
arr[4] = 2;
pointer[0] = arr;
pointer[1] = arr + 1;
pointer[2] = arr + 2;
pointer[3] = arr + 3;
pointer[4] = arr + 4;
sort(pointer, n);
for(int i = 0; i < n; i++) {
printf("%d", *pointer[i]);
(i < n - 1)? printf(" "):printf("\n");
}
fclose(stdout);
return 0;
}
#endif // POINTER09_H_
I2lmbmRlZiBQT0lOVEVSMDlfSF8KI2RlZmluZSBQT0lOVEVSMDlfSF8KI2luY2x1ZGUgPGNhc3NlcnQ+CiNpbmNsdWRlIDxjc3RkaW8+CiNpbmNsdWRlIDxjc3RyaW5nPgojaW5jbHVkZSA8Y3N0ZGxpYj4KI2luY2x1ZGUgPGFsZ29yaXRobT4KCnZvaWQgc29ydChpbnQgKnBbXSwgaW50IG4pOwoKaW50IG1haW4oKSB7CiAgaW50IGFycls1MDAwXSwgbiwgKnBvaW50ZXJbNTAwMF07CiAgYXJyWzBdID0gMTsKICBhcnJbMV0gPSAzOwogIGFyclsyXSA9IDQ7CiAgYXJyWzNdID0gNTsKICBhcnJbNF0gPSAyOwogIHBvaW50ZXJbMF0gPSBhcnI7CiAgcG9pbnRlclsxXSA9IGFyciArIDE7CiAgcG9pbnRlclsyXSA9IGFyciArIDI7CiAgcG9pbnRlclszXSA9IGFyciArIDM7CiAgcG9pbnRlcls0XSA9IGFyciArIDQ7CiAgc29ydChwb2ludGVyLCBuKTsKICBmb3IoaW50IGkgPSAwOyBpIDwgbjsgaSsrKSB7CiAgICBwcmludGYoIiVkIiwgKnBvaW50ZXJbaV0pOwogICAgKGkgPCBuIC0gMSk/IHByaW50ZigiICIpOnByaW50ZigiXG4iKTsKICB9CiAgZmNsb3NlKHN0ZG91dCk7CiAgcmV0dXJuIDA7Cn0KI2VuZGlmIC8vIFBPSU5URVIwOV9IXw==
Main.java:1: error: illegal character: '#'
#ifndef POINTER09_H_
^
Main.java:2: error: illegal character: '#'
#define POINTER09_H_
^
Main.java:3: error: illegal character: '#'
#include <cassert>
^
Main.java:4: error: illegal character: '#'
#include <cstdio>
^
Main.java:5: error: illegal character: '#'
#include <cstring>
^
Main.java:6: error: illegal character: '#'
#include <cstdlib>
^
Main.java:7: error: illegal character: '#'
#include <algorithm>
^
Main.java:11: error: class, interface, or enum expected
int main() {
^
Main.java:13: error: class, interface, or enum expected
arr[0] = 1;
^
Main.java:14: error: class, interface, or enum expected
arr[1] = 3;
^
Main.java:15: error: class, interface, or enum expected
arr[2] = 4;
^
Main.java:16: error: class, interface, or enum expected
arr[3] = 5;
^
Main.java:17: error: class, interface, or enum expected
arr[4] = 2;
^
Main.java:18: error: class, interface, or enum expected
pointer[0] = arr;
^
Main.java:19: error: class, interface, or enum expected
pointer[1] = arr + 1;
^
Main.java:20: error: class, interface, or enum expected
pointer[2] = arr + 2;
^
Main.java:21: error: class, interface, or enum expected
pointer[3] = arr + 3;
^
Main.java:22: error: class, interface, or enum expected
pointer[4] = arr + 4;
^
Main.java:23: error: class, interface, or enum expected
sort(pointer, n);
^
Main.java:24: error: class, interface, or enum expected
for(int i = 0; i < n; i++) {
^
Main.java:24: error: class, interface, or enum expected
for(int i = 0; i < n; i++) {
^
Main.java:24: error: class, interface, or enum expected
for(int i = 0; i < n; i++) {
^
Main.java:26: error: class, interface, or enum expected
(i < n - 1)? printf(" "):printf("\n");
^
Main.java:27: error: class, interface, or enum expected
}
^
Main.java:29: error: class, interface, or enum expected
return 0;
^
Main.java:30: error: class, interface, or enum expected
}
^
Main.java:31: error: illegal character: '#'
#endif // POINTER09_H_
^
27 errors