This commit is contained in:
Tanguy MAZE
2019-06-22 18:23:35 +02:00
commit f9e508d5ef
173 changed files with 6727 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
# General guidelines
* No communication whatsoever is allowed.
* This is an exam, you don't have a right to chat, listen to music, make noise, or generally do anything that may disturb the other students in any way.
* Your phones and other technological devices must be turned off and put away. If a phone rings, the whole row will be disqualified from the exam and kicked out immediately.
* Your home directory contains three directories : "rendu", "subjects" and "traces".
* The "subjects" directory will contain the subjects of your assignments
* The "rendu" folder is a clone of your Git turn-in repository. You will work in it, and use it as any regular Git repository.
* The system will not grade anything that is not pushed on your Git turn-in repository, and at the right place. Pay attention to where examshell tells you to put your files.
* You can only run your programs in the "rendu" directory or one of its subdirectories.
* You may need to read the man to carry out some assignments...
* You will be graded by a program. You must respect the specified file/path/function names to the letter.
* Assignments will always specify which files will be collected :
* When an assignment asks for specific files, they will be explicitly named. For example "file1.c file1.h".
* Otherwise, when filenames and/or the number of files is up to you, the assignment will say something along the lines of "*.c *.h".
* When a Makefile is required, it will ALWAYS be explicitly stated.
* In case of technical problem, question about the subject, or any other problem, you must get up silently and wait for a member of the staff to come to you. It is forbidden to ask your neighbors, or to verbally call for a staff member.
* Any equipment not explicitly allowed is implicitly forbidden.
* Any exit is definitive, you can not come in again.
* Staff members may kick you out of the exam without warning if they deem it necessary.
* You are allowed blank pieces of paper, and a pen. No notebooks, notes, or any help of the sort. You are alone to face this exam.
# Coding guidelines
* Useful functions and files will sometimes be given to you in the subject directory
* The correction is fully automated, and performed by the program we know as Deepthought.
* When an assignment asks you to write a program with one or more explicitly named files, it will be compiled with the following command: clang -Wall -Wextra -Werror file1.c file2.c file3.c -o program_name.
* When the assignment leaves the filenames up to you, it will be compiled with: clang -Wall -Wextra -Werror *.c -o program_name.
* Finally, when you must only turn in a function (so, one file), it will be compiled with clang -c -Wall -Wextra -Werror yourfile.c, then we will compile our main function and link them together to create a test program.
* Allowed functions will be specified in the headers of the assignments. You may recode any other function you think is necessary. Using a function that's not explicitly allowed is considered cheating, and will result in a failing grade, with no possible discussion or appeal whatsoever. You've been warned.
* Any function that isn't explicitly allowed is implicitly forbidden.

View File

@@ -0,0 +1,54 @@
# Consignes générales
* Aucune communication, quelle qu'elle soit, n'est permise
* Ceci est un examen, il est interdit de discuter, écouter de la musique, faire du bruit, ou de façon générale de faire quoi que ce soit qui puisse perturber le travail des autres étudiants.
* Vos téléphones et autres appareils technologiques doivent être éteints et rangés. Pas en silencieux, éteints. Si un téléphone sonne, toute la rangée sera exclue immédiatement de l'examen.
* Votre répertoire home contient trois répertoires : "rendu", "subjects" et "traces".
* Le répertoire "subjects" contiendra les sujets de vos exercices
* Le répertoire "rendu" contiendra un clone de votre dépôt Git de rendu. Vous y travaillerez, et l'utiliserez comme n'importe quel autre dépôt Git de rendu.
* Le système ne corrigera rien qui n'est pas push sur votre dépôt de rendu à l'endroit correct. Faites attention à ce qu'examshell vous dit concernant les emplacements de rendu.
* Vous ne pouvez lancer vos propres programmes que dans le répertoire "rendu" ou l'un de ses sous-répertoires.
* Vous aurez peut-être besoin de lire les man pour certains exercices ...
* Vous aller être corrigé par un programme. Vous devez donc respecter à la lettre les noms de fichiers/fonctions qui vous sont imposés.
* Les exercices spécifient toujours les noms de fichiers qui vous sont demandés:
* Quand on vous demande des fichiers spécifiques, ils seront nommés explicitement, par exemple "file1.c file1.h"
* Quand les noms et le nombre de fichier sont à votre discrétion, on dira quelque chose comme "*.c *.h"
* Quand il faut un Makefile, ce sera toujours explicitement précisé
* En cas de problème technique, de question sur un sujet, ou tout autre souci, vous devez vous lever EN SILENCE et attendre qu'un membre du staff vienne vous voir. Il est interdit de demander à vos voisins, ou d'appeler verbalement un membre du staff.
* Vous avez le droit à des feuilles vierges, un stylo, et c'est tout. Pas de cahiers, carnets, ou autres. Pas d'écouteurs, de casques, de portable, etc ...
* Tout équipement qui n'est pas explicitement autorisé est implicitement interdit.
* Toute sortie est définitive.
* Les membres du staff peuvent vous exclure de l'examen sans préavis s'ils l'estiment nécessaire pour quelque raison que ce soit.
# Consignes relative au code
* Des fonctions et fichiers utiles vous seront parfois donnés dans le répertoire du sujet
* Les corrections sont entièrement automatiques et réalisées par un programme nommé Deepthought
* Les programmes seront compilés avec "clang -Wall -Wextra -Werror"
* Quand on ne vous demande qu'une fonction, et non un programme, cela signifie que votre fichier sera compilé accompagné de notre propre main.c
* Les fonctions autorisées sont précisées dans les en-têtes des exercices. Vous pouvez recoder toute fonction que vous jugez nécessaire. Utiliser une fonction non-autorisée est assimilé à de la triche et résultera en un échec immédiat de l'exercice, sans appel. Vous êtes prévenu.
* Toute fonction qui n'est pas explicitement autorisée est implicitement interdite

View File

