You are looking at lesson 1. Your place is still lesson 2, task 1: Types.
Two parts in the folder hw/01: a receipt checked by an autotest, and an algorithm with a Mermaid flowchart in ALGORITHM.md.
Checklist
The homework has two parts, both in the folder hw/01. They are already in your repository: you only fill in the files.
hw/01/main.cWrite a program that prints exactly this text. It is also in the file hw/01/tests/expected.txt, which the test compares your output with:
================================
RECEIPT No. 1
Shop "Kampelis"
================================
Item Qty Price
Bread 1 1.20
Milk 2 1.98
Cheese 1 3.45
--------------------------------
Subtotal: 6.63
Discount: 10%
To pay: 5.97
================================
Receipt saved: C:\receipts\2026\1.txt
Thank you for shopping!
\t), not spaces. The To pay: line has two, because To pay: is shorter than 8 characters.\, %: you use everything from step 5.\n.hw/01/ALGORITHM.mdThe file describes the task: the cashier adds up the prices of all items, and if the total is over 5 €, gives a 10 % discount. In place of TODO write:
mermaid block. Shapes: ([...]) start and end, [...] an action, {...} a condition, [/.../] output.The test checks only that no TODO is left and that there is a flowchart. The lecturer grades the content: are all three blocks there, does the flowchart match the pseudocode, are the shapes right. Open the file on GitHub and check that the flowchart is drawn, not shown as an error.
In CLion pick All CTest at the top and click ▶. While the receipt is wrong, the test shows the first line that differs:
=== hw01_receipt: FAILED ===
The output differs on line 5.
expected: |Item\tQty\tPrice|
got: |Item Qty Price|
(\t = tab, ~ = a space at the end of the line)
Here spaces were typed instead of tabs.
Commit and push. In your GitHub repository's Actions tab open the latest run:
HW 1 (Receipt): 10/10 ✓ when both tests pass.A red cross means the code does not compile: open the Build step. Homework of later topics you haven't done yet doesn't turn CI red: it shows 0/10 (not done yet).
Each one ticks itself when you do it.
All six done. You know your way around.
It is laid out like CLion: the same panels in the same places. This tour shows each one, and you can reopen it any time with Tour.
Switches the left panel: Lesson plan, Project files, Changes. Click the active icon again to hide the panel.
In CLion: the tool window bar runs down the left edge, too.
This part is not on this task: it appears when a task needs it.
Every task in this lesson. Now marks your place. Clicking a task only lets you look; it never moves your place. Project files and Changes open here too.
In CLion: this spot holds the Project view (the file tree).
This part is not on this task: it appears when a task needs it.
Opens the file for your task by itself. A tab appears for each file the step opens. The breadcrumbs above the code show the folder.
In CLion: the same editor tabs and breadcrumbs.
This part is not on this task: it appears when a task needs it.
Diff shows what changed, like git diff: red is the old code, green the new.
In CLion: the diff view in the Commit window looks the same.
This part is not on this task: it appears when a task needs it.
Terminal for build commands, Database to see your tables. They open by themselves when a task needs them. Drag the top edge to resize.
In CLion: Terminal, and the Database tool window.
This part is not on this task: it appears when a task needs it.
What to do now, right above the code, so you never miss it. Numbered notes in the code explain the important lines. Details shows what you should see and a hint.
In CLion: no equivalent: this is your lecturer's guide.
This part is not on this task: it appears when a task needs it.
Done is the only button that moves you forward. Look back lets you review without losing your place.
This part is not on this task: it appears when a task needs it.
Guided, Focus code or Floating. You can drag the panel edges too. Your layout is remembered for next time.
In CLion: you can also rearrange and hide tool windows.
This part is not on this task: it appears when a task needs it.
Six small missions. Each one ticks itself when you do it, so you know you have found everything.