"Error: all pair coeffs are not set"

Dear LAMMPS users,
My model has 3 atom types, Ni Ti & C. I wanted to use meam potential twice so I added these lines

pair_style hybrid meam/c lj/cut 7.788
pair_coeff * * meam/c library_NiTi.meam Ni Ti NiTi.meam Ti Ni NULL
pair_coeff * * meam/c libraryC.meam C C.meam NULL NULL C
pair_coeff 2 3 lj/cut 1.7209e-3 2.943173
pair_coeff 1 3 lj/cut 1.83205e-3 3.1152

But I found the error “ERROR: All pair coeffs are not set (src/pair.cpp:243)”
Please let me know how to skip this overwrite error.

Thanking you
Shathi Akhter
BSc student, Bangladesh University of Engineering and Technology

Please see the documentation for pair style hybrid how you can use manybody potentials multiple times.
Otherwise, the second pair_coeff statement will wipe out the effect of the first and thus trigger the error you have seen.