@@ -0,0 +1,56 @@
#Reguli generale de urmat la examene
*Nici un fel de comunicare nu este permisă.
*Acesta este un examen, nu aveți dreptul să vorbiți, să ascultați muzică, să faceți zgomot sau să faceți ceva ce ar putea deranja pe ceilați studenți în vreun fel.
*Telefoanele mobile sau orice alte dispozitive trebuie să fie închise și puse deoparte. Dacă sună vreun telefon, tot rândul va fi descalificat din examen și dat afară imediat!
*Directorul vostru ”home” conține trei directoare: ”rendu”, ”subjects” și ”traces”.
*Directorul ”subjects” va conține subiectul examenului vostru.
*Directorul ”rendu” este o clonă a Git-ului vostru ”turn-in repository”. Veți lucra în el, și poate fi utilizat ca orice depozit Git regulat.
*Sistemul nu va nota nimic ce nu este trimis pe Git ”turn-in repository” și în locul corect. Fiți foarte atenți unde ”examshell” va spune sa puneți fișierele voastre.
*Puteți să vă rulați programele voastre în directorul ”rendu” sau în unul din subdirectoarele lui.
*Este posibil să fie nevoie să citiți man-ul pentru a realiza un exercițiu.….
*Veți fi notați de un program. Trebuie să respectați specificațiile fisierului / căii (path) / numele funcțiilor EXACT așa cum este cerut.
*Exercițiile vor specifica întotdeauna ce fișiere vor fi corectate:
* Când un exercițiu cere un anumit fișier, acesta va fi numit explicit. De exemplu ”file1.c” sau ”file1.h”
* Altfel, când numele sau numărul de fișiere este la latitudinea voastră, exercițiul va specifica ceva de genul ”*.c” sau ”*.h”
* Când un ”Makefile” este cerut, va fi ÎNTOTDEAUNA specificată starea lui.
* În cazul unei defecțiuni tehnice, întrebări despre subiect sau orice altă problemă, trebuie să te ridici în picioare, în liniște și să aștepți ca un membru al staff-ului sa vină la tine. Este interzis să îți întrebi vecinii sau să strigi după un membru al staff-ului.
* Oricei echipament care nu este explicit permis, este implicit interzis.
* Orice părăsire a sălii de examinare este definitivă, nu te mai poți întoarce.
* Membri staff-ului vă pot da afară din examen, fără avertisment, în cazul în care consideră necesar.
* Vă este permisă intrarea în sală cu o hartie albă și un pix, Fără caiete, notițe sau orice alt ajutor de acest fel. Ești singur ca să înfrunți acest examen.
# Reguli pentru codare
* Funcții folositoare sau fișiere vor fi date, câteodată, în directorul subiectului.
* Corectarea este complet automată și se face de către un program pe care îl numim ”Deepthought”
* Când un exercițiu îți cere să scrii un program cu unul sau mai multe nume de fișiere date explicit, va fi compliat cu următoarea comandă: ”clang -Wall -Wextra -Werror file1.c file2.c file3.c -o nume_program”.
* Cand exercitiul lasa la latitudinea voastra numele fisierelor, exercitiul va fi compilat cu: clang -Wall -Wextra -Werror *.c -o program_name
* Când trebuie doar să trimiteți o funcție (adică un fișier) va fi compilat cu ”clang -c -Wall -Wextra -Werror yourfile.c” apoi noi vom compila funcția noastră principală și le vom lega împreună pentru a crea un program de test.
* Funcțiile permise vor fi specificate în antetele fiecărui exercițiu. Puteți recoda orice altă funcție credeți că este necesar. Folosirea unei funcții care nu este permisă în mod explicit este considerată trișare, și va duce la nepromovarea examenului, fără drept la discuții sau contenstații. Ați fost avertizați.
*Orice funcție, care nu este permisă în mod explicit, este implicit interzisă

1
exam-basedir01/rendu Submodule

Submodule exam-basedir01/rendu added at ea9350c4e0

View File

@@ -0,0 +1,8 @@
$> ./aff_z "abc" | cat -e
z$
$> ./aff_z "dubO a POIL" | cat -e
z$
$> ./aff_z "zaz sent le poney" | cat -e
z$
$> ./aff_z | cat -e
z$

View File

@@ -0,0 +1,21 @@
Assignment name : aff_z
Expected files : aff_z.c
Allowed functions: write
--------------------------------------------------------------------------------
Write a program that takes a string, and displays the first 'z'
character it encounters in it, followed by a newline. If there are no
'z' characters in the string, the program writes 'z' followed
by a newline. If the number of parameters is not 1, the program displays
'z' followed by a newline.
Example:
$> ./aff_a "abc" | cat -e
z$
$> ./aff_a "RaInB0w d4Sh!" | cat -e
z$
$> ./aff_a "ThE C4k3 Is a L|3" | cat -e
z$
$> ./aff_a | cat -e
z$

View File

@@ -0,0 +1,22 @@
Assignment name : aff_z
Expected files : aff_z.c
Allowed functions: write
--------------------------------------------------------------------------------
Écrire un programme qui prend en paramètre une chaîne de caractères, et qui
affiche sur la sortie standard le premier caractère 'z' rencontré dans
cette chaîne, suivi de '\n'. Si aucun 'z'
n'est rencontré dans la chaîne, le programme affiche 'z' suivi de
'\n'. Si le nombre de paramètres est différent de 1, le
programme affiche 'z' suivi de '\n'.
Exemple:
$> ./aff_z "abc" | cat -e
z$
$> ./aff_z "dubO a POIL" | cat -e
z$
$> ./aff_z "zaz sent le poney" | cat -e
z$
$> ./aff_z | cat -e
z$

View File

@@ -0,0 +1,19 @@
Exercitiu : aff_z
Fisiere de iesire : aff_z.c
Functii autorizate : write
--------------------------------------------------------------------------------
Scrieti un program ce ia ca parametru un sir de caractere, si care afiseaza la
iesirea standard primul caracter 'z' intalnit in acest sir, urmat de '\n'. Daca
nu este intalnit niciun caracter 'z', programul va afisa 'z' urmat de '\n'. Daca
numarul de parametri este diferit de 1, programul va afisa 'z' urmat de '\n'.
Example:
$> ./aff_z "abc" | cat -e
z$
$> ./aff_z "dubO a POIL" | cat -e
z$
$> ./aff_z "zaz sent le poney" | cat -e
z$
$> ./aff_z | cat -e
z$

View File

@@ -0,0 +1,9 @@
$> ./expand_str "vous voyez c'est facile d'afficher la meme chose" | cat -e
vous voyez c'est facile d'afficher la meme chose$
$> ./expand_str " seulement la c'est plus dur " | cat -e
seulement la c'est plus dur$
$> ./expand_str "comme c'est cocasse" "vous avez entendu, Mathilde ?" | cat -e
$
$> ./expand_str "" | cat -e
$
$>

View File

