error: expected unqualified-id before ‘int’

Site of error:

    bool i, int j;

just change the comma to a semicolon.

C/C++ cannot define different types of variables in the same statement.

Read More: