#include <stdio.h> #include <malloc.h> // malloc #include <string.h> // memcpy #include <stdbool.h> #include ".\lib\securec-master\include\securec.h" #define MAXN 10000 int main() { int n, stopPoint; if (scanf_s("%d %d\n", &n, &stopPoint) != 2) { return -1; } static int buf[MAXN][2]; static int *opers[MAXN]; int i; for (i = 0; i< n; i++) { if (scanf_s("%d %d", &buf[i][0], &buf[i][1]) != 2) { return -1; } opers[i] = buf[i]; } printf("%d %d\n", n, stopPoint); printf("["); for (int j=0; j<n; j++) { if (j != n-1) { printf("%d, ", *opers[j]); } else { printf("%d", *opers[j]); } } printf("]"); } /* 4 10 1 1 2 1 3 1 4 -2 * */