css.cpp: In function 'std::vector<HTMLelement> read_document()':
css.cpp:68:17: error: 's' was not declared in this scope
68 | if (s.size() <= 6 && num > 0) assert(0);
| ^
css.cpp: In function 'void dfs(int, int, int, std::vector<int>&)':
css.cpp:116:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<SelectorElement>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
116 | if(pos == Selector.size()) {
| ~~~~^~~~~~~~~~~~~~~~~~
css.cpp: In function 'std::vector<HTMLelement> read_document()':
css.cpp:47:17: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
47 | int N; scanf("%d", &N);
| ~~~~~^~~~~~~~~~
css.cpp:57:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
57 | scanf("%s", tag_start);
| ~~~~~^~~~~~~~~~~~~~~~~
css.cpp:62:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
62 | scanf(" id='%[^']'", name);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
css.cpp:73:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
73 | scanf(" class='");
| ~~~~~^~~~~~~~~~~~
css.cpp:77:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
77 | scanf("'>");
| ~~~~~^~~~~~
css.cpp: In function 'std::vector<SelectorElement> read_selector()':
css.cpp:93:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
93 | scanf(" %c", &c);
| ~~~~~^~~~~~~~~~~
css.cpp:102:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
102 | scanf(".");
| ~~~~~^~~~~
css.cpp: In function 'int main()':
css.cpp:142:17: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
142 | int M; scanf("%d\n", &M);
| ~~~~~^~~~~~~~~~~~