F:\c++\tep\main.cpp|27|error: expected primary-expression before ‘,’ token
F:\c++\tep\main.cpp|27|error: ‘a’ was not declared in this scope
F:\c++\tep\main.cpp|27|error: ‘offsetof’ was not declared in this scope
解决办法:添加头文件#include <cstddef>
F:\c++\tep\main.cpp|27|error: expected primary-expression before ‘,’ token
F:\c++\tep\main.cpp|27|error: ‘a’ was not declared in this scope
F:\c++\tep\main.cpp|27|error: ‘offsetof’ was not declared in this scope
解决办法:添加头文件#include <cstddef>