Exam 01 Piscine 42 Exclusive

🎯 Exam 01 Review: The "Reality Check" (Piscine 42)

Difficulty: ⭐⭐⭐⭐ (Medium/Hard for Week 1) Time: 4 hours Type: Shell & C (No internet, no peers, no copy/paste)

If your code has a Norm error (e.g., an extra empty line), Renderium rejects it instantly. You get a 0 for that exercise. You cannot bypass this. That is the "exclusive" difficulty. exam 01 piscine 42 exclusive

If you forget to git push, you get 0. Even if your code is perfect. grademe reads from the remote repo, not your local disk. 🎯 Exam 01 Review: The "Reality Check" (Piscine

🔥 The "Trap" Questions (Most Fail Here)

| Exercise | Why people fail | Solution | |----------|----------------|----------| | ft_putchar | Forgetting write(1, &c, 1) | Never use printf | | ft_putnbr | Edge cases: -2147483648 | Handle min int separately | | ft_print_combn | Recursion/logic error | Use backtracking, not nested loops | | aff_a | No arguments case | If argc < 2, print newline only | | Norminette | Missing newline at EOF | Always add \n at file end | write → #include &lt;unistd

Trap: max - min vs max - min + 1. If min=0, max=3 → numbers: 0,1,2. That's 3 numbers. max - min = 3. Correct.

🔢 Numbers & Math

10. ft_countdown

Task: Print numbers from 9 down to 0.