Both of them will DCFL and none of them will CFL.
For first language there exist DPDA,
Bcz whenever we encounter 'a' we simply push on the stack,when all 'a' are over then we start pushing 'b' when all 'b' are finish and after getting first 'c' and subsequent 'c' we pop all 'b' from the top of the stack.When all 'c' and all 'b' are over and only stack contains 'a' and input remaining 'd' ,then we pop each 'a' against all 'b'..Therefore, first languages is accepted by DCFl.
L={wxw^r/w belong to (a,b)+}
It is nothing but string starting with same symbol.For varification put some binary data and check
Therefore it must be DCFL.