From 7e6af7a087565b0f8ffd554525e423bc97f7ed0c Mon Sep 17 00:00:00 2001
From: "dario.genga" <dario.genga@etu.hesge.ch>
Date: Tue, 25 Jan 2022 15:41:17 +0100
Subject: [PATCH] Add unfinished ex4

---
 ex4/ex4.c | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/ex4/ex4.c b/ex4/ex4.c
index 63d6766..a10cdb9 100644
--- a/ex4/ex4.c
+++ b/ex4/ex4.c
@@ -5,9 +5,23 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
 
 int main() {
+    const int ARRAY_LENGTH = 2;
+    int points_size;
+    scanf("%d", &points_size);
+    int *array = malloc(sizeof(int) * ARRAY_LENGTH);
+
+    // Get the values
+    for (int i = 0; i < ARRAY_LENGTH; i++) {
+        int value;
+        scanf("%d", &value);
+        array[i] = value;
+    }
+
+    printf("%d \n", 0);
+
+    // Free the memory and exit the program
+    free(array);
     return EXIT_SUCCESS;
 }
-- 
GitLab