css.cpp: In function 'docline read_docline()':
css.cpp:50:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for(int i=3; i+1<l.size(); i++) ret.classes.push_back(l[i]);
| ~~~^~~~~~~~~
css.cpp: In function 'std::vector<int> parse_brj(std::string)':
css.cpp:92:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
92 | for(int i=0; i<s.size(); ){
| ~^~~~~~~~~
css.cpp:94:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | while(nxt < s.size() && s[nxt] != '.') nxt++;
| ~~~~^~~~~~~~~~
css.cpp:104:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
104 | for(int i=0; i<v.size(); ){
| ~^~~~~~~~~
css.cpp:106:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
106 | while(e < v.size() && v[e] == v[i]) e++;
| ~~^~~~~~~~~~
css.cpp: In function 'std::vector<int> query(std::vector<std::__cxx11::basic_string<char> >&)':
css.cpp:115:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
115 | for(int i=1; i<s.size(); i++){
| ~^~~~~~~~~
css.cpp:130:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
130 | while(pnt < r.size() && r[pnt] <= dout[i]){
| ~~~~^~~~~~~~~~
css.cpp: In function 'int main()':
css.cpp:148:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
148 | printf("%d ", ret.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<int>::size_type {aka long unsigned int}
| %ld
css.cpp: In function 'std::vector<std::__cxx11::basic_string<char> > readline_split()':
css.cpp:9:7: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | fgets(buf, 5005, stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~
css.cpp: In function 'int main()':
css.cpp:141:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
141 | scanf("%d\n",&n);
| ~~~~~^~~~~~~~~~~
css.cpp:144:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
144 | scanf("%d\n", &m);
| ~~~~~^~~~~~~~~~~~