int element; /*assigned a hidden value */
/* In the following line, write what <cond> should be in: "switch(<cond>){" */
switch (element) {

Compilation error: In function 'main':
3:1: error: expected expression before 'switch'
10 | switch (element) {
| ^~~~~~
Please check the exercise description. There's an issue in your code:
   expected expression before '}' token1:5: warning: variable 'element' set but not used [-Wunused-but-set-variable]
6 | int element; /*assigned a hidden value */
| ^~~~~~~