@@ -0,0 +1,26 @@
Assignment name : expand_str
Expected files : expand_str.c
Allowed functions: write
--------------------------------------------------------------------------------
Write a program that takes a string and displays it with exactly three spaces
between each word, with no spaces or tabs either at the beginning or the end,
followed by a newline.
A word is a section of string delimited either by spaces/tabs, or by the
start/end of the string.
If the number of parameters is not 1, or if there are no words, simply display
a newline.
Examples:
$> ./epur_str "See? It's easy to print the same thing" | cat -e
See? It's easy to print the same thing$
$> ./epur_str " this time it will be more complex " | cat -e
this time it will be more complex$
$> ./epur_str "No S*** Sherlock..." "nAw S*** ShErLaWQ..." | cat -e
$
$> ./epur_str "" | cat -e
$
$>

View File

@@ -0,0 +1,26 @@
Assignment name : expand_str
Expected files : expand_str.c
Allowed functions: write
--------------------------------------------------------------------------------
Écrire un programme qui prend une chaîne de caractères en paramètre, et qui
affiche cette chaîne avec exactement trois espaces entre chaque mot, sans
espaces ou tabulations ni au début ni à la fin de la chaîne, suivie d'un '\n'.
On appelle "mot" une portion de chaîne de caractères délimitée soit par des
espaces et/ou des tabulations, soit par le début / fin de la chaîne.
Si le nombre de paramètres transmis est différent de 1, ou s'il n'y a aucun mot
à afficher, le programme affiche '\n'.
Exemple:
$> ./expand_str "vous voyez c'est facile d'afficher la meme chose" | cat -e
vous voyez c'est facile d'afficher la meme chose$
$> ./expand_str " seulement la c'est plus dur " | cat -e
seulement la c'est plus dur$
$> ./expand_str "comme c'est cocasse" "vous avez entendu, Mathilde ?" | cat -e
$
$> ./expand_str "" | cat -e
$
$>

View File

@@ -0,0 +1,25 @@
Exercitiu : expand_str
Fisiere de iesire : expand_str.c
Functii autorizate : write
--------------------------------------------------------------------------------
Scrieti un program care ia ca parametru un sir de caractere si afiseaza acest sir
cu exact trei spatii intre fiecare cuvinte, fara spatii ori tabulatori la inceputul
ori sfarsitul sirului, urmat de un '\n'.
Numim "cuvant" o portiune a sirului de caractere delimitat de spatii sau/si tabulatori,
atat la inceputul cat si la sfarsitul sirului.
Daca numarul de parametri transmis este diferit de 1, sau daca nu este niciun cuvant
de afisat, programul va afisa '\n'.
Exemplu:
$> ./expand_str "vous voyez c'est facile d'afficher la meme chose" | cat -e
vous voyez c'est facile d'afficher la meme chose$
$> ./expand_str " seulement la c'est plus dur " | cat -e
seulement la c'est plus dur$
$> ./expand_str "comme c'est cocasse" "vous avez entendu, Mathilde ?" | cat -e
$
$> ./expand_str "" | cat -e
$
$>

View File

@@ -0,0 +1,16 @@
$> ./fprime 225225 | cat -e
3*3*5*5*7*11*13$
$> ./fprime 8333325 | cat -e
3*3*5*5*7*11*13*37$
$> ./fprime 9539 | cat -e
9539$
$> ./fprime 804577 | cat -e
804577$
$> ./fprime 42 | cat -e
2*3*7$
$> ./fprime 1 | cat -e
1$
$> ./fprime | cat -e
$
$> ./fprime 42 21 | cat -e
$

View File

@@ -0,0 +1,33 @@
Assignment name : fprime
Expected files : fprime.c
Allowed functions: printf, atoi
--------------------------------------------------------------------------------
Write a program that takes a positive int and displays its prime factors on the
standard output, followed by a newline.
Factors must be displayed in ascending order and separated by '*', so that
the expression in the output gives the right result.
If the number of parameters is not 1, simply display a newline.
The input, when there's one, will be valid.
Examples:
$> ./fprime 225225 | cat -e
3*3*5*5*7*11*13$
$> ./fprime 8333325 | cat -e
3*3*5*5*7*11*13*37$
$> ./fprime 9539 | cat -e
9539$
$> ./fprime 804577 | cat -e
804577$
$> ./fprime 42 | cat -e
2*3*7$
$> ./fprime 1 | cat -e
1$
$> ./fprime | cat -e
$
$> ./fprime 42 21 | cat -e
$

View File

@@ -0,0 +1,35 @@
Assignment name : fprime
Expected files : fprime.c
Allowed functions: printf, atoi
--------------------------------------------------------------------------------
Écrire un programme qui prend en paramètre un entier strictement positif, et
qui affiche sa décomposition en facteurs premiers sur la sortie standard,
suivie d'un '\n'.
Les facteurs doivent être affichés dans l'ordre croissant et séparés par des
'*', de telle sorte que l'expression affichée donne le bon résultat.
Si le nombre de paramètres est différent de 1, le programme doit afficher '\n'.
L'entrée, quand elle est passée, sera toujours un nombre valide sans caractères
parasites.
Exemple:
$> ./fprime 225225 | cat -e
3*3*5*5*7*11*13$
$> ./fprime 8333325 | cat -e
3*3*5*5*7*11*13*37$
$> ./fprime 9539 | cat -e
9539$
$> ./fprime 804577 | cat -e
804577$
$> ./fprime 42 | cat -e
2*3*7$
$> ./fprime 1 | cat -e
1$
$> ./fprime | cat -e
$
$> ./fprime 42 21 | cat -e
$

View File

@@ -0,0 +1,34 @@
Exercitiu : fprime
Fisiere de iesire : fprime.c
Functii autorizate : printf, atoi
--------------------------------------------------------------------------------
Scrieti un program ce ia ca parametru un intreg strict pozitiv si care va afisa
descompunerea in factori primi la iesirea standard, urmat de un '\n'.
Factorii trebuie sa fie afisati in ordine crescatoare si separati de '*',
astfel incat expresia afisata sa dea rezultatul corect.
Daca numarul de parametri este diferit de 1, programul va afisa '\n'.
Parametrul de intrare, cand este transmis, va fi totdeauna un numar valid
fara caractere neconforme.
Exemplu:
$> ./fprime 225225 | cat -e
3*3*5*5*7*11*13$
$> ./fprime 8333325 | cat -e
3*3*5*5*7*11*13*37$
$> ./fprime 9539 | cat -e
9539$
$> ./fprime 804577 | cat -e
804577$
$> ./fprime 42 | cat -e
2*3*7$
$> ./fprime 1 | cat -e
1$
$> ./fprime | cat -e
$
$> ./fprime 42 21 | cat -e
$

