css.cpp: In function 'docline read_docline()':
css.cpp:49:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=3; i+1<l.size(); i++) ret.classes.push_back(l[i]);
^
In file included from /usr/include/c++/5/cassert:43:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:33,
from css.cpp:1:
css.cpp: In function 'void make_tree()':
css.cpp:81:9: error: 'node_count' was not declared in this scope
assert(node_count <= 5000);
^
css.cpp: In function 'std::vector<int> parse_brj(std::__cxx11::string)':
css.cpp:88:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<s.size(); ){
^
css.cpp:90:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(nxt < s.size() && s[nxt] != '.') nxt++;
^
css.cpp:100:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<v.size(); ){
^
css.cpp:102:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(e < v.size() && v[e] == v[i]) e++;
^
css.cpp: In function 'int main()':
css.cpp:146:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d ", ret.size());
^
css.cpp: In function 'std::vector<std::__cxx11::basic_string<char> > readline_split()':
css.cpp:9:25: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(buf, 5005, stdin);
^
css.cpp: In function 'int main()':
css.cpp:139:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
css.cpp:142:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &m);
^