You are looking at lesson 2. Your place is still lesson 12, task 1: malloc.
Eight mistakes with types, formats and input.h. When the program doesn't build or calculates oddly, check these first.
When the program doesn't build or calculates something other than you expect, check this list first.
format '%d' expects argument of type 'int', but argument 2 has type 'double': a double is printed with %f, a long long with %lld. GCC writes the right format under the error.(g1 + g2 + g3) / 3 throws the fraction away before it is stored in the double. At least one side must be a double: 3.0 or (double)sum.long long x = 100 * 365 * 24 * 60 * 60; is still worked out with int. Write 100LL * ....double x = 7,5; gives expected identifier or '(' before numeric constant. When typed as input, 7,5 gets Not valid: enter a number with a dot, e.g. 7.5.#include "input.h". implicit declaration of function 'read_int'.target_link_libraries. Compiling succeeds, but the linker reports undefined reference to 'read_int': CMakeLists.txt is missing target_link_libraries(... PRIVATE course_input).unused variable 'average' [-Werror=unused-variable]: either use it or delete it."A" instead of 'A'. %c expects one character in single quotes. With "A" GCC reports argument 2 has type 'char *'.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.