View File

@@ -0,0 +1,14 @@
Assignment name : ft_split
Expected files : ft_split.c
Allowed functions: malloc
--------------------------------------------------------------------------------
Write a function that takes a string, splits it into words, and returns them as
a NULL-terminated array of strings.
A "word" is defined as a part of a string delimited either by spaces/tabs/new
lines, or by the start/end of the string.
Your function must be declared as follows:
char **ft_split(char *str);

View File

@@ -0,0 +1,16 @@
Assignment name : ft_split
Expected files : ft_split.c
Allowed functions: malloc
--------------------------------------------------------------------------------
Écrire une fonction qui prend en paramètre une chaîne de caractères et la
découpe en mots, qui seront retournés sous la forme d'un tableau de chaînes
terminé par NULL.
On appelle "mot" une portion de chaîne de caractères délimitée soit par des
espaces, des retours à la ligne et/ou des tabulations, soit par le début / fin
de la chaîne.
Votre fonction devra être prototypée de la façon suivante :
char **ft_split(char *str);

View File

@@ -0,0 +1,15 @@
Exercitiu : ft_split
Fisier de iesire : ft_split.c
Functii autorizate : malloc
--------------------------------------------------------------------------------
Scrieti o functie ce ia ca parametru un sir de caractere si pe care il separa
in cuvinte, ce vor fi returnate sub forma unui tablou siruri terminate cu NULL.
Numim "cuvant" o portiune a a sirului de caractere delimitate de fie de spatii
si/sau tabulatoare, fie de inceputul/sfarsitul sirului.
Functia va trebui sa aiba urmatorul prototip:
char **ft_split(char *str);

View File

@@ -0,0 +1,12 @@
Exercitiu : ft_swap
Fisiere de iesire : ft_swap.c
Functii autorizate :
--------------------------------------------------------------------------------
Scrieti o functie ce schimba valoarea a doi intregi ale caror adrese sunt
transmise ca parametri.
Ea trebuie sa aibaprototipul urmator:
void ft_swap(int *a, int *b);

View File

@@ -0,0 +1,11 @@
Assignment name : ft_swap
Expected files : ft_swap.c
Allowed functions:
--------------------------------------------------------------------------------
Write a function that swaps the contents of two integers the adresses of which
are passed as parameters.
Your function must be declared as follows:
void ft_swap(int *a, int *b);

View File

@@ -0,0 +1,11 @@
Assignment name : ft_swap
Expected files : ft_swap.c
Allowed functions:
--------------------------------------------------------------------------------
Écrire une fonction qui échange le contenu de deux entiers dont les adresses
sont passées en paramêtres.
Elle devra être prototypée de la façon suivante :
void ft_swap(int *a, int *b);

View File

@@ -0,0 +1,12 @@
Exercitiu : ft_swap
Fisiere de iesire : ft_swap.c
Functii autorizate :
--------------------------------------------------------------------------------
Scrieti o functie ce schimba valoarea a doi intregi ale caror adrese sunt
transmise ca parametri.
Ea trebuie sa aibaprototipul urmator:
void ft_swap(int *a, int *b);

View File

@@ -0,0 +1,9 @@
$>./inter "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e
padinto$
$>./inter ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e
df6ewg4$
$>./inter "rien" "cette phrase ne cache rien" | cat -e
rien$
$>./inter | cat -e
$

View File

@@ -0,0 +1,23 @@
Assignment name : inter
Expected files : inter.c
Allowed functions: write
--------------------------------------------------------------------------------
Write a program that takes two strings and displays, without doubles, the
characters that appear in both strings, in the order they appear in the first
one.
The display will be followed by a \n.
If the number of arguments is not 2, the program displays \n.
Examples:
$>./inter "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e
padinto$
$>./inter ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e
df6ewg4$
$>./inter "nothing" "This sentence hides nothing" | cat -e
nothing$
$>./inter | cat -e
$

View File

@@ -0,0 +1,23 @@
Assignment name : inter
Expected files : inter.c
Allowed functions: write
--------------------------------------------------------------------------------
Écrire un programme qui prend en paramètres deux chaînes de caractères et qui
affiche sans doublon les caractères communs aux deux chaînes.
L'affichage se fera dans l'ordre d'apparition dans la premiere chaîne.
L'affichage doit être suivi d'un '\n'.
Si le nombre de paramètres transmis est différent de 2, le programme affiche
'\n'.
Exemples:
$>./inter "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e
padinto$
$>./inter ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e
df6ewg4$
$>./inter "rien" "cette phrase ne cache rien" | cat -e
rien$
$>./inter | cat -e
$

View File

@@ -0,0 +1,22 @@
Exercitiu : inter
Fisiere de iesire : inter.c
Functii autorizate : write
--------------------------------------------------------------------------------
Scrieti un program ce ia ca parametru doua siruri de caractere si care afiseaza
caracterele comune celor doua siruri, fara a le dubla.
Afisarea se va face in ordinea aparitiei din primul sir, urmata de '\n'.
Daca numarul ed parametri transmis este diferit de 2, programul va afisa '\n'.
Exemple:
$>./inter "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e
padinto$
$>./inter ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e
df6ewg4$
$>./inter "rien" "cette phrase ne cache rien" | cat -e
rien$
$>./inter | cat -e
$

View File

