Correct

为伍

/ wéiwǔ / 
Strokes

Definition

to associate with/to keep company with

Example

As a Verb

associate with

1
Yú
与
huàirén
坏人
wéiwǔ
为伍

associate with bad elements

2
Chǐ
耻
yú
与
wéiwǔ
为伍

think it beneath one to associate with sb; feel ashamed to associate with sb