A compound represented by Formula 1, or an oligomer or a polymer, the oligomer or the polymer comprising a constitutional repeating unit including a structure represented by Formula 3: in Formula 1, X represents a sulfur atom, p and q each independently represent an integer of 0 to 2, and R 1 and R 2 each independently represent a halogen atom or a group represented by Formula W below, -S-L-T in Formula W, S represents a single bond or -(C(R S) 2) n -, R S 's each independently represent a hydrogen atom or a halogen atom, n represents an integer of 1 to 17, L represents a single bond, a divalent linking group represented by any one of Formulae L-1 to L-15 below, or a divalent linking group obtained by bonding two or more divalent linking groups represented by any one of Formulae L-1 to L-15 below, and T represents an alkyl group, a haloalkyl group, a cyano group, a vinyl group, an ethynyl group, an aryl group, a heteroaryl group, an oxyethylene group, an oligooxyethylene group in which a repetition number of oxyethylene units is 2 or greater, a siloxane group, an oligosiloxane group having two or more silicon atoms, or a trialkylsilyl group, and in Formulae L-1 to L-15, a wavy line portion represents a bonding position to S or another divalent linking group represented by any one of Formulae L-1 to L-15, * represents a bonding position to T or another divalent linking group represented by any one of Formulae L-1 to L-15, m in Formula L-13 represents an integer of 0 to 4, m in Formulae L-14 and L-15 represents an integer of 0 to 2, R"s in Formulae L-1 and L-2 each independently represent a hydrogen atom or a substituent, and R"'s in Formulae L-13, L-14, and L-15 each independently represent a substituent; and in Formula 3, X 3 's each independently represent a sulfur atom, R 31 and R 32 each independently represent a hydrogen atom, a halogen atom, a substituent represented by Formula W below, and * represents a bonding position, -S-L-T in Formula W, S represents a single bond or -(C(R S) 2) n -, R S 's each independently represent a hydrogen atom or a halogen atom, n represents an integer of 1 to 17, L represents a single bond, a divalent linking group represented by any one of Formulae L-1 to L-15 below, or a divalent linking group obtained by bonding two or more divalent linking groups represented by any one of Formulae L-1 to L-15 below, and T represents an alkyl group, a haloalkyl group, a cyano group, a vinyl group, an ethynyl group, an aryl group, a heteroaryl group, an oxyethylene group, an oligooxyethylene group in which a repetition number of oxyethylene units is 2 or greater, a siloxane group, an oligosiloxane group having two or more silicon atoms, or a trialkylsilyl group, and in Formulae L-1 to L-15, a wavy line portion represents a bonding position to S or another divalent linking group represented by any one of Formulae L-1 to L-15, * represents a bonding position to T or another divalent linking group represented by any one of Formulae L-1 to L-15, m in Formula L-13 represents an integer of 0 to 4, m in Formulae L-14 and L-15 represents an integer of 0 to 2, R"s in Formulae L-1 and L-2 each independently represent a hydrogen atom or a substituent, and R"'s in Formulae L-13, L-14, and L-15 each independently represent a substituent.