@@ -0,0 +1,72 @@
= Host-specific information ====================================================
$> hostname; uname -msr
e1r6p13.42.fr
Darwin 16.7.0 x86_64
$> date
Fri Apr 13 11:41:11 CEST 2018
$> gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$> clang --version
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
= User files collection ========================================================
Collecting user files from Vogsphere
Repository URL: auto-exam/2018/c-exam-alone-in-the-dark-beginner/practice-exam_20180413/tmaze
= Git history ==================================================================
$> git -C /var/folders/8_/k4v31h394nj0pj108ytgr4xm0000gq/T/tmpZXdKvK/user log --pretty='%H - %an, %ad : %s'
2d8bf5c9f17b97a9c04b8c0254a84d64278f8821 - Tanguy MAZE, Fri Apr 13 11:40:49 2018 +0200 : aff_z
= Collected files ==========================================
$> ls -lAR /var/folders/8_/k4v31h394nj0pj108ytgr4xm0000gq/T/tmpZXdKvK/user
total 8
-rw-r--r-- 1 deepthought deepthought 215 Apr 13 11:41 __GIT_HISTORY
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 11:41 aff_z
/var/folders/8_/k4v31h394nj0pj108ytgr4xm0000gq/T/tmpZXdKvK/user/aff_z:
total 8
-rw-r--r-- 1 deepthought deepthought 966 Apr 13 11:41 aff_z.c
= aff_z ========================================================================
$> clang -Wextra -Wall -Werror aff_z.c -o user_exe
= Test 1 ===================================================
$> ./5rpehy400cgna40wybx8awyt
$> diff -U 3 user_output_test1 test1.output | cat -e
Diff OK :D
= Test 2 ===================================================
$> ./58n1ykoco3xgtc9euw0e1ixk "mjiSev0bG4" "Jk2hMrd03ISxWet8w" "Yvg5L" "JaA" "KhtuH" "JBf7" "S1z9d6iFbuL" "gVeEsjK" "BDqX" "QS4yPspfM" "VZWGmrRa2n7US3D" "w2n" "k3Psy598CFK" "5jK0xV6Qo"
$> diff -U 3 user_output_test2 test2.output | cat -e
Diff OK :D
= Test 3 ===================================================
$> ./5jgz03vufmnt3v0u89ilukbq "XzNC3"
$> diff -U 3 user_output_test3 test3.output | cat -e
Diff OK :D
= Test 4 ===================================================
$> ./ha422vhxa3xnooexmu9ub1f0 "SiUzx7cDL9RIpBnA"
$> diff -U 3 user_output_test4 test4.output | cat -e
Diff OK :D
= Test 5 ===================================================
$> ./vru3h17k7ac3lmvyoem05b8w "NAmLc"
$> diff -U 3 user_output_test5 test5.output | cat -e
Diff OK :D
= Test 6 ===================================================
$> ./q3uvyld5twnrtb9lc3u16k0i "xme9CAdLH8uQGMrK"
$> diff -U 3 user_output_test6 test6.output | cat -e
Diff OK :D
Grade: 1
= Final grade: 1 ===============================================================

View File

@@ -0,0 +1,93 @@
= Host-specific information ====================================================
$> hostname; uname -msr
e1r4p8.42.fr
Darwin 16.7.0 x86_64
$> date
Fri Apr 13 11:44:33 CEST 2018
$> gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$> clang --version
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
= User files collection ========================================================
Collecting user files from Vogsphere
Repository URL: auto-exam/2018/c-exam-alone-in-the-dark-beginner/practice-exam_20180413/tmaze
= Git history ==================================================================
$> git -C /var/folders/1_/z092vpvx1ydd1nxlp34v0yc00000gq/T/tmpEyFlug/user log --pretty='%H - %an, %ad : %s'
2ab798b8f4f6d6877e6ba6a2f5930ee3c12c88ad - Tanguy MAZE, Fri Apr 13 11:44:16 2018 +0200 : ft_swap
2d8bf5c9f17b97a9c04b8c0254a84d64278f8821 - Tanguy MAZE, Fri Apr 13 11:40:49 2018 +0200 : aff_z
= Collected files ==========================================
$> ls -lAR /var/folders/1_/z092vpvx1ydd1nxlp34v0yc00000gq/T/tmpEyFlug/user
total 8
-rw-r--r-- 1 deepthought deepthought 438 Apr 13 11:44 __GIT_HISTORY
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 11:44 aff_z
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 11:44 ft_swap
/var/folders/1_/z092vpvx1ydd1nxlp34v0yc00000gq/T/tmpEyFlug/user/aff_z:
total 8
-rw-r--r-- 1 deepthought deepthought 966 Apr 13 11:44 aff_z.c
/var/folders/1_/z092vpvx1ydd1nxlp34v0yc00000gq/T/tmpEyFlug/user/ft_swap:
total 8
-rw-r--r-- 1 deepthought deepthought 968 Apr 13 11:44 ft_swap.c
= ft_swap ======================================================================
$> clang -Wextra -Wall -Werror ft_swap.c main.c -o user_exe
= Test 1 ===================================================
$> ./3b5vrm92blpgrf89yxuy5pru "706626262" "364685118"
$> diff -U 3 user_output_test1 test1.output | cat -e
Diff OK :D
= Test 2 ===================================================
$> ./bpuxbmw8bplrhhr9a1m3ovbo "408635404" "-802490398"
$> diff -U 3 user_output_test2 test2.output | cat -e
Diff OK :D
= Test 3 ===================================================
$> ./6hd5ghtcf81s1mkqosqlgct0 "-1045169027" "-105518579"
$> diff -U 3 user_output_test3 test3.output | cat -e
Diff OK :D
= Test 4 ===================================================
$> ./jy5r8htlk93xv2dd71so0jcz "-345921438" "1420916860"
$> diff -U 3 user_output_test4 test4.output | cat -e
Diff OK :D
= Test 5 ===================================================
$> ./9qn52zrmh5tl4zuwjcmxjlg0 "-947973237" "-223965263"
$> diff -U 3 user_output_test5 test5.output | cat -e
Diff OK :D
= Test 6 ===================================================
$> ./7v2mq3kt1fpai317rhad09i9 "-601213970" "364430817"
$> diff -U 3 user_output_test6 test6.output | cat -e
Diff OK :D
= Test 7 ===================================================
$> ./k4u7ta2ijyl004xu4do63cqj "-797032518" "-898871763"
$> diff -U 3 user_output_test7 test7.output | cat -e
Diff OK :D
= Test 8 ===================================================
$> ./bgx8wibqya12t15fwhtcr9ry "829225805" "1965530847"
$> diff -U 3 user_output_test8 test8.output | cat -e
Diff OK :D
= Test 9 ===================================================
$> ./shov8omsapwgvruy7q2ouw0z "-1886413568" "1834299037"
$> diff -U 3 user_output_test9 test9.output | cat -e
Diff OK :D
Grade: 1
= Final grade: 1 ===============================================================

View File

