init
This commit is contained in:
55
exam-basedir05/docs/GUIDELINES.en.md
Normal file
55
exam-basedir05/docs/GUIDELINES.en.md
Normal 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.
|
||||
54
exam-basedir05/docs/GUIDELINES.fr.md
Normal file
54
exam-basedir05/docs/GUIDELINES.fr.md
Normal 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
|
||||
56
exam-basedir05/docs/GUIDELINES.ro.md
Normal file
56
exam-basedir05/docs/GUIDELINES.ro.md
Normal 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-basedir05/rendu
Submodule
1
exam-basedir05/rendu
Submodule
Submodule exam-basedir05/rendu added at b1a0084071
31
exam-basedir05/subjects/brackets/subject.en.txt
Normal file
31
exam-basedir05/subjects/brackets/subject.en.txt
Normal file
@@ -0,0 +1,31 @@
|
||||
Assignment name : brackets
|
||||
Expected files : *.c *.h
|
||||
Allowed functions: write
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Write a program that takes an undefined number of strings in arguments. For each
|
||||
argument, the program prints on the standard output "OK" followed by a newline
|
||||
if the expression is correctly bracketed, otherwise it prints "Error" followed by
|
||||
a newline.
|
||||
|
||||
Symbols considered as 'brackets' are brackets '(' and ')', square brackets '['
|
||||
and ']'and braces '{' and '}'. Every other symbols are simply ignored.
|
||||
|
||||
An opening bracket must always be closed by the good closing bracket in the
|
||||
correct order. A string which not contains any bracket is considered as a
|
||||
correctly bracketed string.
|
||||
|
||||
If there is no arguments, the program must print only a newline.
|
||||
|
||||
Examples :
|
||||
|
||||
$> ./brackets '(johndoe)' | cat -e
|
||||
OK$
|
||||
$> ./brackets '([)]' | cat -e
|
||||
Error$
|
||||
$> ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e
|
||||
OK$
|
||||
OK$
|
||||
$> ./brackets | cat -e
|
||||
$
|
||||
$>
|
||||
32
exam-basedir05/subjects/brackets/subject.fr.txt
Normal file
32
exam-basedir05/subjects/brackets/subject.fr.txt
Normal file
@@ -0,0 +1,32 @@
|
||||
Assignment name : brackets
|
||||
Expected files : *.c *.h
|
||||
Allowed functions: write
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Ecrire un programme qui prendra une chaine de caractères en paramètre et qui
|
||||
écrit sur la sortie standard 'OK' si l'expression est bien parenthesée et
|
||||
'Error' dans le cas contraire, le tout suivi d'une newline.
|
||||
|
||||
Les symboles utilisés comme 'parenthèses' seront les parenthèses '(' et ')', les
|
||||
crochets '[' et ']' ainsi que les accolades '{' et '}'. Tous les autres
|
||||
caractères seront tout simplement ignorés.
|
||||
|
||||
Une parenthèse ouvrante devra obligatoirement être fermée par une parenthèse
|
||||
fermante et dans le bon ordre (parenthèses imbriquées). Une chaine ne comportant
|
||||
aucune parenthèse est considerée comme bien parenthesée.
|
||||
|
||||
Votre programme évaluera tous les arguments. Si aucun argument n'est fourni,
|
||||
il affichera seulement une newline.
|
||||
|
||||
Exemples :
|
||||
|
||||
$> ./brackets '(jo:qahndoe)' | cat -e
|
||||
OK$
|
||||
$> ./brackets '([)]' | cat -e
|
||||
Error$
|
||||
$> ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e
|
||||
OK$
|
||||
OK$
|
||||
$> ./brackets | cat -e
|
||||
$
|
||||
$>
|
||||
20
exam-basedir05/subjects/ft_itoa_base/subject.en.txt
Normal file
20
exam-basedir05/subjects/ft_itoa_base/subject.en.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
Assignment name : ft_itoa_base
|
||||
Expected files : ft_itoa_base.c
|
||||
Allowed functions: malloc
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Write a function that converts an integer value to a null-terminated string
|
||||
using the specified base and stores the result in a char array that you must
|
||||
allocate.
|
||||
|
||||
The base is expressed as an integer, from 2 to 16. The characters comprising
|
||||
the base are the digits from 0 to 9, followed by uppercase letter from A to F.
|
||||
|
||||
For example, base 4 would be "0123" and base 16 "0123456789ABCDEF".
|
||||
|
||||
If base is 10 and value is negative, the resulting string is preceded with a
|
||||
minus sign (-). With any other base, value is always considered unsigned.
|
||||
|
||||
Your function must be declared as follows:
|
||||
|
||||
char *ft_itoa_base(int value, int base);
|
||||
21
exam-basedir05/subjects/ft_itoa_base/subject.fr.txt
Normal file
21
exam-basedir05/subjects/ft_itoa_base/subject.fr.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
Assignment name : ft_itoa_base
|
||||
Expected files : ft_itoa_base.c
|
||||
Allowed functions: malloc
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Écrire une fonction qui prend un int et le convertit en chaîne terminée par un
|
||||
caractère nul, en utilisant la base passée en paramètre. Cette fonction
|
||||
retourne le résultat en tant qu'un tableau de char que vous devez allouer.
|
||||
|
||||
La base est exprimée par un entier qui va de 2 à 16. Les caractères composant
|
||||
la base sont les chiffres de 0 à 9 suivis par les lettres majuscules A à F.
|
||||
|
||||
Par exemple, la base 4 serait "0123" et la base 16 "0123456789ABCDEF".
|
||||
|
||||
Si la base est 10 et la valeur est négative, la chaîne de sortie doit être
|
||||
précédée d'un caractère '-'. Pour toute autre base, la valeur est toujours
|
||||
considérée non-signée.
|
||||
|
||||
Votre fonction doit être déclarée comme suit:
|
||||
|
||||
char *ft_itoa_base(int value, int base);
|
||||
14
exam-basedir05/subjects/ft_split/subject.en.txt
Normal file
14
exam-basedir05/subjects/ft_split/subject.en.txt
Normal 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);
|
||||
16
exam-basedir05/subjects/ft_split/subject.fr.txt
Normal file
16
exam-basedir05/subjects/ft_split/subject.fr.txt
Normal 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);
|
||||
15
exam-basedir05/subjects/ft_split/subject.ro.txt
Normal file
15
exam-basedir05/subjects/ft_split/subject.ro.txt
Normal 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);
|
||||
|
||||
121
exam-basedir05/traces/4-0_ft_split.trace
Normal file
121
exam-basedir05/traces/4-0_ft_split.trace
Normal file
@@ -0,0 +1,121 @@
|
||||
= Host-specific information ====================================================
|
||||
$> hostname; uname -msr
|
||||
e2r6p19.42.fr
|
||||
Darwin 16.7.0 x86_64
|
||||
$> date
|
||||
Mon Apr 30 16:38:49 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_20180430/tmaze
|
||||
|
||||
= Git history ==================================================================
|
||||
$> git -C /var/folders/v9/46wx1tv10wg6gy_vv8jfkqh80000gq/T/tmpQ_TIUA/user log --pretty='%H - %an, %ad : %s'
|
||||
d972dde3a425265021d599d5503d785f9c061168 - Tanguy MAZE, Mon Apr 30 16:38:35 2018 +0200 : ft_split
|
||||
|
||||
= Collected files ==========================================
|
||||
$> ls -lAR /var/folders/v9/46wx1tv10wg6gy_vv8jfkqh80000gq/T/tmpQ_TIUA/user
|
||||
total 8
|
||||
-rw-r--r-- 1 deepthought deepthought 258 Apr 30 16:38 __GIT_HISTORY
|
||||
drwxr-xr-x 3 deepthought deepthought 102 Apr 30 16:38 ft_split
|
||||
|
||||
/var/folders/v9/46wx1tv10wg6gy_vv8jfkqh80000gq/T/tmpQ_TIUA/user/ft_split:
|
||||
total 8
|
||||
-rw-r--r-- 1 deepthought deepthought 2014 Apr 30 16:38 ft_split.c
|
||||
|
||||
= ft_split =====================================================================
|
||||
$> clang -Wextra -Wall -Werror ft_split.c main.c -o user_exe
|
||||
|
||||
= Test 1 ===================================================
|
||||
$> ./c8xgi4i52s4ddzmts1dnqj5c ""
|
||||
$> diff -U 3 user_output_test1 test1.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 2 ===================================================
|
||||
$> ./oil8ldut54wjdkj2cw02xy4i "
|
||||
|
||||
|
||||
"
|
||||
$> diff -U 3 user_output_test2 test2.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 3 ===================================================
|
||||
$> ./r36expf12drqgpxsetcio37d "
|
||||
|
||||
|
||||
"
|
||||
$> diff -U 3 user_output_test3 test3.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 4 ===================================================
|
||||
$> ./s02chza3l9u1qixuwr1rbalt "1vEhVAG2"
|
||||
$> diff -U 3 user_output_test4 test4.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 5 ===================================================
|
||||
$> ./mh72usouqlmirmylr9o1mgsz "FPDrYVWU"
|
||||
$> diff -U 3 user_output_test5 test5.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 6 ===================================================
|
||||
$> ./px4l8ds9vj3wthzyvvwfzm81 "
|
||||
|
||||
|
||||
wHDvJKRzbm iJ43k0LdzOeUtHSQ1
|
||||
cXhzIBKZy5O SjHEMG3qwOC0GU6s8DzZH
|
||||
|
||||
2RS
|
||||
|
||||
Sv5YaI2lFjdhbt
|
||||
|
||||
ZRjuJ
|
||||
5EcsYXKBCbpgDf
|
||||
|
||||
|
||||
JEC6csUqd9
|
||||
"
|
||||
$> diff -U 3 user_output_test6 test6.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 7 ===================================================
|
||||
$> ./e2cbqa44kf113m45cyxugvtt "
|
||||
NyrugEL7UJcY
|
||||
J1PhXM94swanp5lWCkzlKtj4 AwmqYKD90ehioQuf6
|
||||
|
||||
VqL
|
||||
UmQzyxXoHLRE1skr
|
||||
amxprCZ7z467JRoc2nLsPQU
|
||||
QsJXfUN cdxhv3EJI5W
|
||||
|
||||
ZHVqN8oWzGEwb5S376qwrsb9aAWBoim RZy8zwgxla04C
|
||||
W31y5MH2fBjJx
|
||||
|
||||
"
|
||||
$> diff -U 3 user_output_test7 test7.output | cat -e
|
||||
--- user_output_test7 2018-04-30 16:38:55.000000000 +0200$
|
||||
+++ test7.output 2018-04-30 16:38:55.000000000 +0200$
|
||||
@@ -2,7 +2,7 @@$
|
||||
J1PhXM94swanp5lWCkzlKtj4$
|
||||
AwmqYKD90ehioQuf6$
|
||||
VqL$
|
||||
-UmQzyxXoHLRE1skr^D$
|
||||
+UmQzyxXoHLRE1skr$
|
||||
amxprCZ7z467JRoc2nLsPQU$
|
||||
QsJXfUN$
|
||||
cdxhv3EJI5W$
|
||||
|
||||
Diff KO :(
|
||||
Grade: 0
|
||||
|
||||
= Final grade: 0 ===============================================================
|
||||
148
exam-basedir05/traces/4-1_ft_itoa_base.trace
Normal file
148
exam-basedir05/traces/4-1_ft_itoa_base.trace
Normal file
@@ -0,0 +1,148 @@
|
||||
= Host-specific information ====================================================
|
||||
$> hostname; uname -msr
|
||||
e2r2p10.42.fr
|
||||
Darwin 16.7.0 x86_64
|
||||
$> date
|
||||
Mon Apr 30 16:47:13 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_20180430/tmaze
|
||||
|
||||
= Git history ==================================================================
|
||||
$> git -C /var/folders/p0/6k42lfhx37533yqry6jc2ngm0000gq/T/tmppGI_ct/user log --pretty='%H - %an, %ad : %s'
|
||||
b2f0274abee53275050dedee420bb6b7fa391c09 - Tanguy MAZE, Mon Apr 30 16:47:06 2018 +0200 : ft_itoa_base
|
||||
d972dde3a425265021d599d5503d785f9c061168 - Tanguy MAZE, Mon Apr 30 16:38:35 2018 +0200 : ft_split
|
||||
|
||||
= Collected files ==========================================
|
||||
$> ls -lAR /var/folders/p0/6k42lfhx37533yqry6jc2ngm0000gq/T/tmppGI_ct/user
|
||||
total 8
|
||||
-rw-r--r-- 1 deepthought deepthought 521 Apr 30 16:47 __GIT_HISTORY
|
||||
drwxr-xr-x 3 deepthought deepthought 102 Apr 30 16:47 ft_itoa_base
|
||||
drwxr-xr-x 3 deepthought deepthought 102 Apr 30 16:47 ft_split
|
||||
|
||||
/var/folders/p0/6k42lfhx37533yqry6jc2ngm0000gq/T/tmppGI_ct/user/ft_itoa_base:
|
||||
total 8
|
||||
-rw-r--r-- 1 deepthought deepthought 1586 Apr 30 16:47 ft_itoa_base.c
|
||||
|
||||
/var/folders/p0/6k42lfhx37533yqry6jc2ngm0000gq/T/tmppGI_ct/user/ft_split:
|
||||
total 8
|
||||
-rw-r--r-- 1 deepthought deepthought 2014 Apr 30 16:47 ft_split.c
|
||||
|
||||
= ft_itoa_base =================================================================
|
||||
$> clang -Wextra -Wall -Werror ft_itoa_base.c main.c -o user_exe
|
||||
|
||||
= Test 1 ===================================================
|
||||
$> ./xlj5ns1nj88t9bieq26h1gk0
|
||||
$> diff -U 3 user_output_test1 test1.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 2 ===================================================
|
||||
$> ./r0a2uzayjppmk86d3l5668mx "21" "2313" "12"
|
||||
$> diff -U 3 user_output_test2 test2.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 3 ===================================================
|
||||
$> ./s63ke0vmmqnsa93jdmw70dyy "2147483647" "10"
|
||||
$> diff -U 3 user_output_test3 test3.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 4 ===================================================
|
||||
$> ./2ndm3aidina5trsbtdeg6a90 "-2147483648" "10"
|
||||
$> diff -U 3 user_output_test4 test4.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 5 ===================================================
|
||||
$> ./u1ppug16xoc6a2s41hjzqv94 "0" "2"
|
||||
$> diff -U 3 user_output_test5 test5.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 6 ===================================================
|
||||
$> ./7v2hmn80lhkesziwachjx3pt "--223" "10"
|
||||
$> diff -U 3 user_output_test6 test6.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 7 ===================================================
|
||||
$> ./6f6psoxlow0w1u6p7nph9l6s "110268196" "14"
|
||||
$> diff -U 3 user_output_test7 test7.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 8 ===================================================
|
||||
$> ./9gdzmewvqbzyfn8thlgsib7p "1392491729" "8"
|
||||
$> diff -U 3 user_output_test8 test8.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 9 ===================================================
|
||||
$> ./mrsfp7euxlpautzt6r9xjgga "1810692517" "13"
|
||||
$> diff -U 3 user_output_test9 test9.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 10 ==================================================
|
||||
$> ./cze3tyc0xdyn5bxnykcb9w4v "844780707" "4"
|
||||
$> diff -U 3 user_output_test10 test10.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 11 ==================================================
|
||||
$> ./q76be2hj444qeztdhxt978yl "335896289" "5"
|
||||
$> diff -U 3 user_output_test11 test11.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 12 ==================================================
|
||||
$> ./eabv1ym2bnm8s472cyx3gox1 "-52926340" "13"
|
||||
$> diff -U 3 user_output_test12 test12.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 13 ==================================================
|
||||
$> ./mws0vg0s1owdg936xv2hzt36 "484734000" "14"
|
||||
$> diff -U 3 user_output_test13 test13.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 14 ==================================================
|
||||
$> ./6pr8359wgo08jk46by8o8pog "636941058" "13"
|
||||
$> diff -U 3 user_output_test14 test14.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 15 ==================================================
|
||||
$> ./neaav2wywllcdvsx8ag3s7ck "1533222875" "13"
|
||||
$> diff -U 3 user_output_test15 test15.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 16 ==================================================
|
||||
$> ./shvdflsn04qjye3jagmzxyni "211476535" "15"
|
||||
$> diff -U 3 user_output_test16 test16.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 17 ==================================================
|
||||
$> ./csk3i0npzrv12beivqh1ooqm "359956549" "7"
|
||||
$> diff -U 3 user_output_test17 test17.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 18 ==================================================
|
||||
$> ./qqho0v1b293n7amzcz3rycdv "816168462" "11"
|
||||
$> diff -U 3 user_output_test18 test18.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 19 ==================================================
|
||||
$> ./ptdzhf190mc3ifjp5zu7v2oa "1832967199" "6"
|
||||
$> diff -U 3 user_output_test19 test19.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 20 ==================================================
|
||||
$> ./l1v5moyoyb27mle1ojtncgjj "245350995" "4"
|
||||
$> diff -U 3 user_output_test20 test20.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
Grade: 1
|
||||
|
||||
= Final grade: 1 ===============================================================
|
||||
94
exam-basedir05/traces/5-0_brackets.trace
Normal file
94
exam-basedir05/traces/5-0_brackets.trace
Normal file
@@ -0,0 +1,94 @@
|
||||
= Host-specific information ====================================================
|
||||
$> hostname; uname -msr
|
||||
e1r13p11.42.fr
|
||||
Darwin 16.7.0 x86_64
|
||||
$> date
|
||||
Mon Apr 30 17: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_20180430/tmaze
|
||||
|
||||
= Git history ==================================================================
|
||||
$> git -C /var/folders/mm/shrjj_pj115g1cz31r93wbn00000gq/T/tmpgHZCSZ/user log --pretty='%H - %an, %ad : %s'
|
||||
b1a0084071602bdc42c21725a492a316ecae727b - Tanguy MAZE, Mon Apr 30 17:40:56 2018 +0200 : brackets
|
||||
b2f0274abee53275050dedee420bb6b7fa391c09 - Tanguy MAZE, Mon Apr 30 16:47:06 2018 +0200 : ft_itoa_base
|
||||
d972dde3a425265021d599d5503d785f9c061168 - Tanguy MAZE, Mon Apr 30 16:38:35 2018 +0200 : ft_split
|
||||
|
||||
= Collected files ==========================================
|
||||
$> ls -lAR /var/folders/mm/shrjj_pj115g1cz31r93wbn00000gq/T/tmpgHZCSZ/user
|
||||
total 8
|
||||
-rw-r--r-- 1 deepthought deepthought 780 Apr 30 17:41 __GIT_HISTORY
|
||||
drwxr-xr-x 3 deepthought deepthought 102 Apr 30 17:41 brackets
|
||||
drwxr-xr-x 3 deepthought deepthought 102 Apr 30 17:41 ft_itoa_base
|
||||
drwxr-xr-x 3 deepthought deepthought 102 Apr 30 17:41 ft_split
|
||||
|
||||
/var/folders/mm/shrjj_pj115g1cz31r93wbn00000gq/T/tmpgHZCSZ/user/brackets:
|
||||
total 8
|
||||
-rw-r--r-- 1 deepthought deepthought 1757 Apr 30 17:41 brackets.c
|
||||
|
||||
/var/folders/mm/shrjj_pj115g1cz31r93wbn00000gq/T/tmpgHZCSZ/user/ft_itoa_base:
|
||||
total 8
|
||||
-rw-r--r-- 1 deepthought deepthought 1586 Apr 30 17:41 ft_itoa_base.c
|
||||
|
||||
/var/folders/mm/shrjj_pj115g1cz31r93wbn00000gq/T/tmpgHZCSZ/user/ft_split:
|
||||
total 8
|
||||
-rw-r--r-- 1 deepthought deepthought 2014 Apr 30 17:41 ft_split.c
|
||||
|
||||
= brackets =====================================================================
|
||||
$> clang -Wextra -Wall -Werror brackets.c -o user_exe
|
||||
|
||||
= Test 1 ===================================================
|
||||
$> ./1owsni59vsked0lazuazigz3 '(toto)'
|
||||
$> diff -U 3 user_output_test1 test1.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 2 ===================================================
|
||||
$> ./yox6g8nve2tt5uzrwqsira7g '([)]'
|
||||
$> diff -U 3 user_output_test2 test2.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 3 ===================================================
|
||||
$> ./lzwgdg26099s5kfzpxenk5mo '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}'
|
||||
$> diff -U 3 user_output_test3 test3.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 4 ===================================================
|
||||
$> ./z6bwkwreiklyu7erkgifux19
|
||||
$> diff -U 3 user_output_test4 test4.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 5 ===================================================
|
||||
$> ./nmt1shlw66nkguhgql7ov0ot '()' '[]' '{}' '' 'toto' '([{}[{(()[])}()]]())(((([])))())'
|
||||
$> diff -U 3 user_output_test5 test5.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 6 ===================================================
|
||||
$> ./0ykw13wbvmsjey7tb68nwk8n '()[]{}' '([{}])[({})]{([])}'
|
||||
$> diff -U 3 user_output_test6 test6.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 7 ===================================================
|
||||
$> ./rjuzyl1i0110o635r0i5zvb4 '(]' '{)' '[}' ')' '}' ')' '(' '{' '['
|
||||
$> diff -U 3 user_output_test7 test7.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
= Test 8 ===================================================
|
||||
$> ./22df9bdlpll4gejbmex258yc '({)}' '[()]{}]' '])}' '([{' "(cette (trace n'a pas [de but precis]) {a part embeter (tout le monde)})"
|
||||
$> diff -U 3 user_output_test8 test8.output | cat -e
|
||||
|
||||
Diff OK :D
|
||||
Grade: 1
|
||||
|
||||
= Final grade: 1 ===============================================================
|
||||
Reference in New Issue
Block a user