C++ For loops: N lines of input : I am only just learning C++ so I am not sure how to do this.

The question asks me to determine whether LHS of an simple expression equals its RHS. The input consists of an integer N, and then N lines of expressions. The output also consists of N lines, whether the expression is correct or not (output "CORRECT" or "WRONG", excluding quotations).

So I attempted to write a for loop for N lines of input, for (int i=1; i<=n; ++i), but I have no idea what else to include inside the for loop.

Also how do you verify whether the equation's LHS equals its RHS? Idk about that too.