@@ -0,0 +1,154 @@
= Host-specific information ====================================================
$> hostname; uname -msr
e2r11p11.42.fr
Darwin 16.7.0 x86_64
$> date
Fri Apr 13 11:59:19 CEST 2018
$> gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$> clang --version
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
= User files collection ========================================================
Collecting user files from Vogsphere
Repository URL: auto-exam/2018/c-exam-alone-in-the-dark-beginner/practice-exam_20180413/tmaze
= Git history ==================================================================
$> git -C /var/folders/l8/2dn_mc5n50j78m_xrn9szj900000gq/T/tmp4jge8b/user log --pretty='%H - %an, %ad : %s'
f04f956d0834716296c1766b0023c33bb352beae - Tanguy MAZE, Fri Apr 13 11:59:11 2018 +0200 : inter
2ab798b8f4f6d6877e6ba6a2f5930ee3c12c88ad - Tanguy MAZE, Fri Apr 13 11:44:16 2018 +0200 : ft_swap
2d8bf5c9f17b97a9c04b8c0254a84d64278f8821 - Tanguy MAZE, Fri Apr 13 11:40:49 2018 +0200 : aff_z
= Collected files ==========================================
$> ls -lAR /var/folders/l8/2dn_mc5n50j78m_xrn9szj900000gq/T/tmp4jge8b/user
total 8
-rw-r--r-- 1 deepthought deepthought 688 Apr 13 11:59 __GIT_HISTORY
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 11:59 aff_z
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 11:59 ft_swap
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 11:59 inter
/var/folders/l8/2dn_mc5n50j78m_xrn9szj900000gq/T/tmp4jge8b/user/aff_z:
total 8
-rw-r--r-- 1 deepthought deepthought 966 Apr 13 11:59 aff_z.c
/var/folders/l8/2dn_mc5n50j78m_xrn9szj900000gq/T/tmp4jge8b/user/ft_swap:
total 8
-rw-r--r-- 1 deepthought deepthought 968 Apr 13 11:59 ft_swap.c
/var/folders/l8/2dn_mc5n50j78m_xrn9szj900000gq/T/tmp4jge8b/user/inter:
total 8
-rw-r--r-- 1 deepthought deepthought 1433 Apr 13 11:59 inter.c
= inter ========================================================================
$> clang -Wextra -Wall -Werror inter.c -o user_exe
= Test 1 ===================================================
$> ./t9dkgbvzuysqelu2g7stwnag
$> diff -U 3 user_output_test1 test1.output | cat -e
Diff OK :D
= Test 2 ===================================================
$> ./8vu4lxwhr1g8s8h6tss38pfb "salut a tous tout le monde"
$> diff -U 3 user_output_test2 test2.output | cat -e
Diff OK :D
= Test 3 ===================================================
$> ./fxw9eljfvovwq7acd9l5gpnf "salut" "a" "tous" "tout" "le" "monde"
$> diff -U 3 user_output_test3 test3.output | cat -e
Diff OK :D
= Test 4 ===================================================
$> ./ijf2hva07e7kpyimxj44f8jt "llo" "helllo"
$> diff -U 3 user_output_test4 test4.output | cat -e
Diff OK :D
= Test 5 ===================================================
$> ./xiqre3l27x3nr5tc56m3ixu2 "X7nEF" "7E"
$> diff -U 3 user_output_test5 test5.output | cat -e
Diff OK :D
= Test 6 ===================================================
$> ./yk96doh3gu8slzkvh89doh68 "sJWOAraBXqG" "RdoIOLvSuN7c9yg"
$> diff -U 3 user_output_test6 test6.output | cat -e
Diff OK :D
= Test 7 ===================================================
$> ./s8p9ck04a0usz4vrhku963j6 "7e4jrvwWAD" "erWA"
$> diff -U 3 user_output_test7 test7.output | cat -e
Diff OK :D
= Test 8 ===================================================
$> ./7dgo3oci4z6xdr9g0xeikphd "iFx3C8" "F3C8"
$> diff -U 3 user_output_test8 test8.output | cat -e
Diff OK :D
= Test 9 ===================================================
$> ./g0w8pbsg6x0qf0lozk6i1bab "vR0ZGmgw2SzqLYk" "aI8MS"
$> diff -U 3 user_output_test9 test9.output | cat -e
Diff OK :D
= Test 10 ==================================================
$> ./kh11erzrvymr5yqpjtzi2415 "Ni6Qbkd27Kz" "ibd27z"
$> diff -U 3 user_output_test10 test10.output | cat -e
Diff OK :D
= Test 11 ==================================================
$> ./ikpx9nmvdfd5qo8xaxhuoq63 "WIlXDZ" "lXD"
$> diff -U 3 user_output_test11 test11.output | cat -e
Diff OK :D
= Test 12 ==================================================
$> ./6j3s8ea54476s98708wjwdnm "9XDcE" "Wl63tXUIS"
$> diff -U 3 user_output_test12 test12.output | cat -e
Diff OK :D
= Test 13 ==================================================
$> ./lg8lp67099knsgulxumn79s4 "CzYnN9krqw0gFE" "znkqw0gE"
$> diff -U 3 user_output_test13 test13.output | cat -e
Diff OK :D
= Test 14 ==================================================
$> ./1ncsf1hc9s3onzp9v7crh8ex "8qivgVQO" "qgO"
$> diff -U 3 user_output_test14 test14.output | cat -e
Diff OK :D
= Test 15 ==================================================
$> ./7as6cimd1v42m2h38x2iu3b5 "z2BSmYy" "l7WQRampfZE"
$> diff -U 3 user_output_test15 test15.output | cat -e
Diff OK :D
= Test 16 ==================================================
$> ./hpceb30pqdh74g2s6wepxvpw "lrULTb" "lrTb"
$> diff -U 3 user_output_test16 test16.output | cat -e
Diff OK :D
= Test 17 ==================================================
$> ./zn0ot7v8e2cmv97a5vqj327i "mSqcBz8AQl" "Sc8Al"
$> diff -U 3 user_output_test17 test17.output | cat -e
Diff OK :D
= Test 18 ==================================================
$> ./oorr6q5bulcqzf6fwp3hx86d "MDbj" "D"
$> diff -U 3 user_output_test18 test18.output | cat -e
Diff OK :D
= Test 19 ==================================================
$> ./mt1msb1nkjqw6vhyln8m6h38 "r0zk217BP" "Lem"
$> diff -U 3 user_output_test19 test19.output | cat -e
Diff OK :D
= Test 20 ==================================================
$> ./va76iodxi2brhcrbillhsqm9 "wvyQba3YrzT7" "P2g4icuvr"
$> diff -U 3 user_output_test20 test20.output | cat -e
Diff OK :D
Grade: 1
= Final grade: 1 ===============================================================

