F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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 | };
      | ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 16:10:34, Gzip enabled