'A syntax error in my C code though it's commented out [closed]

im running code in C but it's giving me a syntax error on a line that's commented out?? i tried running gdb but it wasn't working for me. i cant tell how this error is happening let alone fix it

this is the code with error:

/* Needed concepts for this lab:
   1) query a bit state at a bit position
   2) set a bit state at a bit position
   3) clear a bit state at a bit position
   4) time library function ctime_r(), 
    a) passing by reference value
    b) time_t values that are too large in absolute value
        cause ctime_r() to return 0 (false)
   5) One meaning of the type char*
   6) Use of the custom-defined macro MAX_BIT_POS
   7) binary search
*/

and this is the error:

/lab2.c: line 1: /bin: Is a directory
./lab2.c: line 2: //: Is a directory
./lab2.c: line 3: //: Is a directory
./lab2.c: line 4: lab22/: Is a directory
./lab2.c: line 10: /bin: Is a directory
./lab2.c: line 11: syntax error near unexpected token `)'
./lab2.c: line 11: `   1) query a bit state at a bit position'


Solution 1:[1]

First you have to compile or build your code with gcc or any other compiler.

sudo apt update && apt upgrade
sudo apt install build-essential
g++ lab2.c -o lab2
./lab2

if ./lab2 do not run then you have to modify access

chmod +x ./lab2

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Vora Arshit