View File

@@ -0,0 +1,160 @@
= Host-specific information ====================================================
$> hostname; uname -msr
e1r4p5.42.fr
Darwin 16.7.0 x86_64
$> date
Fri Apr 13 12:14:47 CEST 2018
$> gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$> clang --version
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
= User files collection ========================================================
Collecting user files from Vogsphere
Repository URL: auto-exam/2018/c-exam-alone-in-the-dark-beginner/practice-exam_20180413/tmaze
= Git history ==================================================================
$> git -C /var/folders/z0/z383yrl15zv962t1bhsr1jbm0000gq/T/tmpHOCR9H/user log --pretty='%H - %an, %ad : %s'
8c23b2844362a999283edf51405d739bb58ef972 - Tanguy MAZE, Fri Apr 13 12:14:36 2018 +0200 : expand_str
f04f956d0834716296c1766b0023c33bb352beae - Tanguy MAZE, Fri Apr 13 11:59:11 2018 +0200 : inter
2ab798b8f4f6d6877e6ba6a2f5930ee3c12c88ad - Tanguy MAZE, Fri Apr 13 11:44:16 2018 +0200 : ft_swap
2d8bf5c9f17b97a9c04b8c0254a84d64278f8821 - Tanguy MAZE, Fri Apr 13 11:40:49 2018 +0200 : aff_z
= Collected files ==========================================
$> ls -lAR /var/folders/z0/z383yrl15zv962t1bhsr1jbm0000gq/T/tmpHOCR9H/user
total 8
-rw-r--r-- 1 deepthought deepthought 949 Apr 13 12:14 __GIT_HISTORY
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 12:14 aff_z
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 12:14 expand_str
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 12:14 ft_swap
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 12:14 inter
/var/folders/z0/z383yrl15zv962t1bhsr1jbm0000gq/T/tmpHOCR9H/user/aff_z:
total 8
-rw-r--r-- 1 deepthought deepthought 966 Apr 13 12:14 aff_z.c
/var/folders/z0/z383yrl15zv962t1bhsr1jbm0000gq/T/tmpHOCR9H/user/expand_str:
total 8
-rw-r--r-- 1 deepthought deepthought 1442 Apr 13 12:14 expand_str.c
/var/folders/z0/z383yrl15zv962t1bhsr1jbm0000gq/T/tmpHOCR9H/user/ft_swap:
total 8
-rw-r--r-- 1 deepthought deepthought 968 Apr 13 12:14 ft_swap.c
/var/folders/z0/z383yrl15zv962t1bhsr1jbm0000gq/T/tmpHOCR9H/user/inter:
total 8
-rw-r--r-- 1 deepthought deepthought 1433 Apr 13 12:14 inter.c
= expand_str ===================================================================
$> clang -Wextra -Wall -Werror expand_str.c -o user_exe
= Test 1 ===================================================
$> ./4mxb5l8d56xv5i2hmvrr7jq3
$> diff -U 3 user_output_test1 test1.output | cat -e
Diff OK :D
= Test 2 ===================================================
$> ./1h6q7mzvzhg2a4i0e4s2ki4y
$> diff -U 3 user_output_test2 test2.output | cat -e
Diff OK :D
= Test 3 ===================================================
$> ./htld2om7h0ny6rqm4avaxaiy "salut" "a" "tous" "tout" "le" "monde"
$> diff -U 3 user_output_test3 test3.output | cat -e
Diff OK :D
= Test 4 ===================================================
$> ./uzaj26ha0xx18el3y2bpzm0w "ZGlzAbSVxyOTjJEI"
$> diff -U 3 user_output_test4 test4.output | cat -e
Diff OK :D
= Test 5 ===================================================
$> ./gch2pajiqq5yokg2zk1ruz5q "XqAMCx"
$> diff -U 3 user_output_test5 test5.output | cat -e
Diff OK :D
= Test 6 ===================================================
$> ./8amnx8mzgfhncveffsotfw2q "27fycMY5Wj"
$> diff -U 3 user_output_test6 test6.output | cat -e
Diff OK :D
= Test 7 ===================================================
$> ./myfv3b570mvs3i9u1v1v3t9c "dhNw0FmOJT4X73E F8Y2xj bSczLh hYljP8u2INCQJF HPNC"
$> diff -U 3 user_output_test7 test7.output | cat -e
Diff OK :D
= Test 8 ===================================================
$> ./w0prgexvblme2dx09zq339qu "FUD4n PQb4vWJ0TLdIn NICOei3dZST F7TLhGlf2en6 5LUc2me bUqLBTgy3W28tk BxtyvhVcZ oQ5vjCbiAzapSdWlL vyco3xt0SjmWr7Ja"
$> diff -U 3 user_output_test8 test8.output | cat -e
Diff OK :D
= Test 9 ===================================================
$> ./vjfbo9mtr1hvgca0deuo32gd "2QB7vtqy SJOf4AUmKlqZYo9GI sXW 2Gazd NvhCWs9 zbI sToODIqrM TNAeMCvHJZiy5n6 8XtYFyo1EpO vw04SNxfrTmyluQ JUiyOnfXSBzmQo SAY6z NLKwy TcnIRbJrg E2DHCfw4W6"
$> diff -U 3 user_output_test9 test9.output | cat -e
Diff OK :D
= Test 10 ==================================================
$> ./pitsg3pr5rez2cg2tt8j8w45 " iefjDtO9 9riCpHzWjB1b ZIBYbmth4V3Fk07yl H8x ysx5nD sFpynw4BX79EuQOR2 "
$> diff -U 3 user_output_test10 test10.output | cat -e
Diff OK :D
= Test 11 ==================================================
$> ./etr4qesw6obxjmy9v55zz1dj " fZHp KCQ2psoENJ m8Qos nO3HF2WYx uKY ZdwV7Fq2njPrGvOH Xj5ZJqYK8 0RxYFywJ41qrXi tjJsf5eUPd PqfYA2OWh9g "
$> diff -U 3 user_output_test11 test11.output | cat -e
Diff OK :D
= Test 12 ==================================================
$> ./igdhspotmaub93q4rj8yev8t " Dqj EthGzsoQv4wZ wiqyxHN78crzkG PYofvE "
$> diff -U 3 user_output_test12 test12.output | cat -e
Diff OK :D
= Test 13 ==================================================
$> ./3c5ce2ofjrw95w6onwen5t2n " jqQAlmDc4gs kWchX8ZUVmuAG SYHsnLIGTr uvVnA XnBLNZ dKACMZrXJVIQ aDh2VCKtvUz 1elR0CkSZxsu Tg67O S0OI1kV6TdPnez "
$> diff -U 3 user_output_test13 test13.output | cat -e
Diff OK :D
= Test 14 ==================================================
$> ./b35jiih2ldqsaorv8htk71nb " rwzDj8vW CqXBc9Tu SiTL8hZm1QXuv K3XQO8fxyV4cbrSmM HQf0GM69lUaz 57TXO4EGWAocjgLxs TrqH 5k7HLi6NwjyQxb 4heD "
$> diff -U 3 user_output_test14 test14.output | cat -e
Diff OK :D
= Test 15 ==================================================
$> ./m7e25fata668as5ysbw8illq " 37stlHq1aS zxRUiqfMpr MNWZElkjaVyob pkeYbFT6y qL2Z4b JlgncsMe E6I9SgHMVLdCa 4u7feL6Tmhi "
$> diff -U 3 user_output_test15 test15.output | cat -e
Diff OK :D
= Test 16 ==================================================
$> ./k90xq6xlu5i34i2aq7e187fb " aK39xLvQhY X8vt73 68IMPxEB wc0FmE6XBM jLOtQuEkPc3q UK93C5tlZvLxguaTb S9ltQCeDFbj0kr "
$> diff -U 3 user_output_test16 test16.output | cat -e
Diff OK :D
= Test 17 ==================================================
$> ./tpyq0o8rhae98ogwn27rgzsv " ekBVv7OT4twQ MdXFw0AU1nSr 7LgRaoT HPRQ7T2SCt "
$> diff -U 3 user_output_test17 test17.output | cat -e
Diff OK :D
= Test 18 ==================================================
$> ./7awagmxf6vg093a2f87p6n3t " NGZ6CvzufQHn BTy67jPlMcmpJEAa1 pxFhkXOW5V axrTE9b6cm PB9OIL2AvnZj HjMJu9gwnkZRXdCc7 "
$> diff -U 3 user_output_test18 test18.output | cat -e
Diff OK :D
= Test 19 ==================================================
$> ./8o22tl83r3xi98i88lp03qla " uRFE xs3aHFS5 HLNvrc SW0t8 MbDZ7o82cARqKh joynS etOBART3lE "
$> diff -U 3 user_output_test19 test19.output | cat -e
Diff OK :D
= Test 20 ==================================================
$> ./jv95u2a1ykwsi7intev7i8ey " CNT5UeM2fz 8eBzA40jLMI VqvpWOYK0FGZ wRpmSQ9zUfAJHlF jmUG6wqZ "
$> diff -U 3 user_output_test20 test20.output | cat -e
Diff OK :D
Grade: 1
= Final grade: 1 ===============================================================

