Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a
Signal:
Segmentation fault
Author
anonymous
over 4 years ago
C++
gcc 10.1.0
Author
anonymous
over 4 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a
prog.cc: In function 'void AttributeParser(std::vector<std::__cxx11::basic_string<char> >&, std::vector<std::__cxx11::basic_string<char> >&)':
prog.cc:36:26: 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]
36 | for(int i=0;i<para.size();i++)
| ~^~~~~~~~~~~~
prog.cc:48:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | while(j<para[i].size())
| ~^~~~~~~~~~~~~~~
prog.cc:32:70: warning: unused parameter 'query' [-Wunused-parameter]
32 | void AttributeParser(vector <string> ¶, vector <string> &query) /*the function that parses xml data*/
| ~~~~~~~~~~~~~~~~~^~~~~