0_0_39731392_25630.cpp:32:6: error: expected ';' after class definition
32 | }
| ^
| ;
0_0_39731392_25630.cpp: In constructor 'XMLValidator::XMLValidator()':
0_0_39731392_25630.cpp:14:22: error: class 'XMLValidator' does not have any field named 'non'
14 | XMLValidator() : non(false), root(false) {}
| ^~~
0_0_39731392_25630.cpp:14:34: error: class 'XMLValidator' does not have any field named 'root'
14 | XMLValidator() : non(false), root(false) {}
| ^~~~
0_0_39731392_25630.cpp: In member function 'void XMLValidator::processInput()':
0_0_39731392_25630.cpp:26:17: error: 'resetState' was not declared in this scope
26 | resetState();
| ^~~~~~~~~~
0_0_39731392_25630.cpp:28:15: error: 'else' without a previous 'if'
28 | } else processTag(buf); // 处理标签
| ^~~~
0_0_39731392_25630.cpp:28:20: error: 'processTag' was not declared in this scope
28 | } else processTag(buf); // 处理标签
| ^~~~~~~~~~
0_0_39731392_25630.cpp: At global scope:
0_0_39731392_25630.cpp:34:1: error: expected unqualified-id before 'private'
34 | private:
| ^~~~~~~
0_0_39731392_25630.cpp: In function 'void processTag(char*)':
0_0_39731392_25630.cpp:119:30: error: 'used' was not declared in this scope
119 | if (empty && used.count(tag) > 0) non = true; // 重复的自闭合标签
| ^~~~
0_0_39731392_25630.cpp:122:25: error: 'used' was not declared in this scope
122 | if (used.count(tag) > 0) non = true; // 重复的开始标签
| ^~~~
0_0_39731392_25630.cpp:128:21: error: 'used' was not declared in this scope
128 | used.insert(tag);
| ^~~~
0_0_39731392_25630.cpp:132:21: error: 'used' was not declared in this scope
132 | used.erase(tag);
| ^~~~
0_0_39731392_25630.cpp: In function 'void resetState()':
0_0_39731392_25630.cpp:144:9: error: 'used' was not declared in this scope
144 | used.clear();
| ^~~~
0_0_39731392_25630.cpp: At global scope:
0_0_39731392_25630.cpp:151:1: error: expected declaration before '}' token
151 | };
| ^
|