View File

@@ -0,0 +1,69 @@
= Host-specific information ====================================================
$> hostname; uname -msr
e2r9p19.42.fr
Darwin 16.7.0 x86_64
$> date
Fri Apr 13 12:54:38 CEST 2018
$> gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$> clang --version
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
= User files collection ========================================================
Collecting user files from Vogsphere
Repository URL: auto-exam/2018/c-exam-alone-in-the-dark-beginner/practice-exam_20180413/tmaze
= Git history ==================================================================
$> git -C /var/folders/mw/8rbqlqyn62j570j_lsm5pvsm0000gq/T/tmpgcMtXU/user log --pretty='%H - %an, %ad : %s'
ea9350c4e0805d3a6b89a52b5ffe40109d62358d - Tanguy MAZE, Fri Apr 13 12:54:18 2018 +0200 : ft_split
8c23b2844362a999283edf51405d739bb58ef972 - Tanguy MAZE, Fri Apr 13 12:14:36 2018 +0200 : expand_str
f04f956d0834716296c1766b0023c33bb352beae - Tanguy MAZE, Fri Apr 13 11:59:11 2018 +0200 : inter
2ab798b8f4f6d6877e6ba6a2f5930ee3c12c88ad - Tanguy MAZE, Fri Apr 13 11:44:16 2018 +0200 : ft_swap
2d8bf5c9f17b97a9c04b8c0254a84d64278f8821 - Tanguy MAZE, Fri Apr 13 11:40:49 2018 +0200 : aff_z
= Collected files ==========================================
$> ls -lAR /var/folders/mw/8rbqlqyn62j570j_lsm5pvsm0000gq/T/tmpgcMtXU/user
total 8
-rw-r--r-- 1 deepthought deepthought 1208 Apr 13 12:54 __GIT_HISTORY
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 12:54 aff_z
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 12:54 expand_str
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 12:54 ft_split
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 12:54 ft_swap
drwxr-xr-x 3 deepthought deepthought 102 Apr 13 12:54 inter
/var/folders/mw/8rbqlqyn62j570j_lsm5pvsm0000gq/T/tmpgcMtXU/user/aff_z:
total 8
-rw-r--r-- 1 deepthought deepthought 966 Apr 13 12:54 aff_z.c
/var/folders/mw/8rbqlqyn62j570j_lsm5pvsm0000gq/T/tmpgcMtXU/user/expand_str:
total 8
-rw-r--r-- 1 deepthought deepthought 1442 Apr 13 12:54 expand_str.c
/var/folders/mw/8rbqlqyn62j570j_lsm5pvsm0000gq/T/tmpgcMtXU/user/ft_split:
total 8
-rw-r--r-- 1 deepthought deepthought 1993 Apr 13 12:54 ft_split.c
/var/folders/mw/8rbqlqyn62j570j_lsm5pvsm0000gq/T/tmpgcMtXU/user/ft_swap:
total 8
-rw-r--r-- 1 deepthought deepthought 968 Apr 13 12:54 ft_swap.c
/var/folders/mw/8rbqlqyn62j570j_lsm5pvsm0000gq/T/tmpgcMtXU/user/inter:
total 8
-rw-r--r-- 1 deepthought deepthought 1433 Apr 13 12:54 inter.c
= ft_split =====================================================================
$> clang -Wextra -Wall -Werror ft_split.c main.c -o user_exe
= Test 1 ===================================================
$> ./fsdtxclewdd37bdsb17b6146 ""
Command './fsdtxclewdd37bdsb17b6146 ""' got killed by a Segmentation fault (Signal -11)
Grade: 0
= Final grade: 0 ===============================================================