Error-[SE] Syntax error

In reply to C Anudeep Varma:

You did not import the uvm_pkg. I believe it is useless what you are doing.
Please watch the videos about UVM basics and how to package UVM code.and ask your tool provider how to compile UVM code.